Open System Services Shell and Utilities Reference Manual (G06.29+, H06.08+, J06.03+)

User Commands (p - r) pax(1)
NOTE: If you specify a wildcard character, such as *, instead of / in this command, the
-W NOG and -W NOE ags are ignored.
6. If the UTILSGE environment variable is not set, to archive all files on the local node,
including files in /E and /G, into the file named paxfile,enter:
pax -wvf paxfile /
7. To archive all files on the local node, including files in /E and /G (ignoring the value of
the UTILSGE environment variable) into the file named paxfile,enter:
pax -wvf paxfile *
8. To extract and restore all OSS files in an archive named paxfile but skip files archived
from /G,enter:
pax -rvf paxfile -W NOG
CAUTIONS
Because of industry standards and interoperability goals, pax does not support the archival of
files larger than 8 gigabytes.
DIAGNOSTICS
A diagnostic message is written to the standard error file and a nonzero exit value is returned (but
processing continues) when pax cannot create a file or a link when reading an archive or when
pax cannot preserve the user ID, group ID, or file mode bits when the -p flag is specified.
If the extraction of a file from an archive is prematurely terminated by a signal or error, pax
might have only partially extracted the file or, if the -n flag was not specified, might have
extracted a file that has the same name as that specified by the user but that is not the file the user
wanted. In addition, the file modes of extracted directories might have incorrect modification
and access times.
When appropriate privileges are required to set one of the access mode bits and if the user restor-
ing the files 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 files 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 file with a filename 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 filenames 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 filenames 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 files or
between local and remote files. You can use the -W NOG and -W NOE flags or the
UTILSGE environment variable to exclude objects in the Guardian file system or
objects accessible through the Expand product. However, these flags are ignored if you
specify a wildcard character in or as the target of the pax command.
527188-021 Hewlett-Packard Company 721