--delete not working

Matt McCutchen hashproduct+rsync at gmail.com
Mon Sep 24 14:18:08 GMT 2007


On 9/24/07, Sylvain Viart <sylvain.viart at easyrencontre.com> wrote:
> from the source host I do :
>
> rsync -rtlv  --exclude='.svn/**' --exclude=.svn --delete preprod/
> rsync://remote-host/deploiement/preprod/
>
> the --dry-run gives me some file to delete.
>
> but when I run the command without --dry-run, nothing is deleted?

I bet the discrepancy has to do with your exclude filter.  The
--exclude=.svn tells the receiver never to delete a file named .svn,
so it does not delete such a file's parent directories either, even if
they are extraneous.  Deletions of parent directories are neither
itemized nor performed on a real run, but unfortunately, rsync 2.6.9
and earlier incorrectly itemize them on a dry run.  For more
information see:

https://bugzilla.samba.org/show_bug.cgi?id=3825

If this isn't your situation, give me some more information and I'll
try and figure out what the problem is.

Matt


More information about the rsync mailing list