15.5 Transferring Files to Your Computer


15.5 Transferring Files to Your Computer

The rsync command isn't just for copying files from your local machine to a remote host. You can also transfer files from a remote machine to your local host by placing the remote host and remote source path as the first argument on the command line. Therefore, to transfer src_dir on host to dest_dir on the local host, run this command:

 rsync -a  host  :  src_dir dest_dir  
Note  

If you omit host: , you can use rsync for making duplicates of directories on your local machine.




How Linux Works
How Linux Works: What Every Superuser Should Know
ISBN: 1593270356
EAN: 2147483647
Year: 2004
Pages: 189
Authors: Brian Ward

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net