rsync --delete isn't deleting files

Tiago Marques tiagomnm at
Fri Jul 11 15:22:04 GMT 2008

I was already using the -d option, it download the subdirs also.
The --exclude option worked fine though, and --delete-before is now
working very well.
Tks to all!
Best regards,
                         Tiago Marques

On Fri, Jul 4, 2008 at 11:18 PM, Wayne Davison <wayned at> wrote:
> On Fri, Jul 04, 2008 at 05:08:41PM -0400, Matt McCutchen wrote:
>> Use --recursive and then exclude the stuff you don't want, e.g.,
>> --exclude='/*/' to exclude all subdirectories.
> You can also use -d (--dirs) instead of -r (--recursive).  That makes
> rsync transfer just the contents of a specified "dir/" (with trailing
> slash) without the contents of any subdirs.  All modern rsyncs will
> allow --delete* to be used with -d w/o -r (though older rsyncs will
> ignore the --delete* option w/o -r).  Matt's suggestion (the use of
> excludes) will work with all rsync versions.
> ..wayne..

More information about the rsync mailing list