The fbackup Command Backup and Dump Commands

were logged archive The name of the file whose date was the date of the last archive remind The name of the file that was checked by etcprofile to remind the next logged−in person to change the backup tape outdev Specified the output device for the backed−up files fscklog The name of the file where start and finish times and fsck output was logged In all cases, the output from backup utility was a normal cpio archive file. For data recovery, it is important to note that backup creates archive tapes with all files and directories specified relative to the root directory. Consequently, data recovery should be invoked from the root directory with recovered files directory path names specified relative to the root directory .

12.4.2 The fbackup Command

HP−UX 10.x introduced a new flavor of the backup command, this time renamed fbackup. The command itself is a powerful replacement for previous backup commandsutilities, a combination of the best characteristics of the backup and dump commands. fbackup enables a filedirectory related backup, with an optional selection to overcome filesystem boundaries. In this way a partial backup of a single filesystem could be done, as well as a complete backup of several filesystems. The command itself was designed to allow backups while the system is in use by providing the capability to retry an active file. However, when absolute consistency in a full backup is important, the corresponding filesystem should be dismounted, or the system placed in a single−user mode. The fbackup command has the following form: fbackup options−arguments where options−arguments A list of options with corresponding arguments Note Files and directories to be backed up are defined as arguments, or are a list defined as an argument. Selected options are immediately followed by corresponding arguments if the arguments are requested in a comprehensive way. The most common options are: Option Meaning c Specifies a configuration file for the backup an argument, unless the default configuration is used i Includes a filename or a directory name for the backup an argument, and can be repeated many times e Excludes a filename or a directory name from the backup an argument, and can be repeated many times g Specifies a graph−file an argument, which is a list of included and excluded filenamesdirnames f Identifies the backup device to be used instead of the default devrmt0m an argument n Cross NFS mount−points by default fbackup does not cross 284 s Follows symbolic links by default it does not v Verbose otherwise fbackup works silently u Updates the backup database 0–9 Specifies the backup level 0 is a full backup I Also writes the index the list of backed−up files in the file specified as an argument by default it is written only into the tapevolume V Also writes the volume header in the file specified as an argument by default it is written only into the tapevolume R Continues restarts an interrupted backup Note: There are more options that make fbackup more powerful and flexible. The following script illustrates how the command can be used. The script provides a full backup of data defined in the graph file, a list of backed−up files is created in the index file, and the corresponding logging is provided. cat usrlocalfbackupbinfbackup.full binsh MT_DEVICE=devrmt0m GRAPH_FILE=usrlocalfbackupgraphgraph.full INDEX_FILE=usrlocalfbackupindexindex.full LOG_FILE=usrlocalfbackuplogfbackup.log. date +a mt −t MT_DEVICE rewind echo date: Fbackup started LOG_FILE etcfbackup −f MT_DEVICEdevrmt0m −0 −u −v −g GRAPH_FILE −I INDEX_FILE LOG_FILE echo date: Fbackup finished. LOG_FILE

12.4.3 The dumpufsdump Command