LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 0
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.
 
Old 08-28-2009, 03:09 PM   #2
kdelover
Member
 
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 03:12 PM.
 
Old 08-28-2009, 03:16 PM   #3
andrewtblake
LQ Newbie
 
Registered: Aug 2009
Posts: 4

Original Poster
Rep: Reputation: 0
solution

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

Don't use the quotes!

--exclude=*:*

works.
 
Old 08-28-2009, 03:18 PM   #4
kdelover
Member
 
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.
 
  


Reply


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 11:54 AM
help with rsync exclude syntax please JacekZ Linux - General 2 07-08-2007 02:23 PM
What files to exclude when using rsync TongueTied Linux - General 2 07-20-2006 09:39 PM
rsync exclude list steelhead79 Linux - Software 3 01-14-2005 01:10 PM
Cannot copy filename with colon to floppy JohnKFT Slackware 5 10-02-2004 06:57 AM


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

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