
66 Sun StorageTek SAM Archive Configuration and Administration Guide • Version 4, Update 6, 04/07
All files beneath the selected directory (with their specified paths relative to the
mount point of the file system) go through pattern matching. This allows you to
create patterns in the -name regex field to match both file names and path names.
Examples
The following directive restricts files in the archive set images to those files ending
with .gif:
The following directive selects files that start with the characters GEO:
You can use regular expressions with the no_archive archive set. The following
specification prevents any file ending with .o from being archived:
Assume that your archiver.cmd file contains the lines shown in
CODE EXAMPLE 3-10.
With this archiver.cmd file, the archiver does not archive fred.* in the user
directories or subdirectories.
CODE EXAMPLE 3-11 shows the files not archived if you
specify the directives shown in
CODE EXAMPLE 3-10.
images . -name \.gif$
satellite . -name /GEO
no_archive . -name \.o$
CODE EXAMPLE 3-10 Regular Expression Example
# File selections.
fs = samfs1
1 1s
2 1s
no_archive share/marketing -name fred\.
CODE EXAMPLE 3-11 Files Not Archived (Using Directives Shown in CODE EXAMPLE 3-10)
/sam1/share/marketing/fred.anything
/sam1/share/marketing/first_user/fred.anything
/sam1/share/marketing/first_user/first_user_sub/fred.anything
Kommentare zu diesen Handbüchern