Managing Systems and Workgroups: A Guide for HP-UX System Administrators
Administering a System: Managing Disks and Files
Restoring Your Data
Chapter 6696
Restoring Your Data
HP-UX has a number of utilities for backup and recovery. This discussion
focuses on the fbackup and frecover commands used by SAM. Refer to
the HP-UX Reference for information on the other backup and restore
utilities: cpio, dump, ftio, pax, restore, rrestore, tar, vxdump, and
vxrestore.
The following topics are covered:
• “Determining What Data to Restore” on page 696
• “Before Restoring Your Data” on page 696
• “Restoring Your Data Using SAM” on page 697
• “Restoring Your Data Using HP-UX Commands” on page 697
• “Recovering From a System Crash” on page 699
Determining What Data to Restore
There are two scenarios you will likely encounter for restoring files:
1. You need to recover one or a few files, usually as a result of an
accidental deletion or because the file has been overwritten.
2. You need to recover all of your files. This is usually part of the system
crash recovery process. If you have experienced a file system failure
and you suspect that you have corrupt data, refer to System
Recovery. If your root disk failed and all the data on the disk is lost,
you need to re-install HP-UX; refer to the HP-UX installation guide
for your version of HP-UX for details. After you have repaired the file
system or replaced the hardware, you can restore your data from
your most recent backups.
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: