LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   rsync exclude any filename containing a colon -- how???? (https://www.linuxquestions.org/questions/linux-newbie-8/rsync-exclude-any-filename-containing-a-colon-how-750933/)

andrewtblake 08-28-2009 02:02 PM

rsync exclude any filename containing a colon -- how????
 
Hi

I'm using rsync, and all I want to do is exclude any file which has a colon in its name.

(It's necessary because the destination is a windows box.)

I've seen a forum posting about this issue which says just a simple

--exclude '*:*'

will work.

But it just doesn't, nor does any variation that I can think of.

I've been hours at it, it seems like it should be so simple. Argh!

I can't tell you how grateful I will be if you can help me solve this.

kdelover 08-28-2009 02:09 PM

i think that should work

rsync -avz ./* --exclude='*:*' <destination>

andrewtblake 08-28-2009 02:16 PM

solution
 
The moment I post, I get the answer -- for me at least.

Don't use the quotes!

--exclude=*:*

works.

kdelover 08-28-2009 02:18 PM

i just checked what you wanted to do and it works for me ,you have to put singlequotes and an equalto,which you didnot i guess.


All times are GMT -5. The time now is 05:01 PM.