Hi, I've set up a rsync deamon with the following config, on the remote side. [deploiement] path = /data/one_tree use chroot = yes max connections=2 lock file = /var/lock/rsyncd read only = no uid = nobody gid = nogroup hosts allow = someIP 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? Regards, Sylvain.
Hi, Sylvain Viart a ?crit :> 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 think I've it. The remote folder in the deletion list contains .svn subfolder from previous rsync without filtering. remote-host:/data/one_tree/preprod# find . -name .svn -type d | xargs rm -rf hehe, much better. why rsync doesn't complain about it can't remove no empty folder of something? Regards, Sylvain.
On 9/24/07, Sylvain Viart <sylvain.viart@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