Views |
||||||||||||||
How do I make my directive skip/include this file?
(Has anyone had any experience with using ``%20" in substitution for white space?) Filenames (and extensions of type *.tmp) are case sensitive, but paths are not. Example directives can be found in the Administrator's Guide and the man page for nsr(5). Here are some OS-specific tips: For NT Make sure the backslash indicating the root directory is included and paths that include a colon need to be quoted. Example:
<< F:\ >> [instructions]
<< "F:\" >> [instructions] If explorer is set to not show file name extentions, winworkr.exe won't either. For savesets on Win/NT/2000 servers, Networker prefers to to have savesets in all uppercase. Mixed or lowercase clientname:c:\temp save: using 'C:\TEMP' for 'c:\temp'
see Legato Tech Note 062. S. Bjorndal's points about NT also apply to Netware.
note file pattern matching or wildcards follows sh(1) practice, not regex, or C or Korn shell practices. As Ulrich Oldendorf reminded me in private email, wild cards only work for files, not directories. The message "clientname:c:\temp save: using `C:\TEMP' for `c:\temp'" appears in NT4 and Win2k with NW6.0.x. Server side Directives
Networker seems to have problems dealing with long directives, so try and keep them as short as possible.
<< "C:\" >> << "C:\My directory goes here" >> << "/open/sesame" >> If special characters appear elsewhere in your directive, quote these as well:
<< "/" >> +skip: "shock_horror!" · Case Sensitive Directory / File names should appear in directives in the same case as on the system:
<< "C:\MyDir" >> and << "C:\mydir" >>
In practice it looks as if Networker is able to handle case conversion when there are differences between the directive and the file system, however this will result in informational messages in your savegroup logs. Better to respect case.
<< "/usr/var" >>
_ TOF_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ << "/export/home" >> · to skip a file(s) I have observed that after your "skip" or "+skip" statement, Networker prefers to have 2 spaces before the file or directory name. With only one space the directive doesn~Rt work (ie. throws an error in your savegroup messages) ! This maybe something platform specific to windows, but seems worth mentioning.
<< "C:\Temp" >> skip: MyFile.mdb Myfile2.txt
Directives only apply to the directory they are specified for, unless they are preceded by the "+" character.
<< "C:\" >> +skip: *.mp3 << "E:\Databases" >> +skip *.DAT
<< "/usr" >> +skip: cache
if specifying an entire drive, remember to include the slash
<< "F:\" >> +skip: "My Program Files" +skip: *.tmp
· On Unix an efficient way of excluding directories looks like this:
<< "/" >> +skip: core +skip: "TT_DB" +skip: cdrom +skip: home +skip: "lost+found" +skip: mnt +skip: proc +skip: tmp |
||||||||||||||
| This page was last modified 08:15, 2 December 2006. | ||||||||||||||