cancel
Showing results for 
Search instead for 
Did you mean: 

Backup Selection all the other files

GDYR_MPD
Level 4

I am trying to create a stream for each file/folder that begins with a different letter/number.

I see that I can put regular expressions to get this to occur.

Is it possible to do a grep -v on files/folders.  or Get all the files that are not included in the first two streams.

 

Example:

NEW_STREAM

\a*

NEW_STREAM

\b*

NEW_STREAM

\c*

NEW_STREAM

\![abc]* 

1 ACCEPTED SOLUTION

Accepted Solutions

CRZ
Level 6
Employee Accredited Certified

You didn't say, but since you're using backslashes, I'm assuming this is Windows?

Unfortunately, you're rather limited in what wildcards you can use.  In Windows, you can't even use brackets in a Backup Selection entry in a policy!

Wildcard use in NetBackup on Windows

 http://symantec.com/docs/HOWTO68124

(I believe this is taken directly from pages 898-900 of the 7.5 Admin Guide I for Windows)
 http://symantec.com/docs/DOC5159

Your only resort is to have a really long list matching EVERY possible first character as your final stream:

NEW_STREAM
\d*
\e*
\f*
\g*
...

Unwieldy, but it WOULD work...

View solution in original post

1 REPLY 1

CRZ
Level 6
Employee Accredited Certified

You didn't say, but since you're using backslashes, I'm assuming this is Windows?

Unfortunately, you're rather limited in what wildcards you can use.  In Windows, you can't even use brackets in a Backup Selection entry in a policy!

Wildcard use in NetBackup on Windows

 http://symantec.com/docs/HOWTO68124

(I believe this is taken directly from pages 898-900 of the 7.5 Admin Guide I for Windows)
 http://symantec.com/docs/DOC5159

Your only resort is to have a really long list matching EVERY possible first character as your final stream:

NEW_STREAM
\d*
\e*
\f*
\g*
...

Unwieldy, but it WOULD work...