secure copy with failover – rsync & ssh

e.g. rsync -av –progress -e ‘ssh -i /alternate/id/file’ sshusername@host:/directory/or/file /destination/directory/or/file

- should the copy process terminated through the half way, just run the exact command again and it will continue from the file is failed previously, without copying again starting all over again.

Related posts:

  1. vim – error when starting problem : For some reason, starting up vim pops up...
  2. Quick File Copy on File Name with Sample Extension By default, some of the application installation provide you a...
  3. Changing File’s Date and Time on Unix Systems Change Data and Time of a File At times, we...
  4. MySQL 5 Server Cannot Start on Apple Mac Leopard There were some problem during configuring MySQL5 Server on Leopard...
  5. Secure Your Wireless Connection Walking down to the busy street in Kuala Lumpur, you...
  6. How to do DNS Setup On your Machine Most of us know, without DNS Setup on your machine...

3 Responses to “secure copy with failover – rsync & ssh”

  1. spoonfork Says:

    No quite. When rsync copies the file, it will create a temporary file in the destination. The file name begins with a ‘.’. For example, paulishandsome.iso will be .paulishansome.iso.78qwda. The file will be renamed to paulishansome.iso AFTER it finished transfering. If the file is large, and the connection break, the dot file will be removed, and you have to start all over again. You need to use –inplace so that rsync will not create the temporary file; instead it will write the file immediately to disk and you can safely resume after a broken connection.

  2. spoonfork Says:

    Should be a double dash (—-inplace and —-progress). I also use -z to compress the files for network transfers.

  3. mymac Says:

    hey dude, thanks for the tips. much enlightenment!

Leave a Reply