Open System Services Management and Operations Guide (G06.29+, H06.07+)
Managing OSS Files
Open System Services Management and Operations Guide—527191-005
6-26
Restoring User Files
Restoring Files From a pax Archive to the Guardian File
System
Because of the syntactic differences between the names of Guardian and OSS files,
the following behaviors can occur when a pax archive member is restored to a
Guardian file system:
•
An OSS filename might contain characters that are illegal in Guardian filenames.
As a result, the archive member cannot be created on the Guardian target and the
restore operation fails. For example, if the archived file were named
ca$h/.profile, then an attempt to restore it to /G/oss fails because of the
embedded dollar sign character.
•
In the name-transformation process, OSS names that are longer than eight
characters are truncated to the first valid eight characters. For example, the OSS
pathname abcde.fghi is transformed to the Guardian name ABCDEFGH. This
can cause confusion and make identification of files difficult. Filenames that are
similar in one environment might be transformed to the same filename in the other
environment, which might result in the overwriting of previously restored 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.