https://bugzilla.samba.org/show_bug.cgi?id=3693

--- Comment #12 from Ben Millwood <thebenmach...@gmail.com> ---
hi folks, I've run into this problem in a couple of cases that I think haven't
been mentioned so far:

- Every month I rsync my boot disk to an external disk and then take a ZFS
copy-on-write snapshot of the external disk. This means I want to use --inplace
--no-whole-file to avoid writing (therefore copying) more than necessary, but
in combination with --hard-links this can result in incorrect file content (as
others have described) if I initially hard link some files but then later
unlink and then modify them.
- Credit where it's due, the man page does warn me of the above problem, so
currently I just don't use --inplace --no-whole-file and take the disk usage
hit. However, although this eliminates problems with file content being
incorrect, AIUI it still only breaks hard links when one of the
formerly-hardlinked files changes, which means I still can end up with
destination hard links that aren't on the source if the source files weren't
changed when the link was broken. In practice I can't think why I would break a
hard link but keep the contents the same, but it's frustrating to have this
barrier in the way of me being able to say without reservation that my backup
replicates my filesystem exactly, and that I will be able to restore from my
backup without causing any problems.

Overall, then, I'm a big fan of the idea that --hard-links (or if not, then
some additional flag) should make the target directory look exactly like the
source directory in link structure.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to