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

Recovering From a System Crash
IMPORTANT: To protect your data, you should create a recovery plan to be used in
the event of a system crash.
You can create a recovery archive of an existing system using Ignite-UX.. To obtain the
system recovery features and manpages, install Ignite-UX from the Application Release
media and choose the bundle that matches your release.
For detailed information, see the Installing and Updating Ignite-UX and HP-UX 11i v3
Installation and Update Guide.
Backing Up and Recovering Directories: Quick Reference for tar
The following examples may be useful for users wanting to make a quick backup to
tape or disk. For information on system backup, see “Backing Up Data” (page 122).
To create a tar backup to tape:
tar cv /home/me/mystuff /work/project5/mystuff
This can include files and directories.
NOTE: This overwrites anything already on the tape.
v (verbose) is optional throughout.
tar assumes the system default tape device file /dev/rmt/0m; this is implicit
in all the tape examples that follow. You can specify a different device file (or
a disk file; see the next example) by means of the f option.
To add files to the tape only if they are not already there, or have been modified
since they were last written to the tape:
tar uv /home/me
New and changed files in the directory /home/me are added to the end of the tape
(old versions of the files are not overwritten on the tape).
To find out what’s already on the tape:
tar tv
To write out the tape table of contents to a file:
tar tv > /home/me/backup.12.26.2007
To print out the tape table of contents:
tar tv | lp lp_options
To extract a file (get it back off the tape):
tar x /users/me/mystuff/needed
142 Managing Systems