Managing Systems and Workgroups: A Guide for HP-UX System Administrators
Administering a System: Managing Disks and Files
Backing Up Data
Chapter 6 687
Also, fbackup assumes all files remaining to be backed up will fit on the
current tape for the index contained on that media. Therefore, if you did
not use the -I option on fbackup or removed the index file, extract an
index from the
last
media of the set.
Use the /usr/sbin/frecover utility to list the contents of the index at
the beginning of a backup volume made with fbackup. For example, the
command
frecover -I /tmp/index2 -f /dev/rmt/0m
specifies that the device file for the magnetic tape drive is /dev/rmt/0m
and you want to put the listing of the index in the file /tmp/index2.
Backing Up NFS Mounted Files with fbackup
When backing up files that are NFS mounted to your system, fbackup
can only back up those files having “other user” read permission unless
you have superuser capability. (To recover the files, you will need “other
user” write permission.) To ensure the correct permissions, log in as
superuser on the NFS file server and use the root= option to the
/usr/sbin/exportfs command to export the permissions, then back up
as root. For more information, see exportfs (1M) and Installing and
Administering NFS Services.
Examples of fbackup Commands
Here are a series of examples showing a variety of ways that fbackup
can be used.
Example: Backing
Up to a DDS (DAT)
Tape
For this example, we want to do a full backup and do not care about
doing future incremental backups. Therefore, we do not need to specify a
backup level (nor do we need to use the -u option to update the dates
file). We could also specify “level 0” to indicate a full backup.
fbackup -i /home
Example: Backing
Up to a DLT Tape
(You plan to do a future incremental backup.)
This example will back up the entire structure except the invoices
directory. The device file for this example is /dev/rmt/1h, specified using
the -f option. For this example, we need to plan for the incremental
backup (next example), so we must do three things:
1. Use a graph file to specify which files will be included/excluded.