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

3 4 * * 5 incrback >> fribackup
3 4 * * 6 fullback >> satbackupfull
In the above example incrback and fullback are example shell scripts. Be sure to
set the PATH variable appropriately or use complete paths to any scripts that you include
in the crontab input file. Scripts like these may be used to:
Warn any users who are logged in that the system is going down (for backup
purposes).
Shutdown the system (to single user mode).
Mount any file systems that you wish to back up.
Run fbackup to perform the actual backup.
Return the system to multiuser operating mode.
The output redirection can be specified in the crontab input file or within the script
contained in the crontab input file.
TIP: To edit the crontab input file directly, use the crontab -e option.
Displaying an Automated Backup Schedule
To list your currently scheduled processes, enter:
crontab -l
This displays the contents of your activated crontab input file.
Activating an Automated Backup Schedule
Before you activate a new crontab input file, you should view the currently scheduled
processes (see “Displaying an Automated Backup Schedule” (page 136)). Consider
adding these processes to your crontab input file.
To activate all of the processes defined in your crontab input file and cancel any
previously scheduled processes not defined in your crontab input file, enter:
crontab your_crontab_file
After your crontab backup has been activated, make sure that:
The system clock is set properly.
The backup device is properly connected and the HP-UX I/O system recognizes
the device file specified in the fbackup run string.
Adequate media has been loaded in the backup device.
The backup device is connected to your system and is turned on.
The NFS mounted files you want backed up have the correct permissions. See
“Backing Up NFS Mounted Files with fbackup” (page 132) for more information.
136 Managing Systems