On Fri, Sep 01, 2006 at 06:53:30PM +0200, Paul Slootman wrote:
> Because I couldn't reproduce it, and I didn't want to close a bug report

Huh? This should be very simple reproducible by just following the
http://lists.samba.org/archive/rsync/2005-April/012335.html

And yes, with the current rsync/unstable it is not reproducible this
way, i.e. the patch works for that :)

> I had not seen confirmed that it was fixed (although I'm pretty

However, unfortunately it's not fully fixed either :/
I just stumbled over it while noticing that my rsnapshot root backup
never gets any file deleted...

So I made some tests:

[EMAIL PROTECTED]:~# rsync -HSaxvn --delete --numeric-ids --relative 
--delete-excluded --exclude=lost+found/ / /mnt/rsnapshot/daily.0/darkside/root 
| grep -c ^deleting
0
[EMAIL PROTECTED]:~# rsync -HSaxvn --delete --numeric-ids --delete-excluded 
--exclude=lost+found/ / /mnt/rsnapshot/daily.0/darkside/root | grep -c ^deleting
264
[EMAIL PROTECTED]:~# cd /
[EMAIL PROTECTED]:/# rsync -HSaxvn --delete --numeric-ids --relative 
--delete-excluded --exclude=lost+found/ . /mnt/rsnapshot/daily.0/darkside/root 
| grep -c ^deleting
264
[EMAIL PROTECTED]:/# cd
[EMAIL PROTECTED]:~# rsync -HSaxvn --delete --numeric-ids --relative 
--delete-excluded --exclude=lost+found/ /. /mnt/rsnapshot/daily.0/darkside/root 
| grep -c ^deleting
0
[EMAIL PROTECTED]:~#

As you can see, without --relative deletion works well, with --relative
it's not that simple to work around it (except the cd /, which doesn't not
work in case you rsync some.host:/ :)). If you have an idea for another
workaround, please let me know :)

> I meant to say I never encountered it, and there was a pretty simple
> workaround (drop the trailing slash). Your report that that doesn't help

Well, this is not always that simple :)


PS: CC: to rsnapshot-maintainer.


regards
   Mario
-- 
Programmieren in C++ haelt die grauen Zellen am Leben. Es schaerft
alle fuenf Sinne: den Schwachsinn, den Bloedsinn, den Wahnsinn, den
Unsinn und den Stumpfsinn.
                                 [Holger Veit in doc]

Attachment: signature.asc
Description: Digital signature

Reply via email to