3 backup restoredb - Restores a saved copy of the Backup Database
7 B<backup restoredb> [-portoffset <I<TC port offset>>]
8 [B<-localauth>] [B<-cell> <I<cell name>>] [B<-help>]
10 B<backup res> [B<-p> <I<TC port offset>>] [B<-l>] [B<-c> <I<cell name>>] [-h]
14 The backup restoredb command restores to the Backup Server
15 machine's local disk a version of the Backup Database previously written
16 to tape by using the B<backup savedb> command.
18 (If the FILE YES instruction appears in the
19 B</usr/afs/backup/CFG_>I<device_name> file associated with the
20 specified port offset, then the B<backup restoredb> command restores
21 data from the backup data file listed for that port offset in the Tape
22 Coordinator's B</usr/afs/backup/tapeconfig> file, instead of from
23 tape. For the sake of clarity, the following text refers to tapes only,
24 but the Backup System handles backup data files in much the same way.)
26 The most common reason to run this command is to replace a corrupted or
27 otherwise damaged Backup Database; use the B<backup dbverify>
28 command to determine the database's status. The command can also
29 be used to restore records that were removed from the database when the
30 B<-archive> argument was included on a previous B<backup
33 The command completely overwrites the existing Backup Database records for
34 volume sets, Tape Coordinators, and the dump hierarchy with the corresponding
35 information from the saved version. It does not overwrite existing dump
36 records, but instead interleaves the records from the copy being
37 restored. If both the existing database (on the Backup Server
38 machine's disk) and the copy being restored include a record about the
39 same dump, the Backup System retains the one in the existing database.
41 The Tape Coordinator's default response to this command is to access
42 the first tape it needs by invoking the B<MOUNT> instruction in the
43 local B</usr/afs/backup/CFG_>I<device_name> file, or by
44 prompting the backup operator to insert the tape if there is no
45 B<MOUNT> instruction. However, if the B<AUTOQUERY NO>
46 instruction appears in the B<CFG_>I<device_name> file, or if the
47 issuer of the B<butc> command included the B<-noautoquery>
48 flag, the Tape Coordinator instead expects the tape to be in the device
49 already. If it is not, or is the wrong tape, the Tape Coordinator
50 invokes the B<MOUNT> instruction or prompts the operator. It
51 also invokes the B<MOUNT> instruction or prompts for any additional
52 tapes needed to complete the restore operation; the backup operator must
53 arrange to provide them.
57 If the database is corrupted, do not attempt to restore a saved database on
58 top of it. Instead, use the instructions for repairing a corrupted
59 database in the I<IBM AFS Administration Guide> chapter about
60 performing backup operations.
68 Specifies the port offset number of the Tape Coordinator handling the
69 tapes for this operation.
73 Constructs a server ticket using a key from the local
74 B</usr/afs/etc/KeyFile> file. The B<backup> command
75 interpreter presents it to the Backup Server, Volume Server and VL Server
76 during mutual authentication. Do not combine this flag with the
77 B<-cell> argument. For more details, see the introductory
78 B<backup> reference page.
82 Names the cell in which to run the command. Do not combine this
83 argument with the B<-localauth> flag. For more details, see the
84 introductory B<backup> reference page.
88 Prints the online help for this command. All other valid options
95 The following example shows the Backup Database being restored from the
96 Tape Coordinator with port offset 0:
100 =head1 PRIVILEGE REQUIRED
102 The issuer must be listed in the /usr/afs/etc/UserList file on
103 every machine where the Backup Server is running, or must be logged onto a
104 server machine as the local superuser B<root> if the
105 B<-localauth> flag is included.
110 L<backup_dbverify(1)>,
114 I<IBM AFS Administration Guide>
118 IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
120 This documentation is covered by the IBM Public License Version 1.0. It was
121 converted from HTML to POD by software written by Chas Williams and Russ
122 Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.