Hi,
Trying to use the --exclude-from switch, but it doesn't seem to work. I have tried the --exclude="pattern" and that does work. Even tried changing the "C:/sbin/exclude.txt" to /cygdrive/c/sbin/exclude.txt and that didn't work either. I'm using the same syntax as I do in unix, but on a windows box instead.
Using cwrsync v2.6.6
Output of first few lines:
parse_filter_file(/cygdrive/C/sbin/TEST.txt,0,3)
add_run(yb") -- these are strange chars which I cannot copy into this...
building file list...
TIA,
-J.
Please consult rsync manual page for an extensive explanation of filter rules.
Example: I want to exclude all files containing Rachel and starting with Timeliste.
I use this (--exclude-from=FILE) all the time on my linux boxes, so I think I have the syntax correct unless it is totally different for windows. This list of excludes is much more simple than my other exclude lists (under linux), so I am wondering if I am doing something else wrong.
I am trying to exclude a few directories for example:
AE_CACHE/
AITEMP/
COMMOTION_CACHE/
This works:
rsync -av --exclude="AE_CACHE/" --exclude="AITEMP/" --exclude="COMMOTION_CACHE/" /cygdrive/M/ /cygdrive/L/pbox
This doesn't work:
rsync -av --exclude-from="C:/sbin/TEST.txt" /cygdrive/M/ /cygdrive/L/pbox
This doesn't work either
rsync -av --exclude-from=/cygdrive/C/sbin/TEST.txt /cygdrive/M/ /cygdrive/L/pbox
The contents of C:\sbin\TEST.txt are the three directories listed above.
thanks again,
-J.
Hi,
Trying to use the --exclude-from switch, but it doesn't seem to work. I have tried the --exclude="pattern" and that does work. Even tried changing the "C:/sbin/exclude.txt" to /cygdrive/c/sbin/exclude.txt and that didn't work either. I'm using the same syntax as I do in unix, but on a windows box instead.
Using cwrsync v2.6.6
Output of first few lines:
parse_filter_file(/cygdrive/C/sbin/TEST.txt,0,3)
add_run(yb") -- these are strange chars which I cannot copy into this...
building file list...
TIA,
-J.
Strange chars ?? Maybe your exclude file is saved in Unicode format ? Try ANSI and see if it helps.
Hi,
Thank You!
The text file was unicode and I re-saved it out as ANSI and it worked.
thanks again,
-J.
Both. You can specify it as an encoding option.
Does notepade save in unicode or ansi?