rsync and network failure
kauer at biplane.com.au
Wed Apr 6 21:31:22 UTC 2016
On Wed, 2016-04-06 at 14:57 +0100, Dave Howorth wrote:
> On 2016-04-06 14:43, Colin Law wrote:
> > 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?
Yes. And if you are transferring very large files, you might like to
read the man page on the "-P", "--partial" and "--partial-dir" options,
which allows recovery midway through partially transferred files.
I suggest you look for every occurrence of the word "partial" in the
man page, because there are quite a lot of hints and gotchas around
saving partial transfers, but if you transfer really big files this can
be a life-saver.
Karl Auer (kauer at biplane.com.au)
GPG fingerprint: E00D 64ED 9C6A 8605 21E0 0ED0 EE64 2BEE CBCB C38B
Old fingerprint: 3C41 82BE A9E7 99A1 B931 5AE7 7638 0147 2C3C 2AC4
More information about the ubuntu-users