rsync exclude file list question
hi experts
I am running a large rsync job, but the exclude list doesn't seem to be working: The rsync log shows this file as being copied over /a/test 4.11/Logs/2015-03-03_PID_1234/x.y but the exclude file clearly includes this line: /a/test*/Logs/*PID* So shouldn't it have been excluded? Thanks |
The rsync log shows /a/test....
Your exclude specifies a/test... So according to rsync that is different. Check also on quoting. I am not sure whether or not you need quotes for file names with wildcards. jlinkels |
Hi, sorry, that was typo on my part, they should all be being with /. I have fixed that.
|
I am baffled. I reproduced your problem. When I specify your exclude pattern on the command line with --exclude, the exclude works fine. However, putting the exclude pattern verbatim in a file and then using --exclude-from=FILE does not exclude.
jlinkels |
I am trying right now to simplify the rule to just this:
/a/test*/Logs/* I will find out later, because there is a ungodly amount of stuff to rsync. |
Like I said, --exclude=<pattern> on the command line worked, so as a workaround you can specify multitple patterns on the command line.
jlinkels |
hey i found that according to this link, the exclude path is relative, I am testing it now
http://www.thegeekstuff.com/2011/01/...s-and-folders/ |
I did use the relative path.
jlinkels |
mine wasn't... and now it works :D
|
All times are GMT -5. The time now is 06:15 AM. |