Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
The "--progress" option will keep you up to date on the transfer, and the "--partial" option will let you restart the transfer if there is an interruption (even if you kill the rsync manually). Check the man page (man rsync) for more details.
Last edited by macemoneta; 05-05-2005 at 01:11 PM.
Using scp would look something like this. If you don't have that machine in dns or the host file, you will need to use the ip address of that machine.
scp remote_machine:/mnt/images/some_file /local/folder
Rsync would look something like this..
rsync -avz -e ssh user@remote_machine:/some/folder /local/folder
Rsync sends only changed data. If you've updated a large file, only the changes will be sent (very fast). It can restart a partially sent file from where it left off (--partial); scp and sftp cannot. It can use compression on low bandwidth connections (--compress), for compressible data; scp and sftp cannot. You can limit your bandwidth consumption (--bwlimit), so you don;t monopolize a machine; scp and sftp cannot. It performs its own checksum to insure that data is transferred correctly; scp and sftp rely on the TCP checking, which can have problems on high error rate facilities. It can recursively transfer directory trees (--recursive); sftp cannot. It can copy file attributes (permissions, times, etc.); scp and sftp do not. It can keep local and remote directories synchronized; scp and sftp cannot. Many more reasons.
In short, there are lots of reasons rsync is the best way. It's a very useful tool to learn to use.