Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Directives

Status
Not open for further replies.

TheDugsBaws

Technical User
Oct 23, 2007
114
EU
Apologies all, two threads in a row.


Let's say I am backing up my C: on Windows and I want to skip certain folders.

Is this the correct syntax? (And when do I use quotations)?

<<"C:\">>
+skip: "Program Files"
+skip: FolderA
+skip: "Folder B"
+skip: FolderC

Is it true I only need quotes around my file if there is a space?
 
Your directive looks ok. And yes, you only need quotation when there are spaces in the filenames/directories.

You can always play around with the syntaxes etc in NetWorker, preferably on a test system.
 
Sorry to fire this up again but having a few problems with this one.

Example:
Let's say I have a client whose save set is C:\Program Files and C:\Data.

I have a directive applied to this client call "Skip Prog Folders".

So:

<<"C:\">>
+skip: "Program Files\Adobe"
+skip: "Program Files\Melody-Maker"
+skip: Data\Data-1

My main focus here is around the "-". Does Networker treat the - as a special character? If so, should my directive work if I put quotes around Data\Data-1?

Thanks for the help.

 
No, you don't need quotes around -

But you could write your directives like this then perhaps:

<< "C:\Program Files" >>
+skip: Adobe
+skip: Melody-Maker

<< "C:\Data" >>
+skip: Data-1

Or if you don't have to use an absolut path

<< "C:\" >>
+skip: Adobe
+skip: Melody-Maker
+skip: Data-1

The latter will of course skip all files and folders with those names.
 
Hey folks,

This one is driving me rounf the bend.

Say I have a Unix filesystem with the following folders/files:

/tmp/sap/folder1
/tmp/sap/folder2
/tmp/sap/folder3
/tmp/sap/folder4
/tmp/sap/folder5
/tmp/sap/folder6
mksys
/tmp/sap/foldertypea
/tmp/sap/foldertypeb
/tmp/sap/foldertypec
/tmp/test

How do I write a directive that will skip folder1-folder6 in the tmp/sap directory, file mksys on the root and foldertypea & b in the tmp/sap directory.

I've tried about 30 different variations but each time I hit a brick wall.
 
What about

< / >
skip: mksys
< /tmp/sap >
+ skip: folder1
+ skip: folder2
+ skip: folder3
+ skip: folder4
+ skip: folder5
+ skip: folder6
+ skip: foldertypea
+ skip: foldertypeb

or ...

< / >
skip: mksys
< /tmp/sap >
+ skip: folder?
+ skip: foldertypea
+ skip: foldertypeb

 
I can't really go down that line of specifying folders because the directive could change daily i.e. if folder7 is added it would need this skipped too.
 
OK - what about the wildcard version?
 
If I applied that to everything in /tmp/sap it would mean skipping foldertypec also which I don't want. Maybe there's no other way around this other than specifying, but that's going to prove a pain.

Thanks for the help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top