Open System Services Management and Operations Guide (G06.29+, H06.07+)
Managing OSS Files
Open System Services Management and Operations Guide—527191-005
6-20
Backing Up User Files
-s replstr
modifies the file or archive member names named by pattern or file operands
according to the substitution expression replstr, using the syntax of the ed
utility. For information about the ed utility, see the ed(1) reference page either
online or in the Open System Services Shell and Utilities Reference Manual. (The
ed utility concepts of “address” and “line” are meaningless in the context of the
pax utility and must not be used.)
The format of replstr is:
/old/new/[gp]
where (as in the ed command) old is a basic regular expression, new is the
replacement string to be inserted in place of matches for the regular
expression, and the g and p options specify forms of replacement.
-f archive-name
specifies the relative OSS pathname of the archive file to be read.
For example, to read the archive a.pax, with all files rooted in /usr within the archive
and extracted relative to the current directory, enter the OSS shell command:
pax -r -s ',^//*usr//*,,' -f a.pax
In this example, the expression:
',^//*usr//*,,'
translates into an ed replacement string as follows:
' The opening and closing single quotation marks (') enclose the substitution
expression.
, The first comma (,) indicates the end of the omitted line address argument.
The second and third commas indicate the beginnings of the two omitted
arguments.
^ The circumflex (^) means search from the beginning of the line.
/ The first slash (/) means search for the first occurrence of a slash.
/* The second slash and the asterisk (*) mean search for any number of
slashes (0 or more) following the required slash.
usr usr is the name of the directory to be searched.
/ The third slash means search for the first occurrence of a slash after usr.
/* The fourth slash and the asterisk mean search for any number of slashes (0
or more) following the required slash.
Note. You cannot restore an OSS file that is larger than approximately 2 gigabytes to a system
running an RVU that does not include support for OSS large files.