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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

directives and wildcards

Status
Not open for further replies.

dkyancey

Technical User
Apr 10, 2003
6
0
0
US
Sorry if this is a double post. My first attempt seemd to have failed.

I have a question about directives: How might I be able to 'skip' everything in directories, where the directory name contains the word 'Temporary'. For example, I'd like to skip things like this:

C/Documents_and_Settings/user.DOMAIN/Local_Settings/Temporary Internet Files/

'user.DOMAIN' is variable so I tried entering this directive to account for variability:
<< */Temporary* >>
+skip;
And this:
<< */Temporary Internet Files/* >>
+skip;

But both produce errors by legato. Can wildcards be used in the << Dir >> statement? Any suggestions?
 
Hello,

You have to put the dir name between &quot;double&quot; quotes.

We don't exclude dir names but we using it like this

<< &quot;E:\\MSSQL\\DATA&quot; >>
+skip: .?* *

To exclude everything from that dir

or

<< / >>
+skip: *.edb
+skip: JET*.tmp

Skip *.edb and JET*.tmp from all disks
 
I decided it best to use a local .nsr directive file. It contains these directives:
+skip: */Temporary Internet Files/*
+skip: */RECYCLE/*
+skip: */Cache/* */cache/*
+skip: *.tmp

However, I still get files such as this backed up:
/vol/vol1/userid/goldlk/Docs & Settings/userid/Local Settings/Temporary Internet Files/desktop.ini

What am I missing? Thanks in advance.
 
The correct syntax is as follows:

1. &quot;Global&quot; directives (configured within the resources)
UNIX/Linux
<< /absolute_pathname >>
[+]directive: file_name(s)

Examples: Just look at the &quot;UNIX standard directive&quot;

Windows
<< &quot;d:\absolute_pathname&quot; >>
[+]directive: file_name(s)

Examples: Just look at the &quot;UNIX standard directive&quot;
Only the pathnames are different

2. &quot;Local&quot; directives
UNIX/Linux
.nsr (in the directory)
[+]directive: file_name(s)

Example: Look at /nsr/mm/.nsr

Windows
nsr.dir (in the directory)
[+]directive: file_name(s)

Example: Look at ..\nsr\mm

Regards, Carsten
 
Networker 61.3
The user guide specifies:
Using Wildcards in ASM Specifications
Wildcards can be used in ASM specifications to replace a single character or string of characters. Standard filematching patterns are supported. On UNIX systems, when applying a directive to all files, including hidden files
(.* files), use * .?*. Note that there must be a space between the first asterisk and the dot.

So what’s the matter with a Directive


<< / >>
skip: tmp_mnt
+skip: core
+compressasm: .
+skip: /oradata*/*.ctl
+skip: /oradata*/*.dbf
+skip: /oradata*/*redo*.log
+skip: /oradata*/*.ARC

/ save: bad file name /oradata*/*.ctl in stdin directives, ignored
:/ save: bad file name /oradata*/*.dbf in stdin directives, ignored
save: bad file name /oradata*/*redo*.log in stdin directives, ignored
save: bad file name /oradata*/*.ARC in stdin directives, ignored



Ed Skolnik
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top