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.
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.
Should be a double dash (—-inplace and —-progress). I also use -z to compress the files for network transfers.
hey dude, thanks for the tips. much enlightenment!