Managing Systems and Workgroups: A Guide for HP-UX System Administrators
Administering a System: Managing Disks and Files
Restoring Your Data
Chapter 6 697
• 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 SAM
You can use SAM or HP-UX commands to restore data. Generally, SAM
is simpler than HP-UX commands. If your backup was created by the
fbackup command (which SAM uses), you can use SAM 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