rsync --delete isn't deleting files
Wayne Davison
wayned at samba.org
Fri Jul 4 22:18:39 GMT 2008
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