HP-UX System Administrator's Guide: Routine Management Tasks HP-UX 11i v3 (B3921-90023, September 2010)

mount -F vxfs -o snapof=/dev/vg00/lvol4 \
/dev/vg02/lvol1 /tmp/house
See mount_vxfs(1M) for syntax.
4. Back up the snapshot file system with any backup utility except dump.
For example, to use tar(1) to archive the snapshot file system /tmp/house, ensuring
that the files on the tape will have relative path names:
cd tmp; tar cf /dev/rmt/0m house
Alternatively, the following vxdump(1M) command backs up a snapshot file system
/tmp/house, which has extent attributes:
vxdump -0 -f /dev/rmt/0m /tmp/house
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 HP SMH. See 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” (page 137)
“Before Restoring Your Data ” (page 138)
restordata
“Restoring Your Data Using HP-UX Commands ” (page 138)
“Recovering From a System Crash ” (page 140)
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, see System Recovery. If your root disk failed and all
the data on the disk is lost, you need to re-install HP-UX; see 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.
Restoring Your Data 137