js_spamfree-rsync at yahoo.com
2010-Mar-04 01:29 UTC
--prune-empty-dirs option not doing the job
Hello and thanks to all who so generously assist on this great list. test command: rsync -avm --del --prune-empty-dirs --compare-dest=/Users/generic/Desktop/B /Users/generic/Desktop/A/ /Users/generic/Desktop/C produces a large number of directories and nested directories on the destination that are empty. i've tried tweaking so many different combinations of options i'm beginning to lose track! none of them produce the proper result in the destination directory. does anyone have any ideas? many thanks, and the feedback is greatly appreciated. --john
On Wed, 2010-03-03 at 17:29 -0800, js_spamfree-rsync at yahoo.com wrote:> test command: > rsync -avm --del --prune-empty-dirs > --compare-dest=/Users/generic/Desktop/B /Users/generic/Desktop/A/ /Users/generic/Desktop/C > > produces a large number of directories and nested directories on the > destination that are empty. i've tried tweaking so many different > combinations of options i'm beginning to lose track! none of them > produce the proper result in the destination directory.This is a known issue: http://lists.samba.org/archive/rsync/2009-October/023981.html You can use "find DEST -depth -type d -empty -delete" to remove the extra directories. -- Matt
js_spamfree-rsync at yahoo.com
2010-Mar-05 02:26 UTC
Fw: --prune-empty-dirs option not doing the job
Works like a charm! Thanks, Matt!!! --john ----- Forwarded Message ---- From: Matt McCutchen <matt at mattmccutchen.net> To: js_spamfree-rsync at yahoo.com Cc: rsync at lists.samba.org Sent: Wed, March 3, 2010 8:41:22 PM Subject: Re: --prune-empty-dirs option not doing the job On Wed, 2010-03-03 at 17:29 -0800, js_spamfree-rsync at yahoo.com wrote:> test command: > rsync -avm --del --prune-empty-dirs > --compare-dest=/Users/generic/Desktop/B /Users/generic/Desktop/A/ /Users/generic/Desktop/C > > produces a large number of directories and nested directories on the > destination that are empty. i've tried tweaking so many different > combinations of options i'm beginning to lose track! none of them > produce the proper result in the destination directory.This is a known issue: http://lists.samba.org/archive/rsync/2009-October/023981.html You can use "find DEST -depth -type d -empty -delete" to remove the extra directories. -- Matt
Seemingly Similar Threads
- [Bug 10748] New: 3.1.0 and 3.1.1 create all dirs on target even with --prune-empty-dirs
- prune empty dirs doesn't seem to be doing so.... && optimizations?
- purge-empty-dirs and max-file-size confusion
- DO NOT REPLY [Bug 7321] New: Extend "p" filter modifier to make source dirs prunable
- something about filter rules of rsync