Open System Services Management and Operations Guide (G06.30+, H06.08+, J06.03+)

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.
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.
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.
NOTE: An OSS file that is larger than approximately 2 gigabytes cannot be restored to a
system running an RVU that does not include support for OSS large files.
Verifying a Restored OSS File Backup
The dircmp utility reads two directories, compares their contents, and writes the results to the
standard output file. Use dircmp to determine whether the contents of two directories differ in any
way, such as when you restore backed-up files to a new location and want to be sure the contents
are copied correctly.
The dircmp utility compares the filenames in each directory. When the same filename appears
in both, dircmp compares the contents of the two files. In the output, dircmp first lists the files
unique to each directory, then lists the files that have identical names but different contents. By
default, dircmp also lists files that have both identical names and identical contents.
For more information about the dircmp command, see the dircmp(1) reference page either
online or in the Open System Services Shell and Utilities Reference Manual.
Erasing and Removing OSS Files
You can permanently erase data and remove user files in the OSS environment by using the shred
command. The shred command is available on systems running the J06.14, H06.25, and
subsequent RVUs. shred overwrites the specified files repeatedly in order to permanently erase
the file's data. If the remove option is specified, shred also removes the files.
NOTE: The rm command removes files but does not erase them.
For more information about the shred command, see the shred(1) reference page. (See “Viewing
OSS Core Utilities Reference Pages (page 244) for details of viewing the shred(1) reference page.)
Redirecting OSS Standard Files
OSS processes use a different set of default files and a different file format than Guardian processes
do. An OSS process always has three unstructured standard files, usually referred to in UNIX
documentation as stdin, stdout, and stderr.
Erasing and Removing OSS Files 195