-H option causes unneccessary transfers
Kevin Korb
kmk at sanitarium.net
Mon Mar 28 12:11:07 UTC 2016
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
What does --itemize-changes say about these files?
Also, what is --atimes? Is this the Apple modified rsync for OSX?
On 03/28/2016 07:51 AM, Albert Berger wrote:
> Greetings,
>
> when the daily system backup with rsync is performed, thousands of
> files (e.g. from /usr directory), which are not modified are
> uselessly transferrred to the backup storage every day. The rsync
> command is the following:
>
> rsync --update -DHAErlptgo --relative --atimes --delete-during
> ${SRCPATH} ${BACKUPDIR}
>
> Quick investigation shown, that these files are hard links, and the
> command option related to this behaviour is -H: without it the
> unmodified files are not copied. Seemingly this situation is
> described in the rsync manual:
>
> "If incremental recursion is active (see --recursive), rsync may
> transfer a missing hard-linked file before it finds that another
> link for that contents exists else‐ where in the hierarchy....
> One way to avoid this inefficiency is to disable incremental
> recursion using the --no-inc-recursive option."
>
> Adding --no-inc-recursive to the aforementioned command line
> doesn't help (are --recursive and --no-inc-recursive supposed to be
> used in one option set?). And I use --recursive to copy entire
> directory tree, including subdirectories. Could someone advise
> please how one can prevent copying unmodified hard-linked files?
>
> Thanks, A. Berger.
>
- --
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
Kevin Korb Phone: (407) 252-6853
Systems Administrator Internet:
FutureQuest, Inc. Kevin at FutureQuest.net (work)
Orlando, Florida kmk at sanitarium.net (personal)
Web page: http://www.sanitarium.net/
PGP public key available on web site.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iEYEARECAAYFAlb5H1sACgkQVKC1jlbQAQe0LwCg0yhgY81WywKO4NYioxCfbF3J
qVcAn2P9hJiW9pXwMZutAmuOjIvdvvNZ
=/Enu
-----END PGP SIGNATURE-----
More information about the rsync
mailing list