HP-UX Reference (11i v1 05/09) - 1M System Administration Commands A-M (vol 3)

f
frecover(1M) frecover(1M)
Language This field contains the language used to make the backup.
-R path An interrupted full recovery can be continued using this option.
frecover uses the informa-
tion in file path to continue the recovery from where it was interrupted. The only command
line option used by
frecover with this option is
-f. The values in path override all other
options to
frecover. Note also that only full recoveries are restarted with this option,
because no history of include or exclude lists is stored in the restart file. If a partial recovery
(i.e., using the -x option) is interrupted then restarted with this option,
frecover continues
recovering where the partial recovery left off, but restores all files on the backup media beyond
this point.
The following options can be used in addition to the option above that selects the desired function:
-c config config specifies the name of a configuration file to be used to alter the behavior of
frecover.
The configuration file allows the user to specify the action to be taken on all errors, the max-
imum number of attempts at resynchronizing on media errors (
-S option), and the action to be
taken on media errors. Each entry of a configuration file consists of an action identifier fol-
lowed by a separator followed by the specified action. Valid action identifiers are
error,
chgvol, and sync. Separators can be either tabs or spaces. In the following sample
configuration file, each time an error is encountered, the script
/var/adm/fbackupfiles/frecovererror
is executed. The script
/var/adm/fbackupfiles/frecoverchgvol
is executed each time the backup media
is to be changed. The maximum number of resynchronization attempts is five.
error /var/adm/fbackupfiles/frecovererror
chgvol /var/adm/fbackupfiles/frecoverchgvol
sync 5
-e
path path is interpreted as a graph to be excluded from the recovery. There is no limit on how
many times the -e option can be specified.
-f device device identifies the backup device to be used instead of the default
/dev/rmt/0m .Ifdevice
is
-, frecover reads from standard input. Thus fbackup and frecover can be used in
a pipeline to backup and recover a file system as follows:
fbackup -i /usr -f - | (cd /mnt; frecover -Xrf -)
If more than one output file is specified, frecover uses each one successively and then
repeats in a cyclical pattern. Patterns can be used in the device name in a way similar to file
name expansion as done by sh(1). The expansion of the pattern results in all matching names
being in the list of devices used. A device on the remote machine can be specified in the form
machine:device. frecover creates a server process, /usr/sbin/rmt
, on the remote
machine to access the tape device. If
/usr/sbin/rmt
does not exist on the remote system,
frecover creates a server process from /etc/rmt on the remote machine to access the
tape device. The pattern matching capability does not apply to remote devices. Only raw
magnetic tapes can be remote devices. The fast search marks capability is not used when
accessing remote DDS devices.
-g graph graph defines a graph file. Graph files are text files and contain the list of file names (graphs)
to be recovered or skipped. Files are recovered using the -i option; so, for example, if the
user wants to recover all of /usr, the graph file contains one entry:
i /usr
It is also possible to skip files by using the -e option. For example, if a user wants to recover
all of /usr except for the subgraph /usr/lib, the graph file contains two entries:
i /usr
e /usr/lib
If the graph file is missing, frecover exits with an error message. An empty graph file
results in recovering all files on the media.
-h Extract the actual directory, rather than the files that it references. This prevents hierarchi-
cal restoration of complete subtrees from the backup media.
-i path path is interpreted as a graph to be included in the recovery. There is no limit on how many
times the -i option can be specified.
Section 1M240 Hewlett-Packard Company 2 HP-UX 11i Version 1: September 2005