
72 Sun StorageTek SAM Archive Configuration and Administration Guide • Version 4, Update 6, 04/07
In CODE EXAMPLE 3-19, the files in directory data are archived when their archive
age reaches one hour.
Unarchiving Automatically
If you specify more than one archive copy of a file, it is possible to unarchive all but
one of the copies automatically. You might want to do this when the files are
archived to various media using various archive ages.
CODE EXAMPLE 3-20 shows the directive that specifies the unarchive age. The first
copy of the files in the path home/users is archived six minutes after modification.
When the files are 10 weeks old, second and third archive copies are made. The first
copy is then unarchived.
For more ways to control unarchiving, see “Controlling Unarchiving” on page 80.
Specifying More Than One Copy for Metadata
If more than one copy of metadata is required, you can place copy definitions in the
directive file immediately after an fs= directive.
CODE EXAMPLE 3-21 shows an archiver.cmd file that specifies multiple metadata
copies.
In this example, one copy of the metadata for the samfs7 file system is made after 4
hours and a second copy is made after 12 hours.
CODE EXAMPLE 3-19 An archiver.cmd File That Specifies the Archive Age
ex_set data
1 1h
CODE EXAMPLE 3-20 An archiver.cmd File that Specifies the Unarchive Age
ex_set home/users
1 6m 10w
2 10w
3 10w
CODE EXAMPLE 3-21 An archiver.cmd File that Specifies Multiple Metadata Copies
fs = samfs7
1 4h
2 12h
Komentáře k této Příručce