S3Sync.net
February 02, 2014, 01:22:56 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Can the --exclude="..."-option be used multiple times?  (Read 3509 times)
maelcum
Newbie
*
Posts: 43



View Profile
« on: April 27, 2007, 03:40:23 PM »

Hm.

When I use something like "s3sync.rb -v -r -s --exclude="crit1" /source/path bucket:" things work beautifully.

Another exclude though seems to override the first one.
So "./s3sync.rb -v -r -s --exclude="crit1" --exclude="crit2" /source/path bucket:" excludes all files that have crit2 in their path, but not the crit1 ones...

Just for sakes I have tried to --exclude="crit1|crit2" which does not work.
Yes, I know --exclude takes regex's, but it was worth a try... ;-)

Right now, I'd need some 8 exclusions in a file list of some 30000 files. Can this be made to work?

Logged
ferrix
Sr. Member
****
Posts: 363


(I am greg13070 on AWS forum)


View Profile
« Reply #1 on: April 27, 2007, 04:30:46 PM »

You can't specify the option multiple times.  You have to make a regex for it.

"(?:crit1|crit2|etcetc)"

depending on your shell: make sure it's not eating or mangling the characters inside the quotes.
Logged
maelcum
Newbie
*
Posts: 43



View Profile
« Reply #2 on: May 05, 2007, 09:26:42 AM »

Hi,

just wanted to give feedback: Works great!
The exclusion list is growing longer, and I am very carefully checking each sync if things are what they should be, but theres no problem.

Really really great. Thanks!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!