Open System Services Management and Operations Guide (G06.29+, H06.07+)
Managing OSS Files
Open System Services Management and Operations Guide—527191-005
6-19
Backing Up User Files
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.
Restoring OSS Files Using Backup and Restore 2.0
You can specify part or all of multiple directory hierarchies and selectively restore files
from within them using Backup and Restore 2.0. For example, if you enter the following
at a Backup and Restore 2.0 BR> prompt:
RESTORE =MYTAPE, OSS ((/user/bin TGT /newdir, /usr/local/bin,
( /home/sv/myfile, TGT /home/sv ), /etc/rc, /var/x ),
TAPEDISPOSITION NOREWIND, VERIFYTAPE ON;
you start a restore process that reads selected OSS files from the tape identified by the
DEFINE =MYTAPE and restores them to the OSS file system as follows:
•
All files from /user/bin are restored to the existing directory /newdir.
•
All files from /usr/local/bin are restored to their original parent directory
(which is /usr/local/bin).
•
All files from /home/sv/myfile are restored to the directory /home/sv, which
effectively moves them up a level in the directory tree.
•
All files from /etc/rc and /var/x are restored to their original parent directories.
You must create the TGT directories before entering the command if they do not
already exist. You can also restore entire filesets using the fileset mount points. For
more information about restoring OSS files, see the Backup and Restore 2.0 Manual.
Restoring OSS Files From a pax Archive
The following command restores the content of a pax archive to the current directory:
pax -r -s replstr -f archive-name
-r
reads an archive file from the standard input file.
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.