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.
Notices
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
To retrieve a file from the remote machine called somefile.avi in the remote machine's temp directory and put it in the avi directory on the local machine:
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
Thanks for the rsync example.
It worked and you saved me bunch of time trying to figure it out.
Is there any particular reasons why rsync is the "best way".
(other than it works well)
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.