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

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, enter:
#fbackup -f system-name:/dev/rmt/0m -v -i /dir1
For information on recovering files remotely using the frecover command, see
“Restoring Your Data” (page 139).
Remote Backup Using cpio
cd relative-path
find . -hidden -depth -fsonly hfs -xdev \
| cpio \ -ovxcB2>/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 139).
Setting Up an Automated Backup Schedule
If possible, use HP SMH to set up an automated backup schedule.
If you use HP-UX commands, you can automate your backup procedure using the
crontab utility, which uses with cron, the HP-UX process scheduling facility. For
details, see cron(1M) and see crontab(1).
134 Managing Systems