rsync --delete isn't deleting files

Matt McCutchen matt at
Fri Jul 4 21:08:41 GMT 2008

On Fri, 2008-07-04 at 20:11 +0100, Tiago Marques wrote:
> In the past, since
> --delete-before did nothing, I did a dry run and then parsed the
> output to have it "rm" the files that were to be deleted. That so also
> because the --delete needs the --recursive option, which for me is
> very impractical. For this Sabayon mirror, I only pretend to mirror
> the images in the root directory and needing the --recursive is not
> good for me. The packages would require me space that I cannot afford.

Use --recursive and then exclude the stuff you don't want, e.g.,
--exclude='/*/' to exclude all subdirectories.  You may wish to use hide
filters or --delete-excluded.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url :

More information about the rsync mailing list