Unsolved

1 Rookie

 • 

90 Posts

770

April 28th, 2021 03:00

SyncIQ - Exclude files from policy

Anyone know how i would exclude certain files to be replicated in a syncIQ policy?

example: dont replicate .txt files 

The option below doest work. I get a syntax error.

--begin-filter --operator=ne --posix-regex-name '.txt' --end-filter

 

The man file for isi-file-matching doesnt help me.....

Documentation also doesnt help.

4 Operator

 • 

1.2K Posts

April 28th, 2021 11:00

The correct syntax requires the "operator" after the filename pattern, and one additional "=" sign:

--begin-filter --posix-regex-name='.txt'  --operator=ne --end-filter

 

However, the filename pattern in your example will not yet do what is seems to do. The correct posix-style regex expression for txt files would be ".*\.txt". S

So why not using the simple shell-like pattern matching scheme that is built into the normal "--name"  option:

 

--begin-filter --name='*.txt'  --operator=ne --end-filter

 

 

hth

-- Peter

Top