Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)

User Commands (p - r) pax(1)
pax -rvf paxle -W NOG
CAUTIONS
Because of industry standards and interoperability goals,
pax does not support the archival of |
les larger than 8 gigabytes.
DIAGNOSTICS
A diagnostic message is written to the standard error le and a nonzero exit value is returned (but
processing continues) when pax cannot create a le or a link when reading an archive or when
pax cannot preserve the user ID, group ID, or le mode bits when the -p ag is specied.
If the extraction of a le from an archive is prematurely terminated by a signal or error, pax
might have only partially extracted the le or, if the -n ag was not specied, might have
extracted a le that has the same name as that specied by the user but that is not the le the user
wanted. In addition, the le modes of extracted directories might have incorrect modication
and access times.
When appropriate privileges are required to set one of the access mode bits and if the user restor-
ing the les from the archive does not have the appropriate privileges, the mode bits for which
the user does not have privileges are ignored.
EXIT VALUES
The following exit values are returned by pax:
0 All les were processed successfully.
> 0 An error occurred.
NOTES
1. The pax command can fail with the error message Name too long when an attempt is
made to archive a le with a lename longer than 100 characters. This message is
displayed when the default USTAR format is used to create an archive. The command
fails because the default USTAR format does not support lenames longer than 100 char-
acters, in conformance with the 1990 edition of the POSIX Standard IEEE 1003.1. A
practical workaround is to use the pax command with the -x cpio ag, because the cpio
archive format supports lenames longer than 100 characters.
2. Because /G and /E both appear in your local root directory, you should be very careful
when using OSS shell commands on or from the root directory. OSS shell commands
that perform recursive actions make no distinction between Guardian and OSS les or
between local and remote les. You can use the -W NOG and -W NOE ags or the
UTILSGE environment variable to exclude objects in the Guardian le system or
objects accessible through the Expand product.
3. The pax utility cannot append a le 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:
nd xlog -print | pax -wv -f /G/TAPE -W norewind
nd 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
You will see that the tape contains only the last le archived by the two commands
above.
To archive more than one le on an unlabeled tape, you must enter all of the commands
within the same subshell. For example:
527188-007 Hewlett-Packard Company 721