rsync and network failure
dhoworth at mrc-lmb.cam.ac.uk
Wed Apr 6 13:57:14 UTC 2016
On 2016-04-06 14:43, Colin Law wrote:
> I have a script that I run to keep a remote backup of a folder
> heirarchy. The script uses rsync with a command of the form
> rsync -H -azipc /path/to/backup user at my.remote.domain:destination_folder
> This works fine. My question is, if the network fails part way
> through, or the PC is shut down then should I just be able repeat the
> command and rsync will transfer any remaining files that were not
> successfully transferred the first time?
I've never had any trouble. I've used dirvish for backups and downloads
for many years, which uses rsync, and I've experienced various network
problems. Dirvish just retries the rsync and normally the transfer
completes the second time.
Worst case on the rare occasion things somehow get completely mangled is
just to delete the faulty image, but I usually do that after the
following day's transfer has completed successfully.
More information about the ubuntu-users