--exclude-from switch not working

7 posts / 0 new
Last post
itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
--exclude-from switch not working

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.

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: --exclude-from switch not working

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.

Exclude file below will NOT work:

Rachel

Timeliste

Exclude file below will  work

*Rachel*

Timeliste*

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: --exclude-from switch not working

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.

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: --exclude-from switch not working

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.

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: --exclude-from switch not working

Hi,
Thank You!

The text file was unicode and I re-saved it out as ANSI and it worked.

thanks again,
-J.

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: --exclude-from switch not working

Both. You can specify it as an encoding option.

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: --exclude-from switch not working

Does notepade save in unicode or ansi?

Topic locked

Release announcements