RE: possible bug with exclude/exclude-from

2004-05-11 Thread Dave . Turner
I created a pretty complex exclude file recently and it took a lot of help
from the forum. But, I learned that using +/- in front of each line is very
helpful. The order is also very important. Try the following exclude files.

[start]
- phoenix/default/*/Cache/*  (not sure how rsync handles dot files, try
removing the dot in front of pheonix)
- **.xvpics**
- *.swp
[end]

You should be able to simplify if there are no other /Cache/ dirs you want
to copy.

[start]
- /Cache/
- **.xvpics**
- *.swp
[end]

Also, try changing the order. I found in my exclude that when an exclude
entry was ignored it was due to the order and directories should come after
files. 

[start]
**.xvpics**
*.swp
.phoenix/default/*/Cache/
[end]


You may need to combine some of the other suggestions in a trial and error
test. But try changing the order first!

Hope that helps,
Dave


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Behalf Of Tobias Roth
Sent: Tuesday, May 11, 2004 5:52 AM
To: [EMAIL PROTECTED]
Subject: possible bug with exclude/exclude-from


Hi

While trying to back up my homedir, i found what looks like a bug:

from /home, i do:

rsync -CWavP --delete --delete-excluded \ 
 --exclude=.phoenix/default/*/Cache/ \
 --exclude-from=rsync-excludes \
 myusername/ targetserver:/backup/myusername/

rsync-excludes contains (without [] lines):
[start]
#comment

**.xvpics**
*.swp
[end]


This works as expected, the phoenix cache dir is excluded, xvpics and .swp
files as well. Now, if i try the the same except the .phoenix stuff moved
to the exclude file:

rsync -CWavP --delete --delete-excluded \ 
 --exclude-from=rsync-excludes \
 myusername/ targetserver:/backup/roth/

rsync-excludes now contains (again without []):
[start]
#comment

.phoenix/default/*/Cache/
**.xvpics**
*.swp
[end]


This way, the phoenix cache dir gets transfered. The other two excludes
still
work fine.
rsync version is: rsync  version 2.6.2  protocol version 28

I can provide more details if needed.

greets, t.
-- 
To unsubscribe or change options:
http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: possible bug with exclude/exclude-from

2004-05-11 Thread Wayne Davison
On Tue, May 11, 2004 at 11:51:32AM +0200, Tobias Roth wrote:
 [start]
 #comment
 
 .phoenix/default/*/Cache/
 **.xvpics**
 *.swp
 [end]

I'd recommend checking the phoenix line for trailing spaces.

..wayne..
-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html