Open System Services Management and Operations Guide (G06.25+, H06.03+)

Managing OSS Files
Open System Services Management and Operations Guide527191-002
6-26
Restoring User Files
Guardian files can be specified as pathnames in a /G directory. Files can be restored
within /G directories, but existing Guardian files are overwritten only if you use the
-W clobber flag. The Guardian file attributes are not preserved.
Guardian files are restored as unstructured Guardian files with the file code 0. Only
Guardian files with file codes that are supported by the OSS environment are
processed.
Restoring a pax Archive of Guardian Files From a Tape
To restore files from the tape that is mounted on $TAPE to the Guardian target
$VOL.SUBVOL, extracting only files whose names end with .c and overwriting any
existing Guardian files with the same name, enter the following OSS shell commands:
cd /G/vol/subvol
pax -rv -f /G/tape -W clobber *.c
The cd command selects the Guardian subvolume that you want to restore. The pax
command has the following form:
pax -r -v -f archive-name -W clobber match-pattern
-r
reads an archive file from the standard input file.
-v
writes archive member pathnames to the standard error file.
-f archive-name
specifies the pathname of the input archive, overriding the default standard input
file. Guardian tape devices can be specified with the /G naming convention (for
example, /G/tape).
-W clobber match-pattern
is a HP extension. This flag allows selected files from an archive to be stored on a
Guardian target and to overwrite any preexisting Guardian target file with the same
name. Users must be aware that the files are restored as unstructured files and
that Guardian file attributes might not be preserved.
The variable match-pattern is a normal wildcard matching pattern for an OSS
filename. In the example, any file with a name ending in the characters .c is
matched and therefore overwritten.
Caution. Understand the potential danger of destroying data files (described in Guardian
Filename Transformation in the DESCRIPTION section of the pax(1) reference page) before
using the -W clobber flag to restore files to a Guardian target.