=head1 NAME
backup_volsetrestore - Restores all volumes in a volume set
=head1 SYNOPSIS
=for html
B S<<< [B<-name> >] >>>
S<<< [B<-file> >] >>> S<<< [B<-portoffset> >+] >>>
S<<< [B<-extension> >] >>> [B<-n>]
[B<-localauth>] S<<< [B<-cell> >] >>> [B<-help>]
B S<<< [B<-na> >] >>> S<<< [B<-f> >] >>>
S<<< [B<-p> >+] >>> S<<< [B<-e> >] >>>
[B<-n>] [B<-l>] S<<< [B<-c> >] >>> [B<-h>]
=for html
=head1 DESCRIPTION
The B command restores the complete contents of a
group of read/write volumes to the file system, by restoring data from the
last full dump and all subsequent incremental dumps of each volume. It is
most useful for recovering from loss of data on multiple partitions, since
it can restore each of a defined set of volumes to a different site.
(If the C instruction appears in the
F> file associated with the specified
port offset, then the B command restores data from
the backup data file listed for that port offset in the Tape Coordinator's
F file, instead of from tape. For the sake of
clarity, the following text refers to tapes only, but the Backup System
handles backup data files in much the same way.)
If restoring one or more volumes to a single site only, it is usually more
efficient to use the B command. If restoring all
volumes that resided on a single partition, it is usually more efficient
to use the B command.
Indicate the volumes to restore by providing either the B<-name> argument
or the B<-file> argument:
=over 4
=item *
The B<-name> argument names a volume set. The Backup System restores all
volumes listed in the Volume Location Database (VLDB) that match the
server, partition, and volume name criteria defined in the volume set's
volume entries, and for which dumps are available. It restores the volumes
to their current site (machine and partition), and by default overwrites
the existing volume contents.
It is not required that the volume set was previously used to back up
volumes (was used as the B<-volumeset> option to the B
command). It can be defined especially to match the volumes that need to
be restored with this command, and that is usually the better
choice. Indeed, a I volume set, created by including the
B<-temporary> flag to the B command, can be especially
useful in this context. A temporary volume set is not added to the Backup
Database and exists only during the current interactive backup session,
which is suitable if the volume set is needed only to complete the single
restore operation initialized by this command.
The reason that a specially defined volume set is probably better is that
volume sets previously defined for use in dump operations usually match
the backup version of volumes, whereas for a restore operation it is best
to define volume entries that match the base (read/write) name. In that
case, the Backup System searches the Backup Database for the newest dump
set that includes either the read/write or the backup version of the
volume. If, in contrast, a volume entry explicitly matches the volume's
backup or read-only version, the Backup System restores dumps of that
volume version only.
=item *
The B<-file> argument names a file that lists specific volumes and the
site to which to restore each. The volume name must match the name used in
Backup Database dump records rather than in the VLDB, if they differ,
because the Backup System does not look up volumes in the VLDB. The
specified site can be different than the volume's current one; in that
case, the Backup System removes the current version of the volume and
updates the volume's location information in the VLDB.
=back
If all of the full and incremental dumps of all relevant volumes were not
written to a type of tape that a single Tape Coordinator can read, use the
B<-portoffset> argument to list multiple port offset numbers in the order
in which the tapes are needed (first list the port offset for the full
dump, second the port offset for the level 1 incremental dump, and so
on). This implies that the full dumps of all relevant volumes must have
been written to a type of tape that the first Tape Coordinator can read,
the level 1 incremental dumps to a type of tape the second Tape
Coordinator can read, and so on. If dumps are on multiple incompatible
tape types, use the B command to restore individual
volumes, or use this command after defining new volume sets that group
together volumes that were dumped to compatible tape types. For further
discussion, see the I.
By default, the Backup System overwrites the contents of an existing
volume with the restored data. To create a new volume to house the
restored version instead, use the B<-extension> argument. The Backup
System derives the new volume's name by adding the specified extension to
the read/write base name, and creates a new VLDB entry. The command does
not affect the existing volume in any way. However, if a volume with the
specified extension also already exists, the command overwrites it.
The B<-n> flag produces a list of the volumes to be restored if the B<-n>
flag were not included, without actually restoring any volumes. See
L