2005-12-08 12:14:33 +00:00
|
|
|
=head1 NAME
|
|
|
|
|
2007-11-11 22:54:56 +00:00
|
|
|
backup_volsetrestore - Restores all volumes in a volume set
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
|
2006-03-01 05:02:29 +00:00
|
|
|
=for html
|
|
|
|
<div class="synopsis">
|
|
|
|
|
|
|
|
B<backup volsetrestore> S<<< [B<-name> <I<volume set name>>] >>>
|
2009-10-08 22:01:39 +01:00
|
|
|
S<<< [B<-file> <I<file name>>] >>>
|
|
|
|
S<<< [B<-portoffset> <I<TC port offset>>+] >>>
|
2013-11-07 06:05:39 +00:00
|
|
|
S<<< [B<-extension> <I<new volume name extension>>] >>> [B<-dryrun> | B<-n>]
|
2006-03-01 05:02:29 +00:00
|
|
|
[B<-localauth>] S<<< [B<-cell> <I<cell name>>] >>> [B<-help>]
|
|
|
|
|
2009-10-08 22:01:39 +01:00
|
|
|
B<backup vols> S<<< [B<-na> <I<volume set name>>] >>>
|
|
|
|
S<<< [B<-f> <I<file name>>] >>>
|
|
|
|
S<<< [B<-p> <I<TC port offset>>+] >>>
|
|
|
|
S<<< [B<-e> <I<new volume name extension>>] >>>
|
2013-11-07 06:05:39 +00:00
|
|
|
[B<-dryrun> | B<-n>] [B<-l>] S<<< [B<-c> <I<cell name>>] >>> [B<-h>]
|
2006-03-01 05:02:29 +00:00
|
|
|
|
|
|
|
=for html
|
|
|
|
</div>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=head1 DESCRIPTION
|
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
The B<backup volsetrestore> 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<FILE YES> instruction appears in the
|
|
|
|
F</usr/afs/backup/CFG_I<device_name>> file associated with the specified
|
|
|
|
port offset, then the B<backup volsetrestore> command restores data from
|
|
|
|
the backup data file listed for that port offset in the Tape Coordinator's
|
|
|
|
F</usr/afs/backup/tapeconfig> 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.)
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
If restoring one or more volumes to a single site only, it is usually more
|
2005-12-13 19:21:13 +00:00
|
|
|
efficient to use the B<backup volrestore> command. If restoring all
|
|
|
|
volumes that resided on a single partition, it is usually more efficient
|
2005-12-08 12:14:33 +00:00
|
|
|
to use the B<backup diskrestore> command.
|
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
Indicate the volumes to restore by providing either the B<-name> argument
|
|
|
|
or the B<-file> argument:
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=over 4
|
|
|
|
|
|
|
|
=item *
|
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
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.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
It is not required that the volume set was previously used to back up
|
2005-12-13 19:21:13 +00:00
|
|
|
volumes (was used as the B<-volumeset> option to the B<backup dump>
|
|
|
|
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<temporary> volume set, created by including the
|
|
|
|
B<-temporary> flag to the B<backup addvolset> 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.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
The reason that a specially defined volume set is probably better is that
|
2005-12-13 19:21:13 +00:00
|
|
|
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.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=item *
|
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
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,
|
2005-12-08 12:14:33 +00:00
|
|
|
because the Backup System does not look up volumes in the VLDB. The
|
2005-12-13 19:21:13 +00:00
|
|
|
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
|
2005-12-08 12:14:33 +00:00
|
|
|
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
|
2005-12-13 19:21:13 +00:00
|
|
|
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
|
2005-12-08 12:14:33 +00:00
|
|
|
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
|
2005-12-13 19:21:13 +00:00
|
|
|
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<backup volrestore> 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
|
2010-05-26 18:20:57 +01:00
|
|
|
discussion, see the I<OpenAFS Administration Guide>.
|
2005-12-13 19:21:13 +00:00
|
|
|
|
|
|
|
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
|
2005-12-08 12:14:33 +00:00
|
|
|
System derives the new volume's name by adding the specified extension to
|
2005-12-13 19:21:13 +00:00
|
|
|
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.
|
|
|
|
|
2011-06-09 01:56:46 +01:00
|
|
|
The B<-dryrun> flag produces a list of the volumes to be restored if the
|
|
|
|
B<-dryrun> flag were not included, without actually restoring any volumes.
|
|
|
|
See L</OUTPUT> for a detailed description of the output, and suggestions
|
|
|
|
on how to combine it most effectively with the B<-file> and B<-name>
|
|
|
|
arguments.
|
2005-12-13 19:21:13 +00:00
|
|
|
|
|
|
|
The execution time for a B<backup volsetrestore> command depends on the
|
|
|
|
number of volumes to be restored and the amount of data in them, but it
|
|
|
|
can take hours to restore a large number of volumes. One way to reduce the
|
|
|
|
time is to run multiple instances of the command simultaneously, either
|
2005-12-08 12:14:33 +00:00
|
|
|
using the B<-name> argument to specify disjoint volume sets for each
|
|
|
|
command, or the B<-file> argument to name files that list different
|
|
|
|
volumes. This is possible if there are multiple available Tape
|
|
|
|
Coordinators that can read the required tapes. Depending on how the
|
2005-12-13 19:21:13 +00:00
|
|
|
volumes to be restored were dumped to tape, specifying disjoint volume
|
|
|
|
sets can also reduce the number of tape changes required.
|
|
|
|
|
|
|
|
The Tape Coordinator's default response to this command is to access the
|
|
|
|
first tape it needs by invoking the C<MOUNT> instruction in the local
|
|
|
|
F</usr/afs/backup/CFG_I<device_name>> file, or by prompting the backup
|
|
|
|
operator to insert the tape if there is no C<MOUNT> instruction. However,
|
|
|
|
if the C<AUTOQUERY NO> instruction appears in the F<CFG_I<device_name>>
|
|
|
|
file, or if the issuer of the B<butc> command included the B<-noautoquery>
|
2005-12-08 12:14:33 +00:00
|
|
|
flag, the Tape Coordinator instead expects the tape to be in the device
|
2005-12-13 19:21:13 +00:00
|
|
|
already. If it is not, or is the wrong tape, the Tape Coordinator invokes
|
|
|
|
the C<MOUNT> instruction or prompts the operator. It also invokes the
|
|
|
|
C<MOUNT> instruction or prompts for any additional tapes needed to
|
|
|
|
complete the restore operation; the backup operator must arrange to
|
|
|
|
provide them.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=head1 OPTIONS
|
|
|
|
|
|
|
|
=over 4
|
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
=item B<-name> <I<volume set name>>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
Names a volume set to restore. The Backup System restores all of the
|
|
|
|
volumes listed in the VLDB that match the volume set's volume
|
|
|
|
entries. Provide this argument or the B<-file> argument, but not both.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
=item B<-file> <I<file name>>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
Specifies the full pathname of a file that lists one or more volumes and
|
|
|
|
the site (file server machine and partition) to which to restore each.
|
2005-12-13 19:21:13 +00:00
|
|
|
Use either this argument or the B<-name> argument, but not both.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
Each volume's entry must appear on its own (unbroken) line in the file,
|
|
|
|
and have the following format:
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
<machine> <partition> <volume> [<comments> ...]
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-21 00:41:17 +00:00
|
|
|
where
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=over 4
|
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
=item <machine>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
Names the file server machine to which to restore the volume.
|
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
=item <partition>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
Names the partition to which to restore the volume.
|
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
=item <volume>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
Names the volume to restore. It is generally best to specify the base
|
|
|
|
(read/write) name of each volume. In this case, the Backup System searches
|
|
|
|
the Backup Database for the newest dump set that includes a dump of either
|
|
|
|
the read/write or the backup version of the volume. It restores the dumps
|
|
|
|
of that version of the volume, starting with the most recent full
|
|
|
|
dump. If, in contrast, the name explicitly includes the C<.backup> or
|
|
|
|
C<.readonly> extension, the Backup System restores dumps of that volume
|
|
|
|
version only.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
=item <comments> ...
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
Is any other text. The Backup System ignores any text on each line that
|
|
|
|
appears after the volume name, so this field can be used for notes helpful
|
|
|
|
to the backup operator or other administrator.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=back
|
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
Do not use wildcards (for example, C<.*>) in the <machine>, <partition>,
|
|
|
|
or <volume> fields. It is acceptable for multiple lines in the file to
|
|
|
|
name the same volume, but the Backup System processes only the first of
|
|
|
|
them.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
=item B<-extension> <I<new volume name extension>>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
Creates a new volume for each volume specified by the B<-name> or B<-file>
|
|
|
|
argument, to house the restored data from that volume. The Backup System
|
|
|
|
derives the new volume's name by appending the specified string to the
|
|
|
|
read/write base name, and creates a new VLDB volume entry. It preserves
|
|
|
|
the contents of each existing volume. Any string other than C<.readonly>
|
|
|
|
or C<.backup> is acceptable, but the combination of the base name and
|
|
|
|
extension cannot exceed 22 characters in length. To use a period to
|
|
|
|
separate the extension from the name, specify it as the first character of
|
|
|
|
the string (as in C<.rst>, for example).
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
=item B<-portoffset> <I<TC port offset>>+
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
Specifies one or more port offset numbers (up to a maximum of 128), each
|
2005-12-13 19:21:13 +00:00
|
|
|
corresponding to a Tape Coordinator to use in the operation. If there is
|
|
|
|
more than one value, the Backup System uses the first one when restoring
|
2005-12-08 12:14:33 +00:00
|
|
|
the full dump of each volume, the second one when restoring the level 1
|
2005-12-13 19:21:13 +00:00
|
|
|
incremental dump of each volume, and so on. It uses the final value in the
|
|
|
|
list when restoring dumps at the corresponding depth in the dump hierarchy
|
2005-12-08 12:14:33 +00:00
|
|
|
and all dumps at lower levels.
|
|
|
|
|
|
|
|
Provide this argument unless the default value of 0 (zero) is appropriate
|
2005-12-13 19:21:13 +00:00
|
|
|
for all dumps. If C<0> is just one of the values in the list, provide it
|
|
|
|
explicitly in the appropriate order.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2013-11-07 06:05:39 +00:00
|
|
|
=item B<-dryrun> | B<-n>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
Displays a list of the volumes to be restored if the flag were not
|
2011-06-10 02:14:05 +01:00
|
|
|
included, without actually restoring them. L</OUTPUT> details the format of
|
2005-12-13 19:21:13 +00:00
|
|
|
the output. When combined with the B<-name> argument, its output is easily
|
|
|
|
edited for use as input to the B<-file> argument on a subsequent B<backup
|
2005-12-08 12:14:33 +00:00
|
|
|
volsetrestore> command.
|
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
=item B<-localauth>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
Constructs a server ticket using a key from the local
|
2005-12-13 19:21:13 +00:00
|
|
|
F</usr/afs/etc/KeyFile> file. The B<backup> command interpreter presents
|
|
|
|
it to the Backup Server, Volume Server and VL Server during mutual
|
|
|
|
authentication. Do not combine this flag with the B<-cell> argument. For
|
|
|
|
more details, see L<backup(8)>.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
=item B<-cell> <I<cell name>>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
Names the cell in which to run the command. Do not combine this argument
|
|
|
|
with the B<-localauth> flag. For more details, see L<backup(8)>.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
=item B<-help>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
Prints the online help for this command. All other valid options are
|
|
|
|
ignored.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=back
|
|
|
|
|
|
|
|
=head1 OUTPUT
|
|
|
|
|
2011-06-09 01:56:46 +01:00
|
|
|
If the B<-dryrun> flag is not provided, the command displays a unique
|
|
|
|
task ID number for the operation, in two places:
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=over 4
|
|
|
|
|
|
|
|
=item *
|
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
In the shell window, directly following the command line.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=item *
|
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
In the Tape Coordinator window, if the butc process was started at debug
|
|
|
|
level 1.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=back
|
|
|
|
|
|
|
|
The task ID number is not the same as the job ID number displayed by the
|
2005-12-13 19:21:13 +00:00
|
|
|
B<backup jobs> command when the B<backup volsetrestore> command is issued
|
|
|
|
in interactive mode. The Backup System does not assign either type of ID
|
|
|
|
number until the restoration process actually begins.
|
|
|
|
|
2011-06-09 01:56:46 +01:00
|
|
|
When the B<-dryrun> flag is included, no task ID or job ID numbers are
|
|
|
|
reported because none are assigned. Instead, the output begins with a
|
|
|
|
count of the number of volumes to be restored, followed by a line for
|
|
|
|
each dump of a volume. For each volume, the line representing the most
|
|
|
|
recent full dump appears first, and lines for any subsequent incremental
|
|
|
|
dumps follow, ordered by dump level. The lines for a given volume do not
|
|
|
|
necessarily appear all together, however.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
The format of each line is as follows (the output is shown here on two
|
|
|
|
lines only for legibility reasons):
|
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
<machine> <partition> <volume_dumped> # as <volume_restored>; \
|
|
|
|
<tape_name> (<tape_ID>); pos <position_number>; <date>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
where
|
|
|
|
|
|
|
|
=over 4
|
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
=item <machine>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
Names the file server machine that currently houses the volume, as listed
|
|
|
|
in the VLDB.
|
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
=item <partition>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
Names the partition that currently houses the volume, as listed in the
|
|
|
|
VLDB.
|
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
=item <volume_dumped>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
Specifies the version (read/write or backup) of the volume that was
|
|
|
|
dumped, as listed in the Backup Database.
|
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
=item <volume_restored>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
Specifies the name under which to restore the volume. The Backup System
|
|
|
|
only restores data to read/write volumes. If the B<-extension> argument is
|
|
|
|
included, then the specified extension appears on the name in this field
|
|
|
|
(for example, C<user.pat.rst>).
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
=item <tape_name>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
Names the tape containing the dump of the volume, from the Backup
|
2005-12-13 19:21:13 +00:00
|
|
|
Database. If the tape has a permanent name, it appears here; otherwise, it
|
|
|
|
is the AFS tape name.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
=item <tape_ID>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
The tape ID of the tape containing the dump of the volume, from the Backup
|
|
|
|
Database.
|
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
=item <position_number>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
Specifies the dump's position on the tape (for example, C<31> indicates
|
|
|
|
that 30 volume dumps precede the current one on the tape). If the dump was
|
|
|
|
written to a backup data file, this number is the ordinal of the 16
|
|
|
|
KB-offset at which the volume's data begins.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
=item <date>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
The date and time when the volume was dumped.
|
|
|
|
|
|
|
|
=back
|
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
One way to generate a file for use as input to the B<-file> argument is to
|
2011-06-09 01:56:46 +01:00
|
|
|
combine the B<-name> and B<-dryrun> options, directing the output to a
|
2010-05-26 18:20:57 +01:00
|
|
|
file. The I<OpenAFS Administration Guide> section on using the Backup
|
2005-12-13 19:21:13 +00:00
|
|
|
System to restore data explains how to edit the file as necessary before
|
|
|
|
using it as input to the B<-file> argument.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
The output of this command includes only volumes for which the Backup
|
|
|
|
Database includes at least one dump record. The command interpreter
|
|
|
|
generates a message on the standard error stream about volumes that do not
|
2005-12-13 19:21:13 +00:00
|
|
|
have dump records but either are listed in the file named by the B<-file>
|
|
|
|
argument, or appear in the VLDB as a match to a volume entry in the volume
|
|
|
|
set named by the B<-name> argument.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=head1 EXAMPLES
|
|
|
|
|
|
|
|
The following command restores all volumes included in entries in the
|
2005-12-13 19:21:13 +00:00
|
|
|
volume set named C<data.restore>, which was created expressly to restore
|
|
|
|
data to a pair of file server machines on which all data was corrupted due
|
|
|
|
to a software error. All volumes are restored to the sites recorded in
|
|
|
|
their entries in the VLDB.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
% backup volsetrestore -name data.restore
|
|
|
|
Starting restore
|
|
|
|
backup: task ID of restore operation: 112
|
|
|
|
backup: Finished doing restore
|
|
|
|
|
|
|
|
The following command restores all volumes that have entries in the file
|
2005-12-13 19:21:13 +00:00
|
|
|
named F</tmp/restore>:
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
% backup volsetrestore -file /tmp/restore
|
|
|
|
Starting restore
|
|
|
|
backup: task ID of restore operation: 113
|
|
|
|
backup: Finished doing restore
|
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
The F</tmp/restore> file has the following contents:
|
2005-12-08 12:14:33 +00:00
|
|
|
|
doc: replace hostnames with IETF example hostnames
There were several different real and made-up hostnames and company names used
throughout our documentation examples.
The IETF has reserved "example.com" and other "example" TLDs for use in
examples (RFC 2606). Replace almost all references to ABC Corporation, DEF
Corporation, and State University, as well as "abc.com", "bigcell.com",
"def.com", "def.gov", "ghi.com", "ghi.gov", "jkl.com", "mit.edu",
"stanford.edu", "state.edu", "stateu.edu", "uncc.edu", and "xyz.com".
Standardize on "Example Corporation", "Example Network", "Example
Organization" (example.com, example.net, and example.org).
The Scout documentation in the Admin Guide contains PNG images that contain
the old cell names, so I left those references until the images can be
replaced.
Change-Id: I4e44815b2d2ffe204810b7fd850842248f67c367
Reviewed-on: http://gerrit.openafs.org/6697
Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
Tested-by: Jeffrey Altman <jaltman@secure-endpoints.com>
2012-02-11 16:43:30 +00:00
|
|
|
fs1.example.com b user.pat
|
|
|
|
fs1.example.com b user.terry
|
|
|
|
fs1.example.com b user.smith
|
|
|
|
fs2.example.com c user.jones
|
2005-12-08 12:14:33 +00:00
|
|
|
. . .
|
|
|
|
. . .
|
|
|
|
|
|
|
|
=head1 PRIVILEGE REQUIRED
|
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
The issuer must be listed in the F</usr/afs/etc/UserList> file on every
|
|
|
|
machine where the Backup Server or Volume Location (VL) Server is running,
|
|
|
|
and on every file server machine that houses an affected volume. If the
|
|
|
|
B<-localauth> flag is included, the issuer must instead be logged on to a
|
|
|
|
server machine as the local superuser C<root>.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=head1 SEE ALSO
|
|
|
|
|
2005-12-14 01:30:20 +00:00
|
|
|
L<butc(5)>,
|
2005-12-13 19:21:13 +00:00
|
|
|
L<backup(8)>,
|
|
|
|
L<backup_addvolentry(8)>,
|
|
|
|
L<backup_addvolset(8)>,
|
|
|
|
L<backup_diskrestore(8)>,
|
|
|
|
L<backup_dump(8)>,
|
|
|
|
L<backup_volrestore(8)>,
|
|
|
|
L<butc(8)>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=head1 COPYRIGHT
|
|
|
|
|
|
|
|
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
|
|
|
|
|
|
|
|
This documentation is covered by the IBM Public License Version 1.0. It was
|
|
|
|
converted from HTML to POD by software written by Chas Williams and Russ
|
|
|
|
Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.
|