Open System Services Management and Operations Guide (G06.30+, H06.08+, J06.03+)
NOTE: Do not begin find or pax operations at the root (/) directory. find and pax perform
recursive operations within directories unless you use the UTILSGE=NOG:NOE environment variable
or the -W NOG and -W NOE flags. The / directory contains /G and /E. If you begin an operation
that recursively processes directories at /, you can unintentionally process an entire Guardian file
system and the operation will take a very long time to finish.
See “Using the Local Root Directory as a Pathname” (page 84) for more information about UTILSGE,
-W NOG, and -W NOE.
If you attempt to archive individual files, you must compensate for the fact that the pax utility cannot
append a file to an unlabeled tape. Each successive write to such a tape begins at the beginning
of the tape.
For example, if you issue the following commands from the shell:
find xlog -print | pax -wv -f /G/TAPE -W norewind
find xlog.bsm -print | pax -wv -f /G/TAPE -W norewind
then physically unload the tape, reload the tape, and enter:
pax -rv -f /G/TAPE -W norewind
then the tape contains only the last file archived by the two command lines entered. To archive
more than one file on an unlabeled tape, you must enter all the commands within the same subshell.
For example:
( find xlog -print; find xlog.bsm -print ) | pax -wv -f /G/tape
This command causes all the files printed by both find commands to be written to tape, because
the find commands are executed in a single subshell.
For more information about the pax and find commands, see the pax(1) reference page and
the find(1) reference page, either online or in the Open System Services Shell and Utilities
Reference Manual. Additional information about both commands is in the Open System Services
User’s Guide.
Backing Up the OSS File Hierarchy of the Current Directory
To back up the file hierarchy of the current directory to the tape mounted on Guardian tape device
$TAPE, using the blocking factor for 5120 bytes, enter the following OSS shell command:
pax -wv -f /G/tape -b 10b .
This command has the following form:
pax -w -v -f archive_name -b blocksize .
-w
writes files to the standard output file in the specified archive format (the default format is
ustar).
-v
writes archive member pathnames to the standard error file.
-f archive_name
specifies the pathname of the output archive, overriding the default standard output file.
Guardian tape devices can be specified with the /G naming convention (for example,
/G/tape).
If the -a flag is also specified and a disk archive medium is used, files are appended to the
end of the archive.
-b blocksize
records an archive as a series of fixed-size blocks to make physical output more efficient.
Blocking is automatically determined on input.
Backing Up and Restoring OSS Files 187