samba-bugs at samba.org
2014-Jul-29 05:37 UTC
[Bug 10748] New: 3.1.0 and 3.1.1 create all dirs on target even with --prune-empty-dirs
https://bugzilla.samba.org/show_bug.cgi?id=10748 Summary: 3.1.0 and 3.1.1 create all dirs on target even with --prune-empty-dirs Product: rsync Version: 3.1.1 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P5 Component: core AssignedTo: wayned at samba.org ReportedBy: samba at tlinx.org QAContact: rsync-qa at samba.org I'm doing an rsync from a snapshot to an empty "diffdir" **minus** the basedir, as in "--compare-dest" in below args... : <rsync command> arglist = qw( --8-bit-output --acls --archive --hard-links --human-readable --no-inc-recursive --one-file-system --prune-empty-dirs --whole-file --xattrs ), "--compare-dest=$base_lvh->fs_mp/.") <snapshotdir> <diffdir> Unfortunately, it's creating *ALL* of the dirs on the source, changed or not. After the above was run, the "diffdir" contained 560515 dirs, of which 386220 were empty. Deleting them freed up almost 300MB on a 600MB "diff". *ouch*. This breaks (I'm working on a hack-around) my snapshot script as it does a "du" of the source and expects that the copied files should fit in a sized-to-fit volume that is 125% of the original sources (but doesn't when a bunch are dirs). Anyway... only 31% of the directories it copied were needed -- 69% of the directories were empty. What happened? It didn't used to create such an excess... -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
samba-bugs at samba.org
2019-Feb-26 13:51 UTC
[Bug 10748] 3.1.0 and 3.1.1 create all dirs on target even with --prune-empty-dirs
https://bugzilla.samba.org/show_bug.cgi?id=10748 --- Comment #1 from walter <wa at wlkl.ch> --- 5 years later, I detect the same problem - which is critical for me. why has nothing happened on that bug? -- You are receiving this mail because: You are the QA Contact for the bug.
samba-bugs at samba.org
2019-Feb-26 16:37 UTC
[Bug 10748] 3.1.0 and 3.1.1 create all dirs on target even with --prune-empty-dirs
https://bugzilla.samba.org/show_bug.cgi?id=10748 --- Comment #2 from Kevin Korb <rsync at sanitarium.net> --- --prune-empty-dirs only affects the file list that rsync is working from. That means it handles dirs that are either really empty on the source or anything that has been emptied via --exclude or --filter. Options that modify the way rsync stores stuff but not the list of stuff it is processing are not affected by --prune-empty-dirs. That would apply to the 3 --*-dest options. As long as there are files on the source that haven't been excluded or filtered they are still in the listing that rsync is processing so the directory is not empty. -- You are receiving this mail because: You are the QA Contact for the bug.
Reasonably Related Threads
- Concern: rsync failing to find some attributes in a file transfer?
- --prune-empty-dirs option not doing the job
- prune empty dirs doesn't seem to be doing so.... && optimizations?
- [PATCH] Remove v2v-snapshot
- DO NOT REPLY [Bug 4985] New: --list-only shows implied dirs even with --no-implied-dirs