possible bug with exclude/exclude-from

Dave.Turner at VerizonWireless.com Dave.Turner at VerizonWireless.com
Tue May 11 15:31:19 GMT 2004


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: rsync-bounces+dave.turner=verizonwireless.com at lists.samba.org
[mailto:rsync-bounces+dave.turner=verizonwireless.com at lists.samba.org]On
Behalf Of Tobias Roth
Sent: Tuesday, May 11, 2004 5:52 AM
To: rsync at lists.samba.org
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


More information about the rsync mailing list