Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / doc / man-pages / pod8 / backup_restoredb.pod
CommitLineData
805e021f
CE
1=head1 NAME
2
3backup_restoredb - Restores a saved copy of the Backup Database
4
5=head1 SYNOPSIS
6
7=for html
8<div class="synopsis">
9
10B<backup restoredb> S<<< [B<-portoffset> <I<TC port offset>>] >>>
11 [B<-localauth>] S<<< [B<-cell> <I<cell name>>] >>> [B<-help>]
12
13B<backup res> S<<< [B<-p> <I<TC port offset>>] >>>
14 [B<-l>] S<<< [B<-c> <I<cell name>>] >>> [B<-h>]
15
16=for html
17</div>
18
19=head1 DESCRIPTION
20
21The B<backup restoredb> command restores to the Backup Server machine's
22local disk a version of the Backup Database previously written to tape by
23using the B<backup savedb> command.
24
25(If the C<FILE YES> instruction appears in the
26F</usr/afs/backup/CFG_I<device_name>> file associated with the specified
27port offset, then the B<backup restoredb> command restores data from the
28backup data file listed for that port offset in the Tape Coordinator's
29F</usr/afs/backup/tapeconfig> file, instead of from tape. For the sake of
30clarity, the following text refers to tapes only, but the Backup System
31handles backup data files in much the same way.)
32
33The most common reason to run this command is to replace a corrupted or
34otherwise damaged Backup Database; use the B<backup dbverify> command to
35determine the database's status. The command can also be used to restore
36records that were removed from the database when the B<-archive> argument
37was included on a previous B<backup savedb> command.
38
39The command completely overwrites the existing Backup Database records for
40volume sets, Tape Coordinators, and the dump hierarchy with the
41corresponding information from the saved version. It does not overwrite
42existing dump records, but instead interleaves the records from the copy
43being restored. If both the existing database (on the Backup Server
44machine's disk) and the copy being restored include a record about the
45same dump, the Backup System retains the one in the existing database.
46
47The Tape Coordinator's default response to this command is to access the
48first tape it needs by invoking the C<MOUNT> instruction in the local
49F</usr/afs/backup/CFG_I<device_name>> file, or by prompting the backup
50operator to insert the tape if there is no C<MOUNT> instruction. However,
51if the C<AUTOQUERY NO> instruction appears in the F<CFG_I<device_name>>
52file, or if the issuer of the B<butc> command included the B<-noautoquery>
53flag, the Tape Coordinator instead expects the tape to be in the device
54already. If it is not, or is the wrong tape, the Tape Coordinator invokes
55the C<MOUNT> instruction or prompts the operator. It also invokes the
56C<MOUNT> instruction or prompts for any additional tapes needed to
57complete the restore operation; the backup operator must arrange to
58provide them.
59
60=head1 CAUTIONS
61
62If the database is corrupted, do not attempt to restore a saved database
63on top of it. Instead, use the instructions for repairing a corrupted
64database in the I<OpenAFS Administration Guide> chapter about performing
65backup operations.
66
67=head1 OPTIONS
68
69=over 4
70
71=item B<-portoffset> <I<TC port offset>>
72
73Specifies the port offset number of the Tape Coordinator handling the
74tapes for this operation.
75
76=item B<-localauth>
77
78Constructs a server ticket using a key from the local
79F</usr/afs/etc/KeyFile> file. The B<backup> command interpreter presents
80it to the Backup Server, Volume Server and VL Server during mutual
81authentication. Do not combine this flag with the B<-cell> argument. For
82more details, see L<backup(8)>.
83
84=item B<-cell> <I<cell name>>
85
86Names the cell in which to run the command. Do not combine this argument
87with the B<-localauth> flag. For more details, see L<backup(8)>.
88
89=item B<-help>
90
91Prints the online help for this command. All other valid options are
92ignored.
93
94=back
95
96=head1 EXAMPLES
97
98The following example shows the Backup Database being restored from the
99Tape Coordinator with port offset 0:
100
101 % backup restoredb
102
103=head1 PRIVILEGE REQUIRED
104
105The issuer must be listed in the F</usr/afs/etc/UserList> file on every
106machine where the Backup Server is running, or must be logged onto a
107server machine as the local superuser C<root> if the B<-localauth> flag is
108included.
109
110=head1 SEE ALSO
111
112L<butc(5)>,
113L<backup(8)>,
114L<backup_dbverify(8)>,
115L<backup_savedb(8)>,
116L<butc(8)>
117
118The I<OpenAFS Administration Guide> at
119L<http://docs.openafs.org/AdminGuide/>.
120
121=head1 COPYRIGHT
122
123IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
124
125This documentation is covered by the IBM Public License Version 1.0. It was
126converted from HTML to POD by software written by Chas Williams and Russ
127Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.