LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-06-2017, 09:26 AM   #1
usao
Member
 
Registered: Dec 2011
Location: Chandler, AZ
Posts: 286

Rep: Reputation: Disabled
scp vs rsync


I have a need to copy large files over slow network, and that transfer is prone to failure. In addition, I need to remove the source file once transferred.
Im trying to compare the pros/cons of scp vs rsync to do this reliably.

As I understand, scp uses some form of validation to ensure the file is transferred correctly (validated). However, scp doesn't provide for removing the source file on successful transfer.

Does rsync also allow for validation of the copy to the remote host and if so, how does one do that in an efficient manner for large files?
I know I can get rsync to remove the source, but I need to make 100% sure the transfer is validated prior to the source being deleted. Not sure rsync is up to this task, but if it's possible can someone clue me in to the correct usage?
 
Old 10-06-2017, 10:31 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, RPi OS, Mint & Android
Posts: 13,019

Rep: Reputation: 1732Reputation: 1732Reputation: 1732Reputation: 1732Reputation: 1732Reputation: 1732Reputation: 1732Reputation: 1732Reputation: 1732Reputation: 1732Reputation: 1732
Read the man page for correct usages.

Many things check the integrity of data. I prefer rsync because it's more versatile, and avoids needless transfers; it brings a file up to date if it exists already. I think (but don't know) that rsync has an option to delete the source. Anything doing clever stuff like encryption slows big file transfers down.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Duplicity using scp vs. rsync ziphem Linux - Software 2 10-10-2013 11:10 AM
rsync with scp behavior jjj0923 Linux - Newbie 3 07-12-2011 08:22 AM
I think I need rsync or scp -- something to copy from http://... to /somewhere/else nithra Linux - Server 2 01-18-2011 06:09 AM
SCP or rsync? centosfan Linux - General 4 01-09-2011 08:02 PM
[SOLVED] rsync -z vs. scp ... which one is faster over network? someshpr Linux - General 5 12-08-2010 06:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration