--prune-empty-dirs option not doing the job

Matt McCutchen matt at mattmccutchen.net
Wed Mar 3 18:41:22 MST 2010

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:


You can use "find DEST -depth -type d -empty -delete" to remove the
extra directories.


More information about the rsync mailing list