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

3. Make and mount the snapshot file system.
In the following example, a snapshot is taken of logical volume /dev/vg00/lvol4,
contained in logical volume /dev/vg02/lvol1, and mounted on /tmp/house:
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. 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” (page 139)
“Before Restoring Your Data ” (page 140)
“Restoring Your Data Using HP SMH” (page 140)
“Restoring Your Data Using HP-UX Commands ” (page 140)
“Recovering From a System Crash ” (page 142)
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.
Restoring Your Data 139