HP-UX System Administrator's Guide: Routine Management Tasks

Ensure that your system can access the device from which you will restore the backup
files. You might need to add a disk or tape drive to your system; refer to Configuring
HP-UX for Peripherals for more information.
Before Restoring Your Data
Gather the following information and materials before you begin:
A list of files you need to restore
The media on which the data resides
The location on your system to restore the files (original location or relative to
some other location)
The device file corresponding to the backup device used for restoring the files
Restoring Your Data Using HP SMH
You can use HP SMH or HP-UX commands to restore data. Generally, HP SMH is
simpler than HP-UX commands. If your backup was created by the fbackup command
(which HP SMH uses), you can use HP SMH or the frecover command to restore
the files from your backup.
Restoring Your Data Using HP-UX Commands
The command restores backup files made using the fbackup utility. If your files were
not created with fbackup, you will need to use another utility (see Choosing the
Backup and Recovery Utility).
To restore files from backups using frecover:
1. Ensure that you have superuser capabilities.
2. Ensure that files you intend to restore are not being accessed. The frecover
command will not restore files that are active (open) or locked.
3. Verify that the backup device is properly connected.
4. Verify that the device is turned on.
5. Ensure that the device is loaded with the appropriate backup tape.
6. Restore files using the frecover command.
The -r option to the frecover command is generally used for recovering all files from
your backup; the -x option is used for restoring individual files to your system. For
complete details, see frecover(1M).
Restoring Files that are NFS Mounted
When restoring files that are NFS mounted to your system, frecover can only restore
those files having “other user” write permission. To ensure the correct permissions,
log in as superuser on the NFS file server and use the /usr/sbin/share command
to export the appropriate permissions. For more information, see share(1M) and NFS
Administrator’s Guide.
140 Managing Systems