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

js_spamfree-rsync at yahoo.com js_spamfree-rsync at yahoo.com
Thu Mar 4 19:26:57 MST 2010


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


More information about the rsync mailing list