windows-install-notes-20040624
[openafs.git] / doc / html / AdminReference / auarf085.htm
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 4//EN">
2 <HTML><HEAD>
3 <TITLE>Administration Reference</TITLE>
4 <!-- Begin Header Records  ========================================== -->
5 <!-- /tmp/idwt3672/auarf000.scr converted by idb2h R4.2 (359) ID      -->
6 <!-- Workbench Version (AIX) on 3 Oct 2000 at 16:18:30                -->
7 <META HTTP-EQUIV="updated" CONTENT="Tue, 03 Oct 2000 16:18:29">
8 <META HTTP-EQUIV="review" CONTENT="Wed, 03 Oct 2001 16:18:29">
9 <META HTTP-EQUIV="expires" CONTENT="Thu, 03 Oct 2002 16:18:29">
10 </HEAD><BODY>
11 <!-- (C) IBM Corporation 2000. All Rights Reserved    --> 
12 <BODY bgcolor="ffffff"> 
13 <!-- End Header Records  ============================================ -->
14 <A NAME="Top_Of_Page"></A>
15 <H1>Administration Reference</H1>
16 <HR><P ALIGN="center"> <A HREF="../index.htm"><IMG SRC="../books.gif" BORDER="0" ALT="[Return to Library]"></A> <A HREF="auarf002.htm#ToC"><IMG SRC="../toc.gif" BORDER="0" ALT="[Contents]"></A> <A HREF="auarf084.htm"><IMG SRC="../prev.gif" BORDER="0" ALT="[Previous Topic]"></A> <A HREF="#Bot_Of_Page"><IMG SRC="../bot.gif" BORDER="0" ALT="[Bottom of Topic]"></A> <A HREF="auarf086.htm"><IMG SRC="../next.gif" BORDER="0" ALT="[Next Topic]"></A> <A HREF="auarf284.htm#HDRINDEX"><IMG SRC="../index.gif" BORDER="0" ALT="[Index]"></A> <P> 
17 <P>
18 <H2><A NAME="HDRBK_RESTOREDB" HREF="auarf002.htm#ToC_99">backup restoredb</A></H2>
19 <A NAME="IDX4394"></A>
20 <A NAME="IDX4395"></A>
21 <A NAME="IDX4396"></A>
22 <P><STRONG>Purpose</STRONG>
23 <P>Restores a saved copy of the Backup Database
24 <P><STRONG>Synopsis</STRONG>
25 <PRE><B>backup restoredb</B> [<B>-portoffset</B> &lt;<VAR>TC&nbsp;port&nbsp;offset</VAR>>]
26                  [<B>-localauth</B>]  [<B>-cell</B> &lt;<VAR>cell&nbsp;name</VAR>>]  [<B>-help</B>]
27   
28 <B>backup res</B> [<B>-p</B> &lt;<VAR>TC&nbsp;port&nbsp;offset</VAR>>]  [<B>-l</B>]  [<B>-c</B> &lt;<VAR>cell&nbsp;name</VAR>>]  [<B>-h</B>]
29 </PRE>
30 <P><STRONG>Description</STRONG>
31 <P>The <B>backup restoredb</B> command restores to the Backup Server
32 machine's local disk a version of the Backup Database previously written
33 to tape by using the <B>backup savedb</B> command.
34 <P>(If the <B>FILE YES</B> instruction appears in the
35 <B>/usr/afs/backup/CFG_</B><VAR>device_name</VAR> file associated with the
36 specified port offset, then the <B>backup restoredb</B> command restores
37 data from the backup data file listed for that port offset in the Tape
38 Coordinator's <B>/usr/afs/backup/tapeconfig</B> file, instead of from
39 tape. For the sake of clarity, the following text refers to tapes only,
40 but the Backup System handles backup data files in much the same way.)
41 <P>The most common reason to run this command is to replace a corrupted or
42 otherwise damaged Backup Database; use the <B>backup dbverify</B>
43 command to determine the database's status. The command can also
44 be used to restore records that were removed from the database when the
45 <B>-archive</B> argument was included on a previous <B>backup
46 savedb</B> command.
47 <P>The command completely overwrites the existing Backup Database records for
48 volume sets, Tape Coordinators, and the dump hierarchy with the corresponding
49 information from the saved version. It does not overwrite existing dump
50 records, but instead interleaves the records from the copy being
51 restored. If both the existing database (on the Backup Server
52 machine's disk) and the copy being restored include a record about the
53 same dump, the Backup System retains the one in the existing database.
54 <P>The Tape Coordinator's default response to this command is to access
55 the first tape it needs by invoking the <B>MOUNT</B> instruction in the
56 local <B>/usr/afs/backup/CFG_</B><VAR>device_name</VAR> file, or by
57 prompting the backup operator to insert the tape if there is no
58 <B>MOUNT</B> instruction. However, if the <B>AUTOQUERY NO</B>
59 instruction appears in the <B>CFG_</B><VAR>device_name</VAR> file, or if the
60 issuer of the <B>butc</B> command included the <B>-noautoquery</B>
61 flag, the Tape Coordinator instead expects the tape to be in the device
62 already. If it is not, or is the wrong tape, the Tape Coordinator
63 invokes the <B>MOUNT</B> instruction or prompts the operator. It
64 also invokes the <B>MOUNT</B> instruction or prompts for any additional
65 tapes needed to complete the restore operation; the backup operator must
66 arrange to provide them.
67 <P><STRONG>Cautions</STRONG>
68 <P>If the database is corrupted, do not attempt to restore a saved database on
69 top of it. Instead, use the instructions for repairing a corrupted
70 database in the <I>IBM AFS Administration Guide</I> chapter about
71 performing backup operations.
72 <P><STRONG>Options</STRONG>
73 <DL>
74 <P><DT><B>-portoffset
75 </B><DD>Specifies the port offset number of the Tape Coordinator handling the
76 tapes for this operation.
77 <P><DT><B>-localauth
78 </B><DD>Constructs a server ticket using a key from the local
79 <B>/usr/afs/etc/KeyFile</B> file. The <B>backup</B> command
80 interpreter presents it to the Backup Server, Volume Server and VL Server
81 during mutual authentication. Do not combine this flag with the
82 <B>-cell</B> argument. For more details, see the introductory
83 <B>backup</B> reference page.
84 <P><DT><B>-cell
85 </B><DD>Names the cell in which to run the command. Do not combine this
86 argument with the <B>-localauth</B> flag. For more details, see the
87 introductory <B>backup</B> reference page.
88 <P><DT><B>-help
89 </B><DD>Prints the online help for this command. All other valid options
90 are ignored.
91 </DL>
92 <P><STRONG>Examples</STRONG>
93 <P>The following example shows the Backup Database being restored from the
94 Tape Coordinator with port offset 0:
95 <PRE>   % <B>backup restoredb</B>
96    
97 </PRE>
98 <P><STRONG>Privilege Required</STRONG>
99 <P>The issuer must be listed in the <B>/usr/afs/etc/UserList</B> file on
100 every machine where the Backup Server is running, or must be logged onto a
101 server machine as the local superuser <B>root</B> if the
102 <B>-localauth</B> flag is included.
103 <P><STRONG>Related Information</STRONG>
104 <P><A HREF="auarf060.htm#HDRBK_INTRO">backup</A>
105 <P><A HREF="auarf066.htm#HDRBK_DBVERIFY">backup dbverify</A>
106 <P><A HREF="auarf086.htm#HDRBK_SAVEDB">backup savedb</A>
107 <P><A HREF="auarf126.htm#HDRBUTC">butc</A>
108 <P><I>IBM AFS Administration Guide</I>
109 <P>
110 <HR><P ALIGN="center"> <A HREF="../index.htm"><IMG SRC="../books.gif" BORDER="0" ALT="[Return to Library]"></A> <A HREF="auarf002.htm#ToC"><IMG SRC="../toc.gif" BORDER="0" ALT="[Contents]"></A> <A HREF="auarf084.htm"><IMG SRC="../prev.gif" BORDER="0" ALT="[Previous Topic]"></A> <A HREF="#Top_Of_Page"><IMG SRC="../top.gif" BORDER="0" ALT="[Top of Topic]"></A> <A HREF="auarf086.htm"><IMG SRC="../next.gif" BORDER="0" ALT="[Next Topic]"></A> <A HREF="auarf284.htm#HDRINDEX"><IMG SRC="../index.gif" BORDER="0" ALT="[Index]"></A> <P> 
111 <!-- Begin Footer Records  ========================================== -->
112 <P><HR><B> 
113 <br>&#169; <A HREF="http://www.ibm.com/">IBM Corporation 2000.</A>  All Rights Reserved 
114 </B> 
115 <!-- End Footer Records  ============================================ -->
116 <A NAME="Bot_Of_Page"></A>
117 </BODY></HTML>