Open System Services Management and Operations Guide (G06.25+, H06.03+)
Managing OSS Files
Open System Services Management and Operations Guide—527191-002
6-18
Backing Up User Files
Backup and Restore 2.0 writes the following OSS files to the tape identified by the
DEFINE =MYTAPE:
•
All files larger than 200 Kilobytes belonging to the user dev.user2 in the
directories:
/user/bin
/home/sv/myfile
/usr/local/bin
•
All files from the directories /etc/rc and /var/x modified since January 1, 1999.
You can also backup entire filesets using the fileset mount points. See the Backup and
Restore 2.0 Manual for more information about backing up OSS files.
Backing Up an OSS Directory Hierarchy to a New Directory
To back up the olddir directory hierarchy to the directory newdir, enter the following
OSS shell commands:
mkdir newdir
pax -rw olddir newdir
The mkdir command creates an empty directory to receive the copied files. The pax
command has the following form:
pax -r -w old-pathname new-pathname
-r
reads an archive file from the standard input file.
-w
writes files to the standard output file in the specified archive format (none).
old-pathname
is the relative OSS pathname of the directory to be copied; this specification
overrides use of the standard input file.
In the example, this directory is named olddir and is within the current working
directory.
new-pathname
is the relative OSS pathname of the directory to contain the copied files; this
specification overrides use of the standard output file.
In the example, this directory is named newdir and is the one previously created
by the mkdir command within the current working directory.