Managing Systems and Workgroups: A Guide for HP-UX System Administrators

Administering a System: Managing Disks and Files
Backing Up Data
Chapter 6 685
If your data becomes corrupt on Thursday the 12th, do the following to
restore your system to its Wednesday the 11th state:
1. Restore the monthly full backup tape from Sunday the 1st.
2. Restore the weekly incremental backup tape from Friday the 6th.
3. Restore the incremental backup tape from Wednesday the 11th.
For information on the actual method and commands to restore these
tapes, see “Restoring Your Data” on page 696.
Backing Up Your Data Using the fbackup Command
The /usr/sbin/fbackup command is the recommended HP-UX backup
utility. The fbackup command can do the following:
indicate specific files or directories to include or exclude from a
backup
specify different levels of backup on a daily, a weekly, or monthly
basis
create an online index file
when used in conjunction with the crontab utility can automate
backups
NOTE As fbackup does its work, it will not back up files that are active (open)
when it encounters them. For this reason, it is best to back up your
system when there are few or no users logged in. If you can do so, you
should change your system’s run-level to the system administration state
(single-user mode) before using fbackup. This will insure that you are
the only one logged in when the backup is run. As a result, a minimum
number of files will be active, thereby reducing the number of files that
are intended for, but not included in, the backup.
When changing to the single-user state, all the subdirectories are
unmounted. Therefore, you must remount them if necessary before
backing up. For information about changing to the single-user state, see
shutdown (1M). If you shut down the system to single-user state, mount
the file systems (other than root (/)) that you want backed up.