HP-UX System Administrator's Guide: Routine Management Tasks HP-UX 11i v3 (B3921-90023, September 2010)
For ecample, to back up every file on the entire system to the two magnetic tape drives
represented by device files, /dev/rmt/0m and /dev/rmt/2,m, enter:
fbackup -f /dev/rmt/0m -f /dev/rmt/1m -i / -I /tmp/index
You would typically use both tape drives in the same tape density mode.
Backing Up Files on a Remote System
If you are administering a workgroup, it is likely that only some of the systems in the
workgroup will have storage devices such as tape drives or optical disk drives attached
locally. In this situation, you will need to perform remote backups.
Remote Backup Using fbackup
To perform a remote backup using fbackup — a utility that does support network
backups — enter a command such as:
fbackup -f othersystem.company.com:/dev/rmt/c0t0d0BEST -v -i /home/matt/project1
Of course, you will need to substitute your system name, tape device file name, and
directory tree information.
For information on recovering files remotely using the frecover command, see
“Restoring Your Data” (page 137).
Remote Backup Using cpio
cd relative-path
find . -hidden -depth -fsonly hfs -xdev \
| cpio \ -ovxcB 2>/tmp/index \
| remsh system-name -l user \
"cat - | dd of=/dev/rmt/0m obs=5k"
If the relative path is root (/), then you will perform a full backup. The /tmp/index
file is an index file of the backup. The -v option causes the output to be written to
standard error.
Note that cpio via network does not support multiple tapes.
Remote Backup Using tar
To perform a remote backup using tar, enter:
cd relative-path
tar cvf - . | remsh remote-system dd of=/dev/rmt/0m
For information on restoring files remotely using the tar command, “Restoring Your
Data” (page 137).
Setting Up an Automated Backup Schedule
If possible, use HP SMH to set up an automated backup schedule.
132 Managing Systems