Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-28-2009, 02:02 PM   #1
LQ Newbie
Registered: Aug 2009
Posts: 4

Rep: Reputation: 0
rsync exclude any filename containing a colon -- how????


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.
Old 08-28-2009, 02:09 PM   #2
Registered: Aug 2009
Posts: 311

Rep: Reputation: 36
i think that should work

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

Last edited by kdelover; 08-28-2009 at 02:12 PM.
Old 08-28-2009, 02:16 PM   #3
LQ Newbie
Registered: Aug 2009
Posts: 4

Original Poster
Rep: Reputation: 0

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

Don't use the quotes!


Old 08-28-2009, 02:18 PM   #4
Registered: Aug 2009
Posts: 311

Rep: Reputation: 36
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
help with rsync exclude files Red Squirrel Linux - Software 4 03-03-2009 10:54 AM
help with rsync exclude syntax please JacekZ Linux - General 2 07-08-2007 01:23 PM
What files to exclude when using rsync TongueTied Linux - General 2 07-20-2006 08:39 PM
rsync exclude list steelhead79 Linux - Software 3 01-14-2005 12:10 PM
Cannot copy filename with colon to floppy JohnKFT Slackware 5 10-02-2004 05:57 AM > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration