quickstart-solaris-pam-20070423
[openafs.git] / doc / xml / AdminGuide / c15383.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <HTML
3 ><HEAD
4 ><TITLE
5 >Backing Up and Restoring AFS Data</TITLE
6 ><META
7 NAME="GENERATOR"
8 CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
9 REL="HOME"
10 TITLE="AFS Administration Guide"
11 HREF="book1.html"><LINK
12 REL="UP"
13 TITLE="Managing File Server Machines"
14 HREF="p3023.html"><LINK
15 REL="PREVIOUS"
16 TITLE="Configuring the AFS Backup System"
17 HREF="c12776.html"><LINK
18 REL="NEXT"
19 TITLE="Monitoring and Auditing AFS Performance"
20 HREF="c18360.html"></HEAD
21 ><BODY
22 CLASS="chapter"
23 BGCOLOR="#FFFFFF"
24 TEXT="#000000"
25 LINK="#0000FF"
26 VLINK="#840084"
27 ALINK="#0000FF"
28 ><DIV
29 CLASS="NAVHEADER"
30 ><TABLE
31 SUMMARY="Header navigation table"
32 WIDTH="100%"
33 BORDER="0"
34 CELLPADDING="0"
35 CELLSPACING="0"
36 ><TR
37 ><TH
38 COLSPAN="3"
39 ALIGN="center"
40 >AFS Administration Guide: Version 3.6</TH
41 ></TR
42 ><TR
43 ><TD
44 WIDTH="10%"
45 ALIGN="left"
46 VALIGN="bottom"
47 ><A
48 HREF="c12776.html"
49 ACCESSKEY="P"
50 >Prev</A
51 ></TD
52 ><TD
53 WIDTH="80%"
54 ALIGN="center"
55 VALIGN="bottom"
56 ></TD
57 ><TD
58 WIDTH="10%"
59 ALIGN="right"
60 VALIGN="bottom"
61 ><A
62 HREF="c18360.html"
63 ACCESSKEY="N"
64 >Next</A
65 ></TD
66 ></TR
67 ></TABLE
68 ><HR
69 ALIGN="LEFT"
70 WIDTH="100%"></DIV
71 ><DIV
72 CLASS="chapter"
73 ><H1
74 ><A
75 NAME="HDRWQ283"
76 ></A
77 >Chapter 7. Backing Up and Restoring AFS Data</H1
78 ><P
79 >The instructions in this chapter explain how to back up and restore AFS data and to administer the Backup Database. They
80   assume that you have already configured all of the Backup System components by following the instructions in <A
81 HREF="c12776.html"
82 >Configuring the AFS Backup System</A
83 >.</P
84 ><DIV
85 CLASS="sect1"
86 ><H1
87 CLASS="sect1"
88 ><A
89 NAME="HDRWQ284"
90 >Summary of Instructions</A
91 ></H1
92 ><P
93 >This chapter explains how to perform the following tasks by using the indicated commands:</P
94 ><DIV
95 CLASS="informaltable"
96 ><A
97 NAME="AEN15390"
98 ></A
99 ><TABLE
100 BORDER="0"
101 FRAME="void"
102 CLASS="CALSTABLE"
103 ><COL
104 WIDTH="70*"><COL
105 WIDTH="30*"><TBODY
106 ><TR
107 ><TD
108 >Enter interactive mode</TD
109 ><TD
110 ><SPAN
111 CLASS="bold"
112 ><B
113 CLASS="emphasis"
114 >backup (interactive)</B
115 ></SPAN
116 ></TD
117 ></TR
118 ><TR
119 ><TD
120 >Leave interactive mode</TD
121 ><TD
122 ><SPAN
123 CLASS="bold"
124 ><B
125 CLASS="emphasis"
126 >(backup) quit</B
127 ></SPAN
128 ></TD
129 ></TR
130 ><TR
131 ><TD
132 >List operations in interactive mode</TD
133 ><TD
134 ><SPAN
135 CLASS="bold"
136 ><B
137 CLASS="emphasis"
138 >(backup) jobs</B
139 ></SPAN
140 ></TD
141 ></TR
142 ><TR
143 ><TD
144 >Cancel operation in interactive mode</TD
145 ><TD
146 ><SPAN
147 CLASS="bold"
148 ><B
149 CLASS="emphasis"
150 >(backup) kill</B
151 ></SPAN
152 ></TD
153 ></TR
154 ><TR
155 ><TD
156 >Start Tape Coordinator</TD
157 ><TD
158 ><SPAN
159 CLASS="bold"
160 ><B
161 CLASS="emphasis"
162 >butc</B
163 ></SPAN
164 ></TD
165 ></TR
166 ><TR
167 ><TD
168 >Stop Tape Coordinator</TD
169 ><TD
170 >&#60;<SPAN
171 CLASS="bold"
172 ><B
173 CLASS="emphasis"
174 >Ctrl-c</B
175 ></SPAN
176 >&#62;</TD
177 ></TR
178 ><TR
179 ><TD
180 >Check status of Tape Coordinator</TD
181 ><TD
182 ><SPAN
183 CLASS="bold"
184 ><B
185 CLASS="emphasis"
186 >backup status</B
187 ></SPAN
188 ></TD
189 ></TR
190 ><TR
191 ><TD
192 >Back up data</TD
193 ><TD
194 ><SPAN
195 CLASS="bold"
196 ><B
197 CLASS="emphasis"
198 >backup dump</B
199 ></SPAN
200 ></TD
201 ></TR
202 ><TR
203 ><TD
204 >Display dump records</TD
205 ><TD
206 ><SPAN
207 CLASS="bold"
208 ><B
209 CLASS="emphasis"
210 >backup dumpinfo</B
211 ></SPAN
212 ></TD
213 ></TR
214 ><TR
215 ><TD
216 >Display volume's dump history</TD
217 ><TD
218 ><SPAN
219 CLASS="bold"
220 ><B
221 CLASS="emphasis"
222 >backup volinfo</B
223 ></SPAN
224 ></TD
225 ></TR
226 ><TR
227 ><TD
228 >Scan contents of tape</TD
229 ><TD
230 ><SPAN
231 CLASS="bold"
232 ><B
233 CLASS="emphasis"
234 >backup scantape</B
235 ></SPAN
236 ></TD
237 ></TR
238 ><TR
239 ><TD
240 >Restore volume</TD
241 ><TD
242 ><SPAN
243 CLASS="bold"
244 ><B
245 CLASS="emphasis"
246 >backup volrestore</B
247 ></SPAN
248 ></TD
249 ></TR
250 ><TR
251 ><TD
252 >Restore partition</TD
253 ><TD
254 ><SPAN
255 CLASS="bold"
256 ><B
257 CLASS="emphasis"
258 >backup diskrestore</B
259 ></SPAN
260 ></TD
261 ></TR
262 ><TR
263 ><TD
264 >Restore group of volumes</TD
265 ><TD
266 ><SPAN
267 CLASS="bold"
268 ><B
269 CLASS="emphasis"
270 >backup volsetrestore</B
271 ></SPAN
272 ></TD
273 ></TR
274 ><TR
275 ><TD
276 >Verify integrity of Backup Database</TD
277 ><TD
278 ><SPAN
279 CLASS="bold"
280 ><B
281 CLASS="emphasis"
282 >backup dbverify</B
283 ></SPAN
284 ></TD
285 ></TR
286 ><TR
287 ><TD
288 >Repair corruption in Backup Database</TD
289 ><TD
290 ><SPAN
291 CLASS="bold"
292 ><B
293 CLASS="emphasis"
294 >backup savedb</B
295 ></SPAN
296 > and <SPAN
297 CLASS="bold"
298 ><B
299 CLASS="emphasis"
300 >backup restoredb</B
301 ></SPAN
302 ></TD
303 ></TR
304 ><TR
305 ><TD
306 >Delete dump set from Backup Database</TD
307 ><TD
308 ><SPAN
309 CLASS="bold"
310 ><B
311 CLASS="emphasis"
312 >backup deletedump</B
313 ></SPAN
314 ></TD
315 ></TR
316 ></TBODY
317 ></TABLE
318 ></DIV
319 ></DIV
320 ><DIV
321 CLASS="sect1"
322 ><H1
323 CLASS="sect1"
324 ><A
325 NAME="HDRWQ286"
326 >Using the Backup System's Interfaces</A
327 ></H1
328 ><P
329 >When performing backup operations, you interact with three Backup System components: <UL
330 ><LI
331 ><P
332 >You initiate backup operations by issuing commands from the <SPAN
333 CLASS="bold"
334 ><B
335 CLASS="emphasis"
336 >backup</B
337 ></SPAN
338 > suite. You can
339           issue the commands in a command shell (or invoke them in a shell script) on any AFS client or server machine from which
340           you can access the <SPAN
341 CLASS="bold"
342 ><B
343 CLASS="emphasis"
344 >backup</B
345 ></SPAN
346 > binary. In the conventional configuration, the binary resides
347           in the <SPAN
348 CLASS="bold"
349 ><B
350 CLASS="emphasis"
351 >/usr/afs/bin</B
352 ></SPAN
353 > directory on a server machine and the <SPAN
354 CLASS="bold"
355 ><B
356 CLASS="emphasis"
357 >/usr/afsws/etc</B
358 ></SPAN
359 > directory on a client machine.</P
360 ><P
361 >The suite provides an <SPAN
362 CLASS="emphasis"
363 ><I
364 CLASS="emphasis"
365 >interactive mode</I
366 ></SPAN
367 >, in which you can issue multiple commands over a
368           persistent connection to the Backup Server and the Volume Location (VL) Server. Interactive mode has several convenient
369           features. For a discussion and instructions, see <A
370 HREF="c15383.html#HDRWQ288"
371 >Using Interactive and Regular Command
372           Mode</A
373 >.</P
374 ><P
375 >Note that some operating systems include a <SPAN
376 CLASS="bold"
377 ><B
378 CLASS="emphasis"
379 >backup</B
380 ></SPAN
381 > command of their own. You must
382           configure machines that run such an operating system to ensure that you are accessing the desired <SPAN
383 CLASS="bold"
384 ><B
385 CLASS="emphasis"
386 >backup</B
387 ></SPAN
388 > binary.</P
389 ></LI
390 ><LI
391 ><P
392 >Before you perform a backup operation that involves reading or writing to a tape device or backup data file, you
393           must open a dedicated connection to the appropriate Tape Coordinator machine and start the Tape Coordinator (<SPAN
394 CLASS="bold"
395 ><B
396 CLASS="emphasis"
397 >butc</B
398 ></SPAN
399 >) process that handles the device or file. The <SPAN
400 CLASS="bold"
401 ><B
402 CLASS="emphasis"
403 >butc</B
404 ></SPAN
405 > process
406           must continue to run over the dedicated connection as long as it is executing an operation or is to be available to
407           execute one. For further discussion and instructions, see <A
408 HREF="c15383.html#HDRWQ291"
409 >Starting and Stopping the Tape
410           Coordinator Process</A
411 >.</P
412 ></LI
413 ><LI
414 ><P
415 >The Backup Server (<SPAN
416 CLASS="bold"
417 ><B
418 CLASS="emphasis"
419 >buserver</B
420 ></SPAN
421 >) process must be running on database server machines,
422           because most backup operations require accessing or changing information in the Backup Database. The <SPAN
423 CLASS="emphasis"
424 ><I
425 CLASS="emphasis"
426 >IBM AFS
427           Quick Beginnings</I
428 ></SPAN
429 > explains how to configure the Backup Server.</P
430 ></LI
431 ></UL
432 ></P
433 ><P
434 >For consistent Backup System performance, the AFS build level of all three binaries (<SPAN
435 CLASS="bold"
436 ><B
437 CLASS="emphasis"
438 >backup</B
439 ></SPAN
440 >, <SPAN
441 CLASS="bold"
442 ><B
443 CLASS="emphasis"
444 >butc</B
445 ></SPAN
446 >, and <SPAN
447 CLASS="bold"
448 ><B
449 CLASS="emphasis"
450 >buserver</B
451 ></SPAN
452 >) must match.
453     For instructions on displaying the build level, see <A
454 HREF="c3025.html#HDRWQ117"
455 >Displaying A Binary File's Build
456     Level</A
457 >.</P
458 ><DIV
459 CLASS="sect2"
460 ><H2
461 CLASS="sect2"
462 ><A
463 NAME="HDRWQ287"
464 >Performing Backup Operations as the Local Superuser Root or in a Foreign Cell</A
465 ></H2
466 ><P
467 >By default, the volumes and Backup Database involved in a backup operation must reside on server machines that belong to
468       the cell named in the <SPAN
469 CLASS="bold"
470 ><B
471 CLASS="emphasis"
472 >/usr/vice/etc/ThisCell</B
473 ></SPAN
474 > files on both the Tape Coordinator machine and
475       the machine where you issue the <SPAN
476 CLASS="bold"
477 ><B
478 CLASS="emphasis"
479 >backup</B
480 ></SPAN
481 > command. Also, to issue most <SPAN
482 CLASS="bold"
483 ><B
484 CLASS="emphasis"
485 >backup</B
486 ></SPAN
487 > commands you must have AFS tokens for an identity listed in the local cell's <SPAN
488 CLASS="bold"
489 ><B
490 CLASS="emphasis"
491 >/usr/afs/etc/UserList</B
492 ></SPAN
493 > file (which by convention is the same on every server machine in a cell). You
494       can, however, perform backup operations on volumes or the Backup Database from a foreign cell, or perform backup operations
495       while logged in as the local superuser <SPAN
496 CLASS="bold"
497 ><B
498 CLASS="emphasis"
499 >root</B
500 ></SPAN
501 > rather than as a privileged AFS identity.</P
502 ><P
503 >To perform backup operations on volumes that reside in a foreign cell using machines from the local cell, you must
504       designate the foreign cell as the cell of execution for both the Tape Coordinator and the <SPAN
505 CLASS="bold"
506 ><B
507 CLASS="emphasis"
508 >backup</B
509 ></SPAN
510 > command interpreter. Use one of the two following methods. For either method, you must also have
511       tokens as an administrator listed in the foreign cell's <SPAN
512 CLASS="bold"
513 ><B
514 CLASS="emphasis"
515 >/usr/afs/etc/UserList</B
516 ></SPAN
517 > file.
518       <UL
519 ><LI
520 ><P
521 >Before issuing <SPAN
522 CLASS="bold"
523 ><B
524 CLASS="emphasis"
525 >backup</B
526 ></SPAN
527 > commands and the <SPAN
528 CLASS="bold"
529 ><B
530 CLASS="emphasis"
531 >butc</B
532 ></SPAN
533 >
534             command, set the AFSCELL environment variable to the foreign cell name in both command shells.</P
535 ></LI
536 ><LI
537 ><P
538 >Include the <SPAN
539 CLASS="bold"
540 ><B
541 CLASS="emphasis"
542 >-cell</B
543 ></SPAN
544 > argument to the <SPAN
545 CLASS="bold"
546 ><B
547 CLASS="emphasis"
548 >butc</B
549 ></SPAN
550 > and all
551             <SPAN
552 CLASS="bold"
553 ><B
554 CLASS="emphasis"
555 >backup</B
556 ></SPAN
557 > commands. If you include the argument on the <SPAN
558 CLASS="bold"
559 ><B
560 CLASS="emphasis"
561 >backup
562             (interactive)</B
563 ></SPAN
564 > command, it applies to all commands issued during the interactive session.</P
565 ></LI
566 ></UL
567 ></P
568 ><P
569 >To perform backup operations without having administrative AFS tokens, you must log on as the local superuser <SPAN
570 CLASS="bold"
571 ><B
572 CLASS="emphasis"
573 >root</B
574 ></SPAN
575 > on both the Tape Coordinator machine and the machine where you issue <SPAN
576 CLASS="bold"
577 ><B
578 CLASS="emphasis"
579 >backup</B
580 ></SPAN
581 > commands. Both machines must be server machines, or at least have a <SPAN
582 CLASS="bold"
583 ><B
584 CLASS="emphasis"
585 >/usr/afs/etc/KeyFile</B
586 ></SPAN
587 > file that matches the file on other server machines. Then include the <SPAN
588 CLASS="bold"
589 ><B
590 CLASS="emphasis"
591 >-localauth</B
592 ></SPAN
593 > argument on both the <SPAN
594 CLASS="bold"
595 ><B
596 CLASS="emphasis"
597 >butc</B
598 ></SPAN
599 > command and all <SPAN
600 CLASS="bold"
601 ><B
602 CLASS="emphasis"
603 >backup</B
604 ></SPAN
605 > commands (or the <SPAN
606 CLASS="bold"
607 ><B
608 CLASS="emphasis"
609 >backup (interactive)</B
610 ></SPAN
611 > command). The Tape
612       Coordinator and <SPAN
613 CLASS="bold"
614 ><B
615 CLASS="emphasis"
616 >backup</B
617 ></SPAN
618 > command interpreter construct a server ticket using the server
619       encryption key with the highest key version number in the local <SPAN
620 CLASS="bold"
621 ><B
622 CLASS="emphasis"
623 >/usr/afs/etc/KeyFile</B
624 ></SPAN
625 > file,
626       and present it to the Backup Server, Volume Server, and VL Server that belong to the cell named in the local <SPAN
627 CLASS="bold"
628 ><B
629 CLASS="emphasis"
630 >/usr/afs/etc/ThisCell</B
631 ></SPAN
632 > file. The ticket never expires.</P
633 ><P
634 >You cannot combine the <SPAN
635 CLASS="bold"
636 ><B
637 CLASS="emphasis"
638 >-cell</B
639 ></SPAN
640 > and <SPAN
641 CLASS="bold"
642 ><B
643 CLASS="emphasis"
644 >-localauth</B
645 ></SPAN
646 > options on
647       the same command. Also, each one overrides the local cell setting defined by the AFSCELL environment variable or the <SPAN
648 CLASS="bold"
649 ><B
650 CLASS="emphasis"
651 >/usr/vice/etc/ThisCell</B
652 ></SPAN
653 > file.</P
654 ></DIV
655 ><DIV
656 CLASS="sect2"
657 ><H2
658 CLASS="sect2"
659 ><A
660 NAME="HDRWQ288"
661 >Using Interactive and Regular Command Mode</A
662 ></H2
663 ><P
664 >The <SPAN
665 CLASS="bold"
666 ><B
667 CLASS="emphasis"
668 >backup</B
669 ></SPAN
670 > command suite provides an interactive mode, in which you can issue multiple
671       commands over a persistent connection to the Backup Server and the VL Server. Interactive mode provides the following
672       features: <UL
673 ><LI
674 ><P
675 >The <SAMP
676 CLASS="computeroutput"
677 >backup&#62;</SAMP
678 > prompt replaces the usual command shell prompt.</P
679 ></LI
680 ><LI
681 ><P
682 >You omit the initial <SPAN
683 CLASS="bold"
684 ><B
685 CLASS="emphasis"
686 >backup</B
687 ></SPAN
688 > string from command names. Type only the operation
689             code and option names.</P
690 ></LI
691 ><LI
692 ><P
693 >You cannot issue commands that do not belong to the <SPAN
694 CLASS="bold"
695 ><B
696 CLASS="emphasis"
697 >backup</B
698 ></SPAN
699 > suite.</P
700 ></LI
701 ><LI
702 ><P
703 >If you assume an administrative AFS identity or specify a foreign cell as you enter interactive mode, it applies
704             to all commands issued during the interactive session. See <A
705 HREF="c15383.html#HDRWQ287"
706 >Performing Backup Operations as the
707             Local Superuser Root or in a Foreign Cell</A
708 >.</P
709 ></LI
710 ><LI
711 ><P
712 >You do not need to enclose shell metacharacters in double quotes.</P
713 ></LI
714 ></UL
715 ></P
716 ><P
717 >When you initiate a backup operation in interactive mode, the Backup System assigns it a <SPAN
718 CLASS="emphasis"
719 ><I
720 CLASS="emphasis"
721 >job ID
722       number</I
723 ></SPAN
724 >. You can display the list of current and pending operations with the <SPAN
725 CLASS="bold"
726 ><B
727 CLASS="emphasis"
728 >(backup)
729       jobs</B
730 ></SPAN
731 > command, for which instructions appear in <A
732 HREF="c15383.html#HDRWQ289"
733 >To display pending or running jobs in
734       interactive mode</A
735 >. (In both regular and interactive modes, the Tape Coordinator also assigns a <SPAN
736 CLASS="emphasis"
737 ><I
738 CLASS="emphasis"
739 >task ID
740       number</I
741 ></SPAN
742 > to each operation you initiate with a <SPAN
743 CLASS="bold"
744 ><B
745 CLASS="emphasis"
746 >backup</B
747 ></SPAN
748 > command. You can track task ID
749       numbers with the <SPAN
750 CLASS="bold"
751 ><B
752 CLASS="emphasis"
753 >backup status</B
754 ></SPAN
755 > command. See <A
756 HREF="c15383.html#HDRWQ291"
757 >Starting and Stopping
758       the Tape Coordinator Process</A
759 >.)</P
760 ><P
761 >You can cancel an operation in interactive mode with the <SPAN
762 CLASS="bold"
763 ><B
764 CLASS="emphasis"
765 >(backup) kill</B
766 ></SPAN
767 > command, for
768       which instructions appear in <A
769 HREF="c15383.html#HDRWQ290"
770 >To cancel operations in interactive mode</A
771 >. However, it is best not
772       to interrupt a dump operation because the resulting dump is incomplete, and interrupting a restore operation can leave volumes
773       in an inconsistent state, or even completely remove them from the server machine. For further discussion, see <A
774 HREF="c15383.html#HDRWQ296"
775 >Backing Up Data</A
776 > and <A
777 HREF="c15383.html#HDRWQ306"
778 >Restoring and Recovering Data</A
779 >.</P
780 ><P
781 >The <SPAN
782 CLASS="bold"
783 ><B
784 CLASS="emphasis"
785 >(backup) jobs</B
786 ></SPAN
787 > and <SPAN
788 CLASS="bold"
789 ><B
790 CLASS="emphasis"
791 >(backup) kill</B
792 ></SPAN
793 > commands are
794       available only in interactive mode and there is no equivalent functionality in regular command mode.</P
795 ></DIV
796 ><DIV
797 CLASS="sect2"
798 ><H2
799 CLASS="sect2"
800 ><A
801 NAME="Header_325"
802 >To enter interactive mode</A
803 ></H2
804 ><OL
805 TYPE="1"
806 ><LI
807 ><P
808 >Verify that you are authenticated as a user listed in the <SPAN
809 CLASS="bold"
810 ><B
811 CLASS="emphasis"
812 >/usr/afs/etc/UserList</B
813 ></SPAN
814 >
815           file. Entering interactive mode does not itself require privilege, but most other <SPAN
816 CLASS="bold"
817 ><B
818 CLASS="emphasis"
819 >backup</B
820 ></SPAN
821 >
822           commands do, and the AFS identity you assume when entering the mode applies to all commands you issue within it. If
823           necessary, issue the <SPAN
824 CLASS="bold"
825 ><B
826 CLASS="emphasis"
827 >bos listusers</B
828 ></SPAN
829 > command, which is fully described in <A
830 HREF="c32432.html#HDRWQ593"
831 >To display the users in the UserList file</A
832 >. <PRE
833 CLASS="programlisting"
834 >&#13;   % <SPAN
835 CLASS="bold"
836 ><B
837 CLASS="emphasis"
838 >bos listusers</B
839 ></SPAN
840 > &#60;<SPAN
841 CLASS="emphasis"
842 ><I
843 CLASS="emphasis"
844 >machine name</I
845 ></SPAN
846 >&#62;
847 </PRE
848 ></P
849 ></LI
850 ><LI
851 ><P
852 >Issue the <SPAN
853 CLASS="bold"
854 ><B
855 CLASS="emphasis"
856 >backup (interactive)</B
857 ></SPAN
858 > command at the system prompt. The
859           <SAMP
860 CLASS="computeroutput"
861 >backup&#62;</SAMP
862 > prompt appears. You can include either, but not both, of the <SPAN
863 CLASS="bold"
864 ><B
865 CLASS="emphasis"
866 >-localauth</B
867 ></SPAN
868 > and <SPAN
869 CLASS="bold"
870 ><B
871 CLASS="emphasis"
872 >-cell</B
873 ></SPAN
874 > options, as discussed in <A
875 HREF="c15383.html#HDRWQ287"
876 >Performing Backup Operations as the Local Superuser Root or in a Foreign Cell</A
877 >. <PRE
878 CLASS="programlisting"
879 >&#13;   % <SPAN
880 CLASS="bold"
881 ><B
882 CLASS="emphasis"
883 >backup</B
884 ></SPAN
885 >
886    backup&#62;
887 </PRE
888 ></P
889 ></LI
890 ></OL
891 ></DIV
892 ><DIV
893 CLASS="sect2"
894 ><H2
895 CLASS="sect2"
896 ><A
897 NAME="Header_326"
898 >To exit interactive mode</A
899 ></H2
900 ><OL
901 TYPE="1"
902 ><LI
903 ><P
904 >Issue the <SPAN
905 CLASS="bold"
906 ><B
907 CLASS="emphasis"
908 >quit</B
909 ></SPAN
910 > command at the <SAMP
911 CLASS="computeroutput"
912 >backup&#62;</SAMP
913 > prompt.
914           The command shell prompt reappears when the command succeeds, which it does only if there are no jobs pending or currently
915           running. To display and cancel pending or running jobs, follow the instructions in <A
916 HREF="c15383.html#HDRWQ289"
917 >To display
918           pending or running jobs in interactive mode</A
919 > and <A
920 HREF="c15383.html#HDRWQ290"
921 >To cancel operations in interactive
922           mode</A
923 >. <PRE
924 CLASS="programlisting"
925 >&#13;   backup&#62; <SPAN
926 CLASS="bold"
927 ><B
928 CLASS="emphasis"
929 >quit</B
930 ></SPAN
931 >
932    %
933 </PRE
934 ></P
935 ></LI
936 ></OL
937 ></DIV
938 ><DIV
939 CLASS="sect2"
940 ><H2
941 CLASS="sect2"
942 ><A
943 NAME="HDRWQ289"
944 >To display pending or running jobs in interactive mode</A
945 ></H2
946 ><OL
947 TYPE="1"
948 ><LI
949 ><P
950 >Issue the <SPAN
951 CLASS="bold"
952 ><B
953 CLASS="emphasis"
954 >jobs</B
955 ></SPAN
956 > command at the <SAMP
957 CLASS="computeroutput"
958 >backup&#62;</SAMP
959 > prompt.
960           <PRE
961 CLASS="programlisting"
962 >&#13;   backup&#62; <SPAN
963 CLASS="bold"
964 ><B
965 CLASS="emphasis"
966 >jobs</B
967 ></SPAN
968 >
969 </PRE
970 ></P
971 ><P
972 >where <DIV
973 CLASS="variablelist"
974 ><DL
975 ><DT
976 ><SPAN
977 CLASS="bold"
978 ><B
979 CLASS="emphasis"
980 >j</B
981 ></SPAN
982 ></DT
983 ><DD
984 ><P
985 >Is the shortest acceptable abbreviation of <SPAN
986 CLASS="bold"
987 ><B
988 CLASS="emphasis"
989 >jobs</B
990 ></SPAN
991 >.</P
992 ></DD
993 ></DL
994 ></DIV
995 ></P
996 ></LI
997 ></OL
998 ><P
999 >The output always includes the expiration date and time of the tokens that the <SPAN
1000 CLASS="bold"
1001 ><B
1002 CLASS="emphasis"
1003 >backup</B
1004 ></SPAN
1005 >
1006       command interpreter is using during the current interactive session, in the following format:</P
1007 ><PRE
1008 CLASS="programlisting"
1009 >&#13;   date   time: TOKEN EXPIRATION
1010 </PRE
1011 ><P
1012 >If the execution date and time specified for a scheduled dump operation is later than <SPAN
1013 CLASS="emphasis"
1014 ><I
1015 CLASS="emphasis"
1016 >date time</I
1017 ></SPAN
1018 >,
1019       then its individual line (as described in the following paragraphs) appears below this line to indicate that the current
1020       tokens will not be available to it.</P
1021 ><P
1022 >If the issuer of the <SPAN
1023 CLASS="bold"
1024 ><B
1025 CLASS="emphasis"
1026 >backup</B
1027 ></SPAN
1028 > command included the <SPAN
1029 CLASS="bold"
1030 ><B
1031 CLASS="emphasis"
1032 >-localauth</B
1033 ></SPAN
1034 > flag when entering interactive mode, the line instead reads as follows:</P
1035 ><PRE
1036 CLASS="programlisting"
1037 >&#13;   :  TOKEN NEVER EXPIRES
1038 </PRE
1039 ><P
1040 >The entry for a scheduled dump operation has the following format:</P
1041 ><PRE
1042 CLASS="programlisting"
1043 >&#13;   Job job_ID:  timestamp:  dump  volume_set  dump_level
1044 </PRE
1045 ><P
1046 >where <DIV
1047 CLASS="variablelist"
1048 ><DL
1049 ><DT
1050 ><SPAN
1051 CLASS="bold"
1052 ><B
1053 CLASS="emphasis"
1054 >job_ID</B
1055 ></SPAN
1056 ></DT
1057 ><DD
1058 ><P
1059 >Is a job identification number assigned by the Backup System.</P
1060 ></DD
1061 ><DT
1062 ><SPAN
1063 CLASS="bold"
1064 ><B
1065 CLASS="emphasis"
1066 >timestamp</B
1067 ></SPAN
1068 ></DT
1069 ><DD
1070 ><P
1071 >Indicates the date and time the dump operation is to begin, in the format month/date/year hours:minutes (in
1072               24-hour format)</P
1073 ></DD
1074 ><DT
1075 ><SPAN
1076 CLASS="bold"
1077 ><B
1078 CLASS="emphasis"
1079 >volume_set</B
1080 ></SPAN
1081 ></DT
1082 ><DD
1083 ><P
1084 >Indicates the volume set to dump.</P
1085 ></DD
1086 ><DT
1087 ><SPAN
1088 CLASS="bold"
1089 ><B
1090 CLASS="emphasis"
1091 >dump_level</B
1092 ></SPAN
1093 ></DT
1094 ><DD
1095 ><P
1096 >Indicates the dump level at which to perform the dump operation.</P
1097 ></DD
1098 ></DL
1099 ></DIV
1100 ></P
1101 ><P
1102 >The line for a pending or running operation of any other type has the following format:</P
1103 ><PRE
1104 CLASS="programlisting"
1105 >&#13;   Job job_ID:  operation  status
1106 </PRE
1107 ><P
1108 >where <DIV
1109 CLASS="variablelist"
1110 ><DL
1111 ><DT
1112 ><SPAN
1113 CLASS="bold"
1114 ><B
1115 CLASS="emphasis"
1116 >job_ID</B
1117 ></SPAN
1118 ></DT
1119 ><DD
1120 ><P
1121 >Is a job identification number assigned by the Backup System.</P
1122 ></DD
1123 ><DT
1124 ><SPAN
1125 CLASS="bold"
1126 ><B
1127 CLASS="emphasis"
1128 >operation</B
1129 ></SPAN
1130 ></DT
1131 ><DD
1132 ><P
1133 >Identifies the operation the Tape Coordinator is performing, which is initiated by the indicated command:
1134               <DIV
1135 CLASS="variablelist"
1136 ><DL
1137 ><DT
1138 ><SPAN
1139 CLASS="bold"
1140 ><B
1141 CLASS="emphasis"
1142 ><SAMP
1143 CLASS="computeroutput"
1144 >Dump</SAMP
1145 > (dump name)</B
1146 ></SPAN
1147 ></DT
1148 ><DD
1149 ><P
1150 >Initiated by the <SPAN
1151 CLASS="bold"
1152 ><B
1153 CLASS="emphasis"
1154 >backup dump</B
1155 ></SPAN
1156 > command. The dump name has the following
1157                       format:</P
1158 ><P
1159 >volume_set_name<SPAN
1160 CLASS="bold"
1161 ><B
1162 CLASS="emphasis"
1163 >.</B
1164 ></SPAN
1165 >dump_level_name</P
1166 ></DD
1167 ><DT
1168 ><SPAN
1169 CLASS="bold"
1170 ><B
1171 CLASS="emphasis"
1172 ><SAMP
1173 CLASS="computeroutput"
1174 >Restore</SAMP
1175 ></B
1176 ></SPAN
1177 ></DT
1178 ><DD
1179 ><P
1180 >Initiated by the <SPAN
1181 CLASS="bold"
1182 ><B
1183 CLASS="emphasis"
1184 >backup diskrestore</B
1185 ></SPAN
1186 >, <SPAN
1187 CLASS="bold"
1188 ><B
1189 CLASS="emphasis"
1190 >backup
1191                       volrestore</B
1192 ></SPAN
1193 >, or <SPAN
1194 CLASS="bold"
1195 ><B
1196 CLASS="emphasis"
1197 >backup volsetrestore</B
1198 ></SPAN
1199 > command.</P
1200 ></DD
1201 ><DT
1202 ><SPAN
1203 CLASS="bold"
1204 ><B
1205 CLASS="emphasis"
1206 ><SAMP
1207 CLASS="computeroutput"
1208 >Labeltape</SAMP
1209 > (tape_label)</B
1210 ></SPAN
1211 ></DT
1212 ><DD
1213 ><P
1214 >Initiated by the <SPAN
1215 CLASS="bold"
1216 ><B
1217 CLASS="emphasis"
1218 >backup labeltape</B
1219 ></SPAN
1220 > command. The tape_label is the name
1221                       specified by the <SPAN
1222 CLASS="bold"
1223 ><B
1224 CLASS="emphasis"
1225 >backup labeltape</B
1226 ></SPAN
1227 > command's <SPAN
1228 CLASS="bold"
1229 ><B
1230 CLASS="emphasis"
1231 >-name</B
1232 ></SPAN
1233 > or <SPAN
1234 CLASS="bold"
1235 ><B
1236 CLASS="emphasis"
1237 >-pname</B
1238 ></SPAN
1239 > argument.</P
1240 ></DD
1241 ><DT
1242 ><SPAN
1243 CLASS="bold"
1244 ><B
1245 CLASS="emphasis"
1246 ><SAMP
1247 CLASS="computeroutput"
1248 >Scantape</SAMP
1249 ></B
1250 ></SPAN
1251 ></DT
1252 ><DD
1253 ><P
1254 >Initiated by the <SPAN
1255 CLASS="bold"
1256 ><B
1257 CLASS="emphasis"
1258 >backup scantape</B
1259 ></SPAN
1260 > command.</P
1261 ></DD
1262 ><DT
1263 ><SPAN
1264 CLASS="bold"
1265 ><B
1266 CLASS="emphasis"
1267 ><SAMP
1268 CLASS="computeroutput"
1269 >SaveDb</SAMP
1270 ></B
1271 ></SPAN
1272 ></DT
1273 ><DD
1274 ><P
1275 >Initiated by the <SPAN
1276 CLASS="bold"
1277 ><B
1278 CLASS="emphasis"
1279 >backup savedb</B
1280 ></SPAN
1281 > command.</P
1282 ></DD
1283 ><DT
1284 ><SPAN
1285 CLASS="bold"
1286 ><B
1287 CLASS="emphasis"
1288 ><SAMP
1289 CLASS="computeroutput"
1290 >RestoreDb</SAMP
1291 ></B
1292 ></SPAN
1293 ></DT
1294 ><DD
1295 ><P
1296 >Initiated by the <SPAN
1297 CLASS="bold"
1298 ><B
1299 CLASS="emphasis"
1300 >backup restoredb</B
1301 ></SPAN
1302 > command.</P
1303 ></DD
1304 ></DL
1305 ></DIV
1306 ></P
1307 ></DD
1308 ><DT
1309 ><SPAN
1310 CLASS="bold"
1311 ><B
1312 CLASS="emphasis"
1313 >status</B
1314 ></SPAN
1315 ></DT
1316 ><DD
1317 ><P
1318 >Indicates the job's current status in one of the following messages. If no message appears, the job is either
1319               still pending or has finished. <DIV
1320 CLASS="variablelist"
1321 ><DL
1322 ><DT
1323 ><SPAN
1324 CLASS="bold"
1325 ><B
1326 CLASS="emphasis"
1327 >number <SAMP
1328 CLASS="computeroutput"
1329 >Kbytes, volume volume_name</SAMP
1330 ></B
1331 ></SPAN
1332 ></DT
1333 ><DD
1334 ><P
1335 >For a running dump operation, indicates the number of kilobytes copied to tape or a backup data file so
1336                       far, and the volume currently being dumped.</P
1337 ></DD
1338 ><DT
1339 ><SPAN
1340 CLASS="bold"
1341 ><B
1342 CLASS="emphasis"
1343 >number <SAMP
1344 CLASS="computeroutput"
1345 >Kbytes, restore.volume</SAMP
1346 ></B
1347 ></SPAN
1348 ></DT
1349 ><DD
1350 ><P
1351 >For a running restore operation, indicates the number of kilobytes copied into AFS from a tape or a
1352                       backup data file so far.</P
1353 ></DD
1354 ><DT
1355 ><SPAN
1356 CLASS="bold"
1357 ><B
1358 CLASS="emphasis"
1359 ><SAMP
1360 CLASS="computeroutput"
1361 >[abort requested]</SAMP
1362 ></B
1363 ></SPAN
1364 ></DT
1365 ><DD
1366 ><P
1367 >The <SPAN
1368 CLASS="bold"
1369 ><B
1370 CLASS="emphasis"
1371 >(backup) kill</B
1372 ></SPAN
1373 > command was issued, but the termination signal has
1374                       yet to reach the Tape Coordinator.</P
1375 ></DD
1376 ><DT
1377 ><SPAN
1378 CLASS="bold"
1379 ><B
1380 CLASS="emphasis"
1381 ><SAMP
1382 CLASS="computeroutput"
1383 >[abort sent]</SAMP
1384 ></B
1385 ></SPAN
1386 ></DT
1387 ><DD
1388 ><P
1389 >The operation is canceled by the <SPAN
1390 CLASS="bold"
1391 ><B
1392 CLASS="emphasis"
1393 >(backup) kill</B
1394 ></SPAN
1395 > command. Once the Backup
1396                       System removes an operation from the queue or stops it from running, it no longer appears at all in the output
1397                       from the command.</P
1398 ></DD
1399 ><DT
1400 ><SPAN
1401 CLASS="bold"
1402 ><B
1403 CLASS="emphasis"
1404 ><SAMP
1405 CLASS="computeroutput"
1406 >[butc contact lost]</SAMP
1407 ></B
1408 ></SPAN
1409 ></DT
1410 ><DD
1411 ><P
1412 >The <SPAN
1413 CLASS="bold"
1414 ><B
1415 CLASS="emphasis"
1416 >backup</B
1417 ></SPAN
1418 > command interpreter cannot reach the Tape Coordinator. The
1419                       message can mean either that the Tape Coordinator handling the operation was terminated or failed while the
1420                       operation was running, or that the connection to the Tape Coordinator timed out.</P
1421 ></DD
1422 ><DT
1423 ><SPAN
1424 CLASS="bold"
1425 ><B
1426 CLASS="emphasis"
1427 ><SAMP
1428 CLASS="computeroutput"
1429 >[done]</SAMP
1430 ></B
1431 ></SPAN
1432 ></DT
1433 ><DD
1434 ><P
1435 >The Tape Coordinator has finished the operation.</P
1436 ></DD
1437 ><DT
1438 ><SPAN
1439 CLASS="bold"
1440 ><B
1441 CLASS="emphasis"
1442 ><SAMP
1443 CLASS="computeroutput"
1444 >[drive wait]</SAMP
1445 ></B
1446 ></SPAN
1447 ></DT
1448 ><DD
1449 ><P
1450 >The operation is waiting for the specified tape drive to become free.</P
1451 ></DD
1452 ><DT
1453 ><SPAN
1454 CLASS="bold"
1455 ><B
1456 CLASS="emphasis"
1457 ><SAMP
1458 CLASS="computeroutput"
1459 >[operator wait]</SAMP
1460 ></B
1461 ></SPAN
1462 ></DT
1463 ><DD
1464 ><P
1465 >The Tape Coordinator is waiting for the backup operator to insert a tape in the drive.</P
1466 ></DD
1467 ></DL
1468 ></DIV
1469 ></P
1470 ></DD
1471 ></DL
1472 ></DIV
1473 ></P
1474 ></DIV
1475 ><DIV
1476 CLASS="sect2"
1477 ><H2
1478 CLASS="sect2"
1479 ><A
1480 NAME="HDRWQ290"
1481 >To cancel operations in interactive mode</A
1482 ></H2
1483 ><OL
1484 TYPE="1"
1485 ><LI
1486 ><P
1487 >Issue the <SPAN
1488 CLASS="bold"
1489 ><B
1490 CLASS="emphasis"
1491 >jobs</B
1492 ></SPAN
1493 > command at the <SAMP
1494 CLASS="computeroutput"
1495 >backup&#62;</SAMP
1496 > prompt,
1497           to learn the job ID number of the operation you want to cancel. For details, see <A
1498 HREF="c15383.html#HDRWQ289"
1499 >To display
1500           pending or running jobs in interactive mode</A
1501 >. <PRE
1502 CLASS="programlisting"
1503 >&#13;   backup&#62; <SPAN
1504 CLASS="bold"
1505 ><B
1506 CLASS="emphasis"
1507 >jobs</B
1508 ></SPAN
1509 >
1510 </PRE
1511 ></P
1512 ></LI
1513 ><LI
1514 ><P
1515 >Issue the <SPAN
1516 CLASS="bold"
1517 ><B
1518 CLASS="emphasis"
1519 >(backup) kill</B
1520 ></SPAN
1521 > command to cancel the operation. <PRE
1522 CLASS="programlisting"
1523 >&#13;   backup&#62; <SPAN
1524 CLASS="bold"
1525 ><B
1526 CLASS="emphasis"
1527 >kill</B
1528 ></SPAN
1529 > &#60;<SPAN
1530 CLASS="emphasis"
1531 ><I
1532 CLASS="emphasis"
1533 >job ID or dump set name</I
1534 ></SPAN
1535 >&#62;
1536 </PRE
1537 ></P
1538 ><P
1539 >where <DIV
1540 CLASS="variablelist"
1541 ><DL
1542 ><DT
1543 ><SPAN
1544 CLASS="bold"
1545 ><B
1546 CLASS="emphasis"
1547 >k</B
1548 ></SPAN
1549 ></DT
1550 ><DD
1551 ><P
1552 >Is the shortest acceptable abbreviation of <SPAN
1553 CLASS="bold"
1554 ><B
1555 CLASS="emphasis"
1556 >kill</B
1557 ></SPAN
1558 >.</P
1559 ></DD
1560 ><DT
1561 ><SPAN
1562 CLASS="bold"
1563 ><B
1564 CLASS="emphasis"
1565 >job ID or dump set name</B
1566 ></SPAN
1567 ></DT
1568 ><DD
1569 ><P
1570 >Specifies either the job ID number of the operation to cancel, as reported by the <SPAN
1571 CLASS="bold"
1572 ><B
1573 CLASS="emphasis"
1574 >jobs</B
1575 ></SPAN
1576 > command, or for a dump operation only, the dump name in the format
1577                   volume_set_name.dump_level_name.</P
1578 ></DD
1579 ></DL
1580 ></DIV
1581 ></P
1582 ></LI
1583 ></OL
1584 ></DIV
1585 ><DIV
1586 CLASS="sect2"
1587 ><H2
1588 CLASS="sect2"
1589 ><A
1590 NAME="HDRWQ291"
1591 >Starting and Stopping the Tape Coordinator Process</A
1592 ></H2
1593 ><P
1594 >Before performing a backup operation that reads from or writes to a tape device or backup data file, you must start the
1595       Tape Coordinator (<SPAN
1596 CLASS="bold"
1597 ><B
1598 CLASS="emphasis"
1599 >butc</B
1600 ></SPAN
1601 >) process that handles the drive or file. This section explains how to
1602       start, stop, and check the status of a Tape Coordinator process. To use these instructions, you must have already configured
1603       the Tape Coordinator machine and created a Tape Coordinator entry in the Backup Database, as instructed in <A
1604 HREF="c12776.html#HDRWQ261"
1605 >Configuring Tape Coordinator Machines and Tape Devices</A
1606 >.</P
1607 ><P
1608 >The Tape Coordinator assigns a <SPAN
1609 CLASS="emphasis"
1610 ><I
1611 CLASS="emphasis"
1612 >task ID number</I
1613 ></SPAN
1614 > to each operation it performs. The number is distinct
1615       from the job ID number assigned by the <SPAN
1616 CLASS="bold"
1617 ><B
1618 CLASS="emphasis"
1619 >backup</B
1620 ></SPAN
1621 > command interpreter in interactive mode (which
1622       is discussed in <A
1623 HREF="c15383.html#HDRWQ288"
1624 >Using Interactive and Regular Command Mode</A
1625 >). The Tape Coordinator reports the
1626       task ID number in its onscreen trace and in the messages that it writes to its log and error files. To view the task ID
1627       numbers of a Tape Coordinator's running or pending operations, issue the <SPAN
1628 CLASS="bold"
1629 ><B
1630 CLASS="emphasis"
1631 >backup status</B
1632 ></SPAN
1633 >
1634       command.</P
1635 ></DIV
1636 ><DIV
1637 CLASS="sect2"
1638 ><H2
1639 CLASS="sect2"
1640 ><A
1641 NAME="HDRWQ292"
1642 >To start a Tape Coordinator process</A
1643 ></H2
1644 ><OL
1645 TYPE="1"
1646 ><LI
1647 ><P
1648 >Verify that you are authenticated as a user listed in the <SPAN
1649 CLASS="bold"
1650 ><B
1651 CLASS="emphasis"
1652 >/usr/afs/etc/UserList</B
1653 ></SPAN
1654 >
1655           file of the cell in which the Tape Coordinator is to access volume data and the Backup Database. If necessary, issue the
1656           <SPAN
1657 CLASS="bold"
1658 ><B
1659 CLASS="emphasis"
1660 >bos listusers</B
1661 ></SPAN
1662 > command, which is fully described in <A
1663 HREF="c32432.html#HDRWQ593"
1664 >To display
1665           the users in the UserList file</A
1666 >. <PRE
1667 CLASS="programlisting"
1668 >&#13;   % <SPAN
1669 CLASS="bold"
1670 ><B
1671 CLASS="emphasis"
1672 >bos listusers</B
1673 ></SPAN
1674 > &#60;<SPAN
1675 CLASS="emphasis"
1676 ><I
1677 CLASS="emphasis"
1678 >machine name</I
1679 ></SPAN
1680 >&#62;
1681 </PRE
1682 ></P
1683 ><P
1684 >Alternately, you can log into a file server machine as the local superuser <SPAN
1685 CLASS="bold"
1686 ><B
1687 CLASS="emphasis"
1688 >root</B
1689 ></SPAN
1690 > in
1691           Step <A
1692 HREF="c15383.html#LIWQ293"
1693 >3</A
1694 >.</P
1695 ></LI
1696 ><LI
1697 ><P
1698 >Verify that you can write to the Tape Coordinator's log and error files in the local <SPAN
1699 CLASS="bold"
1700 ><B
1701 CLASS="emphasis"
1702 >/usr/afs/backup</B
1703 ></SPAN
1704 > directory (the <SPAN
1705 CLASS="bold"
1706 ><B
1707 CLASS="emphasis"
1708 >TE_</B
1709 ></SPAN
1710 >device_name and <SPAN
1711 CLASS="bold"
1712 ><B
1713 CLASS="emphasis"
1714 >TL_</B
1715 ></SPAN
1716 >device_name files). If the log and error files do not already exist, you must be able to insert
1717           and write to files in the <SPAN
1718 CLASS="bold"
1719 ><B
1720 CLASS="emphasis"
1721 >/usr/afs/backup</B
1722 ></SPAN
1723 > directory.</P
1724 ></LI
1725 ><LI
1726 ><P
1727 ><A
1728 NAME="LIWQ293"
1729 ></A
1730 >Open a connection (using a command such as <SPAN
1731 CLASS="bold"
1732 ><B
1733 CLASS="emphasis"
1734 >telnet</B
1735 ></SPAN
1736 > or
1737           <SPAN
1738 CLASS="bold"
1739 ><B
1740 CLASS="emphasis"
1741 >rlogin</B
1742 ></SPAN
1743 >) to the Tape Coordinator machine that drives the tape device, or whose local disk
1744           houses the backup data file. The Tape Coordinator uses a devoted connection or window that must remain open for the Tape
1745           Coordinator to accept requests and while it is executing them.</P
1746 ><P
1747 >If you plan to include the <SPAN
1748 CLASS="bold"
1749 ><B
1750 CLASS="emphasis"
1751 >-localauth</B
1752 ></SPAN
1753 > flag to the <SPAN
1754 CLASS="bold"
1755 ><B
1756 CLASS="emphasis"
1757 >butc</B
1758 ></SPAN
1759 > command in the next step, log in as the local superuser <SPAN
1760 CLASS="bold"
1761 ><B
1762 CLASS="emphasis"
1763 >root</B
1764 ></SPAN
1765 >.</P
1766 ></LI
1767 ><LI
1768 ><P
1769 ><A
1770 NAME="LIWQ294"
1771 ></A
1772 >Issue the <SPAN
1773 CLASS="bold"
1774 ><B
1775 CLASS="emphasis"
1776 >butc</B
1777 ></SPAN
1778 > command to start the Tape Coordinator. You
1779           can include either, but not both, of the <SPAN
1780 CLASS="bold"
1781 ><B
1782 CLASS="emphasis"
1783 >-localauth</B
1784 ></SPAN
1785 > and <SPAN
1786 CLASS="bold"
1787 ><B
1788 CLASS="emphasis"
1789 >-cell</B
1790 ></SPAN
1791 > options, as discussed in <A
1792 HREF="c15383.html#HDRWQ287"
1793 >Performing Backup Operations as the Local
1794           Superuser Root or in a Foreign Cell</A
1795 >. <PRE
1796 CLASS="programlisting"
1797 >&#13;   % <SPAN
1798 CLASS="bold"
1799 ><B
1800 CLASS="emphasis"
1801 >butc</B
1802 ></SPAN
1803 > [&#60;<SPAN
1804 CLASS="emphasis"
1805 ><I
1806 CLASS="emphasis"
1807 >port offset</I
1808 ></SPAN
1809 >&#62;]  [<SPAN
1810 CLASS="bold"
1811 ><B
1812 CLASS="emphasis"
1813 >-debuglevel</B
1814 ></SPAN
1815 > &#60;<SPAN
1816 CLASS="emphasis"
1817 ><I
1818 CLASS="emphasis"
1819 >trace level</I
1820 ></SPAN
1821 >&#62;]  \
1822           [<SPAN
1823 CLASS="bold"
1824 ><B
1825 CLASS="emphasis"
1826 >-cell</B
1827 ></SPAN
1828 > &#60;<SPAN
1829 CLASS="emphasis"
1830 ><I
1831 CLASS="emphasis"
1832 >cellname</I
1833 ></SPAN
1834 >&#62;] [<SPAN
1835 CLASS="bold"
1836 ><B
1837 CLASS="emphasis"
1838 >-noautoquery</B
1839 ></SPAN
1840 >] [<SPAN
1841 CLASS="bold"
1842 ><B
1843 CLASS="emphasis"
1844 >-localauth</B
1845 ></SPAN
1846 >]
1847 </PRE
1848 ></P
1849 ><P
1850 >where <DIV
1851 CLASS="variablelist"
1852 ><DL
1853 ><DT
1854 ><SPAN
1855 CLASS="bold"
1856 ><B
1857 CLASS="emphasis"
1858 >butc</B
1859 ></SPAN
1860 ></DT
1861 ><DD
1862 ><P
1863 >Must be typed in full.</P
1864 ></DD
1865 ><DT
1866 ><SPAN
1867 CLASS="bold"
1868 ><B
1869 CLASS="emphasis"
1870 >port offset</B
1871 ></SPAN
1872 ></DT
1873 ><DD
1874 ><P
1875 >Specifies the Tape Coordinator's port offset number. You must provide this argument unless the default value
1876                   of <SPAN
1877 CLASS="bold"
1878 ><B
1879 CLASS="emphasis"
1880 >0</B
1881 ></SPAN
1882 > (zero) is appropriate.</P
1883 ></DD
1884 ><DT
1885 ><SPAN
1886 CLASS="bold"
1887 ><B
1888 CLASS="emphasis"
1889 >-debuglevel</B
1890 ></SPAN
1891 ></DT
1892 ><DD
1893 ><P
1894 >Specifies the type of trace messages that the Tape Coordinator writes to the standard output stream
1895                   (stdout). Provide one of the following three values, or omit this argument to display the default type of messages
1896                   (equivalent to setting a value of <SPAN
1897 CLASS="bold"
1898 ><B
1899 CLASS="emphasis"
1900 >0</B
1901 ></SPAN
1902 > [zero]): <UL
1903 ><LI
1904 ><P
1905 ><SPAN
1906 CLASS="bold"
1907 ><B
1908 CLASS="emphasis"
1909 >0</B
1910 ></SPAN
1911 >: The Tape Coordinator generates only the minimum number of messages
1912                         necessary to communicate with the backup operator, including prompts for insertion of additional tapes and
1913                         messages that indicate errors or the beginning or completion of operations.</P
1914 ></LI
1915 ><LI
1916 ><P
1917 ><SPAN
1918 CLASS="bold"
1919 ><B
1920 CLASS="emphasis"
1921 >1</B
1922 ></SPAN
1923 >: In addition to the messages displayed at level <SPAN
1924 CLASS="bold"
1925 ><B
1926 CLASS="emphasis"
1927 >0</B
1928 ></SPAN
1929 >, the Tape Coordinator displays the name of each volume being dumped or
1930                         restored.</P
1931 ></LI
1932 ><LI
1933 ><P
1934 ><SPAN
1935 CLASS="bold"
1936 ><B
1937 CLASS="emphasis"
1938 >2</B
1939 ></SPAN
1940 >: In addition to the messages displayed at levels <SPAN
1941 CLASS="bold"
1942 ><B
1943 CLASS="emphasis"
1944 >0</B
1945 ></SPAN
1946 > and <SPAN
1947 CLASS="bold"
1948 ><B
1949 CLASS="emphasis"
1950 >1</B
1951 ></SPAN
1952 >, the Tape Coordinator displays all of the
1953                         messages it is also writing to its log file (<SPAN
1954 CLASS="bold"
1955 ><B
1956 CLASS="emphasis"
1957 >/usr/afs/backup/TL_</B
1958 ></SPAN
1959 >device_name).</P
1960 ></LI
1961 ></UL
1962 ></P
1963 ></DD
1964 ><DT
1965 ><SPAN
1966 CLASS="bold"
1967 ><B
1968 CLASS="emphasis"
1969 >cellname</B
1970 ></SPAN
1971 ></DT
1972 ><DD
1973 ><P
1974 >Names the cell in which to perform the backup operations (the cell where the relevant volumes reside and the
1975                   Backup Server process is running). If you omit this argument, the Tape Coordinator uses its home cell, as defined
1976                   in the local <SPAN
1977 CLASS="bold"
1978 ><B
1979 CLASS="emphasis"
1980 >/usr/vice/etc/ThisCell</B
1981 ></SPAN
1982 > file. Do not combine this argument with the
1983                   <SPAN
1984 CLASS="bold"
1985 ><B
1986 CLASS="emphasis"
1987 >-localauth</B
1988 ></SPAN
1989 > flag.</P
1990 ></DD
1991 ><DT
1992 ><SPAN
1993 CLASS="bold"
1994 ><B
1995 CLASS="emphasis"
1996 >-noautoquery</B
1997 ></SPAN
1998 ></DT
1999 ><DD
2000 ><P
2001 >Disables the Tape Coordinator's prompt for the first tape it needs for each operation. For a description of
2002                   the advantages and consequences of including this flag, see <A
2003 HREF="c12776.html#HDRWQ278"
2004 >Eliminating the Search or
2005                   Prompt for the Initial Tape</A
2006 >.</P
2007 ></DD
2008 ><DT
2009 ><SPAN
2010 CLASS="bold"
2011 ><B
2012 CLASS="emphasis"
2013 >-localauth</B
2014 ></SPAN
2015 ></DT
2016 ><DD
2017 ><P
2018 >Constructs a server ticket using a key from the local <SPAN
2019 CLASS="bold"
2020 ><B
2021 CLASS="emphasis"
2022 >/usr/afs/etc/KeyFile</B
2023 ></SPAN
2024 >
2025                   file. The <SPAN
2026 CLASS="bold"
2027 ><B
2028 CLASS="emphasis"
2029 >butc</B
2030 ></SPAN
2031 > process presents it to the Backup Server, Volume Server, and VL
2032                   Server during mutual authentication. You must be logged into a file server machine as the local superuser
2033                   <SPAN
2034 CLASS="bold"
2035 ><B
2036 CLASS="emphasis"
2037 >root</B
2038 ></SPAN
2039 > to include this flag, and cannot combine it with the <SPAN
2040 CLASS="bold"
2041 ><B
2042 CLASS="emphasis"
2043 >-cell</B
2044 ></SPAN
2045 > argument.</P
2046 ></DD
2047 ></DL
2048 ></DIV
2049 ></P
2050 ></LI
2051 ></OL
2052 ></DIV
2053 ><DIV
2054 CLASS="sect2"
2055 ><H2
2056 CLASS="sect2"
2057 ><A
2058 NAME="Header_331"
2059 >To stop a Tape Coordinator process</A
2060 ></H2
2061 ><OL
2062 TYPE="1"
2063 ><LI
2064 ><P
2065 >Enter an interrupt signal such as &#60;<SPAN
2066 CLASS="bold"
2067 ><B
2068 CLASS="emphasis"
2069 >Ctrl-c</B
2070 ></SPAN
2071 >&#62; over the dedicated connection to
2072           the Tape Coordinator.</P
2073 ></LI
2074 ></OL
2075 ></DIV
2076 ><DIV
2077 CLASS="sect2"
2078 ><H2
2079 CLASS="sect2"
2080 ><A
2081 NAME="HDRWQ295"
2082 >To check the status of a Tape Coordinator process</A
2083 ></H2
2084 ><OL
2085 TYPE="1"
2086 ><LI
2087 ><P
2088 >Verify that you are authenticated as a user listed in the <SPAN
2089 CLASS="bold"
2090 ><B
2091 CLASS="emphasis"
2092 >/usr/afs/etc/UserList</B
2093 ></SPAN
2094 >
2095           file. If necessary, issue the <SPAN
2096 CLASS="bold"
2097 ><B
2098 CLASS="emphasis"
2099 >bos listusers</B
2100 ></SPAN
2101 > command, which is fully described in <A
2102 HREF="c32432.html#HDRWQ593"
2103 >To display the users in the UserList file</A
2104 >. <PRE
2105 CLASS="programlisting"
2106 >&#13;   % <SPAN
2107 CLASS="bold"
2108 ><B
2109 CLASS="emphasis"
2110 >bos listusers</B
2111 ></SPAN
2112 > &#60;<SPAN
2113 CLASS="emphasis"
2114 ><I
2115 CLASS="emphasis"
2116 >machine name</I
2117 ></SPAN
2118 >&#62;
2119 </PRE
2120 ></P
2121 ></LI
2122 ><LI
2123 ><P
2124 >Issue the <SPAN
2125 CLASS="bold"
2126 ><B
2127 CLASS="emphasis"
2128 >backup status</B
2129 ></SPAN
2130 > command. <PRE
2131 CLASS="programlisting"
2132 >&#13;   % <SPAN
2133 CLASS="bold"
2134 ><B
2135 CLASS="emphasis"
2136 >backup status</B
2137 ></SPAN
2138 > [&#60;<SPAN
2139 CLASS="emphasis"
2140 ><I
2141 CLASS="emphasis"
2142 >TC port offset</I
2143 ></SPAN
2144 >&#62;]
2145 </PRE
2146 ></P
2147 ><P
2148 >where <DIV
2149 CLASS="variablelist"
2150 ><DL
2151 ><DT
2152 ><SPAN
2153 CLASS="bold"
2154 ><B
2155 CLASS="emphasis"
2156 >st</B
2157 ></SPAN
2158 ></DT
2159 ><DD
2160 ><P
2161 >Is the shortest acceptable abbreviation of <SPAN
2162 CLASS="bold"
2163 ><B
2164 CLASS="emphasis"
2165 >status</B
2166 ></SPAN
2167 >.</P
2168 ></DD
2169 ><DT
2170 ><SPAN
2171 CLASS="bold"
2172 ><B
2173 CLASS="emphasis"
2174 >TC port offset</B
2175 ></SPAN
2176 ></DT
2177 ><DD
2178 ><P
2179 >Specifies the Tape Coordinator's port offset number. You must provide this argument unless the default value
2180                   of <SPAN
2181 CLASS="bold"
2182 ><B
2183 CLASS="emphasis"
2184 >0</B
2185 ></SPAN
2186 > (zero) is appropriate.</P
2187 ></DD
2188 ></DL
2189 ></DIV
2190 ></P
2191 ></LI
2192 ></OL
2193 ><P
2194 >The following message indicates that the Tape Coordinator is not currently performing an operation:</P
2195 ><PRE
2196 CLASS="programlisting"
2197 >&#13;   Tape coordinator is idle
2198 </PRE
2199 ><P
2200 >Otherwise, the output includes a message of the following format for each running or pending operation:</P
2201 ><PRE
2202 CLASS="programlisting"
2203 >&#13;   Task task_ID:  operation:   status
2204 </PRE
2205 ><P
2206 >where <DIV
2207 CLASS="variablelist"
2208 ><DL
2209 ><DT
2210 ><SPAN
2211 CLASS="bold"
2212 ><B
2213 CLASS="emphasis"
2214 >task_ID</B
2215 ></SPAN
2216 ></DT
2217 ><DD
2218 ><P
2219 >Is a task identification number assigned by the Tape Coordinator. It begins with the Tape Coordinator's port
2220               offset number.</P
2221 ></DD
2222 ><DT
2223 ><SPAN
2224 CLASS="bold"
2225 ><B
2226 CLASS="emphasis"
2227 >operation</B
2228 ></SPAN
2229 ></DT
2230 ><DD
2231 ><P
2232 >Identifies the operation the Tape Coordinator is performing, which is initiated by the indicated command:
2233               <UL
2234 ><LI
2235 ><P
2236 ><SAMP
2237 CLASS="computeroutput"
2238 >Dump</SAMP
2239 > (the <SPAN
2240 CLASS="bold"
2241 ><B
2242 CLASS="emphasis"
2243 >backup dump</B
2244 ></SPAN
2245 > command)</P
2246 ></LI
2247 ><LI
2248 ><P
2249 ><SAMP
2250 CLASS="computeroutput"
2251 >Restore</SAMP
2252 > (the <SPAN
2253 CLASS="bold"
2254 ><B
2255 CLASS="emphasis"
2256 >backup diskrestore</B
2257 ></SPAN
2258 >,
2259                     <SPAN
2260 CLASS="bold"
2261 ><B
2262 CLASS="emphasis"
2263 >backup volrestore</B
2264 ></SPAN
2265 >, or <SPAN
2266 CLASS="bold"
2267 ><B
2268 CLASS="emphasis"
2269 >backup volsetrestore</B
2270 ></SPAN
2271 >
2272                     commands)</P
2273 ></LI
2274 ><LI
2275 ><P
2276 ><SAMP
2277 CLASS="computeroutput"
2278 >Labeltape</SAMP
2279 > (the <SPAN
2280 CLASS="bold"
2281 ><B
2282 CLASS="emphasis"
2283 >backup labeltape</B
2284 ></SPAN
2285 >
2286                     command)</P
2287 ></LI
2288 ><LI
2289 ><P
2290 ><SAMP
2291 CLASS="computeroutput"
2292 >Scantape</SAMP
2293 > (the <SPAN
2294 CLASS="bold"
2295 ><B
2296 CLASS="emphasis"
2297 >backup scantape</B
2298 ></SPAN
2299 >
2300                     command)</P
2301 ></LI
2302 ><LI
2303 ><P
2304 ><SAMP
2305 CLASS="computeroutput"
2306 >SaveDb</SAMP
2307 > (the <SPAN
2308 CLASS="bold"
2309 ><B
2310 CLASS="emphasis"
2311 >backup savedb</B
2312 ></SPAN
2313 >
2314                     command)</P
2315 ></LI
2316 ><LI
2317 ><P
2318 ><SAMP
2319 CLASS="computeroutput"
2320 >RestoreDb</SAMP
2321 > (the <SPAN
2322 CLASS="bold"
2323 ><B
2324 CLASS="emphasis"
2325 >backup restoredb</B
2326 ></SPAN
2327 >
2328                     command)</P
2329 ></LI
2330 ></UL
2331 ></P
2332 ></DD
2333 ><DT
2334 ><SPAN
2335 CLASS="bold"
2336 ><B
2337 CLASS="emphasis"
2338 >status</B
2339 ></SPAN
2340 ></DT
2341 ><DD
2342 ><P
2343 >Indicates the job's current status in one of the following messages. <DIV
2344 CLASS="variablelist"
2345 ><DL
2346 ><DT
2347 ><SPAN
2348 CLASS="bold"
2349 ><B
2350 CLASS="emphasis"
2351 >number <SAMP
2352 CLASS="computeroutput"
2353 >Kbytes transferred, volume</SAMP
2354 >
2355                     volume_name</B
2356 ></SPAN
2357 ></DT
2358 ><DD
2359 ><P
2360 >For a running dump operation, indicates the number of kilobytes copied to tape or a backup data file so
2361                       far, and the volume currently being dumped.</P
2362 ></DD
2363 ><DT
2364 ><SPAN
2365 CLASS="bold"
2366 ><B
2367 CLASS="emphasis"
2368 >number <SAMP
2369 CLASS="computeroutput"
2370 >Kbytes, restore.volume</SAMP
2371 ></B
2372 ></SPAN
2373 ></DT
2374 ><DD
2375 ><P
2376 >For a running restore operation, indicates the number of kilobytes copied into AFS from a tape or a
2377                       backup data file so far.</P
2378 ></DD
2379 ><DT
2380 ><SPAN
2381 CLASS="bold"
2382 ><B
2383 CLASS="emphasis"
2384 ><SAMP
2385 CLASS="computeroutput"
2386 >[abort requested]</SAMP
2387 ></B
2388 ></SPAN
2389 ></DT
2390 ><DD
2391 ><P
2392 >The <SPAN
2393 CLASS="bold"
2394 ><B
2395 CLASS="emphasis"
2396 >(backup) kill</B
2397 ></SPAN
2398 > command was issued, but the termination signal has
2399                       yet to reach the Tape Coordinator.</P
2400 ></DD
2401 ><DT
2402 ><SPAN
2403 CLASS="bold"
2404 ><B
2405 CLASS="emphasis"
2406 ><SAMP
2407 CLASS="computeroutput"
2408 >[abort sent]</SAMP
2409 ></B
2410 ></SPAN
2411 ></DT
2412 ><DD
2413 ><P
2414 >The operation is canceled by the <SPAN
2415 CLASS="bold"
2416 ><B
2417 CLASS="emphasis"
2418 >(backup) kill</B
2419 ></SPAN
2420 > command. Once the Backup
2421                       System removes an operation from the queue or stops it from running, it no longer appears at all in the output
2422                       from the command.</P
2423 ></DD
2424 ><DT
2425 ><SPAN
2426 CLASS="bold"
2427 ><B
2428 CLASS="emphasis"
2429 ><SAMP
2430 CLASS="computeroutput"
2431 >[butc contact lost]</SAMP
2432 ></B
2433 ></SPAN
2434 ></DT
2435 ><DD
2436 ><P
2437 >The <SPAN
2438 CLASS="bold"
2439 ><B
2440 CLASS="emphasis"
2441 >backup</B
2442 ></SPAN
2443 > command interpreter cannot reach the Tape Coordinator. The
2444                       message can mean either that the Tape Coordinator handling the operation was terminated or failed while the
2445                       operation was running, or that the connection to the Tape Coordinator timed out.</P
2446 ></DD
2447 ><DT
2448 ><SPAN
2449 CLASS="bold"
2450 ><B
2451 CLASS="emphasis"
2452 ><SAMP
2453 CLASS="computeroutput"
2454 >[done]</SAMP
2455 ></B
2456 ></SPAN
2457 ></DT
2458 ><DD
2459 ><P
2460 >The Tape Coordinator has finished the operation.</P
2461 ></DD
2462 ><DT
2463 ><SPAN
2464 CLASS="bold"
2465 ><B
2466 CLASS="emphasis"
2467 ><SAMP
2468 CLASS="computeroutput"
2469 >[drive wait]</SAMP
2470 ></B
2471 ></SPAN
2472 ></DT
2473 ><DD
2474 ><P
2475 >The operation is waiting for the specified tape drive to become free.</P
2476 ></DD
2477 ><DT
2478 ><SPAN
2479 CLASS="bold"
2480 ><B
2481 CLASS="emphasis"
2482 ><SAMP
2483 CLASS="computeroutput"
2484 >[operator wait]</SAMP
2485 ></B
2486 ></SPAN
2487 ></DT
2488 ><DD
2489 ><P
2490 >The Tape Coordinator is waiting for the backup operator to insert a tape in the drive.</P
2491 ></DD
2492 ></DL
2493 ></DIV
2494 ></P
2495 ></DD
2496 ></DL
2497 ></DIV
2498 ></P
2499 ><P
2500 >If the Tape Coordinator is communicating with an XBSA server (a third-party backup utility that implements the Open
2501       Group's Backup Service API [XBSA]), the following message appears last in the output:</P
2502 ><PRE
2503 CLASS="programlisting"
2504 >&#13;   XBSA_program Tape coordinator
2505 </PRE
2506 ><P
2507 >where XBSA_program is the name of the XBSA-compliant program.</P
2508 ></DIV
2509 ></DIV
2510 ><DIV
2511 CLASS="sect1"
2512 ><H1
2513 CLASS="sect1"
2514 ><A
2515 NAME="HDRWQ296"
2516 >Backing Up Data</A
2517 ></H1
2518 ><P
2519 >This section explains how to use the <SPAN
2520 CLASS="bold"
2521 ><B
2522 CLASS="emphasis"
2523 >backup dump</B
2524 ></SPAN
2525 > command to back up AFS data to tape or
2526     to a backup data file. The instructions assume that you understand Backup System concepts and have already configured the Backup
2527     System according to the instructions in <A
2528 HREF="c12776.html"
2529 >Configuring the AFS Backup System</A
2530 >. Specifically, you
2531     must already have: <UL
2532 ><LI
2533 ><P
2534 >Decided whether to dump data to tape or to a backup data file, and configured the Tape Coordinator machine and Tape
2535           Coordinator process appropriately. See <A
2536 HREF="c12776.html#HDRWQ261"
2537 >Configuring Tape Coordinator Machines and Tape
2538           Devices</A
2539 > and <A
2540 HREF="c12776.html#HDRWQ282"
2541 >Dumping Data to a Backup Data File</A
2542 >.</P
2543 ></LI
2544 ><LI
2545 ><P
2546 >Defined a volume set that includes the volumes you want to dump together. See <A
2547 HREF="c12776.html#HDRWQ265"
2548 >Defining and
2549           Displaying Volume Sets and Volume Entries</A
2550 >.</P
2551 ></LI
2552 ><LI
2553 ><P
2554 >Defined the dump level in the dump hierarchy at which you want to dump the volume set. If it is an incremental dump
2555           level, you must have previously created a dump at its parent level. See <A
2556 HREF="c12776.html#HDRWQ267"
2557 >Defining and Displaying
2558           the Dump Hierarchy</A
2559 >.</P
2560 ></LI
2561 ><LI
2562 ><P
2563 >Created a device configuration file. Such a file is required for each tape stacker, jukebox device, or backup data
2564           file. You can also use it to configure the Backup System's automation features. See <A
2565 HREF="c12776.html#HDRWQ275"
2566 >Automating
2567           and Increasing the Efficiency of the Backup Process</A
2568 >.</P
2569 ></LI
2570 ></UL
2571 ></P
2572 ><P
2573 >The most basic way to perform a dump operation is to create an initial dump of a single volume set as soon as the
2574     appropriate Tape Coordinator is available, by providing only the required arguments to the <SPAN
2575 CLASS="bold"
2576 ><B
2577 CLASS="emphasis"
2578 >backup
2579     dump</B
2580 ></SPAN
2581 > command. Instructions appear in <A
2582 HREF="c15383.html#HDRWQ301"
2583 >To create a dump</A
2584 >. The command has several
2585     optional arguments that you can use to increase the efficiency and flexibility of your backup procedures: <UL
2586 ><LI
2587 ><P
2588 >To append a dump to the end of a set of tapes that already contains other dumps, include the <SPAN
2589 CLASS="bold"
2590 ><B
2591 CLASS="emphasis"
2592 >-append</B
2593 ></SPAN
2594 > argument. Otherwise, the Backup System creates an initial dump. Appending dumps enables you
2595           to use a tape's full capacity and has other potentially useful features. For a discussion, see <A
2596 HREF="c15383.html#HDRWQ299"
2597 >Appending Dumps to an Existing Dump Set</A
2598 >.</P
2599 ></LI
2600 ><LI
2601 ><P
2602 >To schedule one or more dump operations to run at a future time, include the <SPAN
2603 CLASS="bold"
2604 ><B
2605 CLASS="emphasis"
2606 >-at</B
2607 ></SPAN
2608 >
2609           argument. For a discussion and instructions, see <A
2610 HREF="c15383.html#HDRWQ300"
2611 >Scheduling Dumps</A
2612 >.</P
2613 ></LI
2614 ><LI
2615 ><P
2616 >To initiate a number of dump operations with a single <SPAN
2617 CLASS="bold"
2618 ><B
2619 CLASS="emphasis"
2620 >backup dump</B
2621 ></SPAN
2622 > command, include
2623           the <SPAN
2624 CLASS="bold"
2625 ><B
2626 CLASS="emphasis"
2627 >-file</B
2628 ></SPAN
2629 > argument to name a file in which you have listed the commands. For a discussion
2630           and instructions, see <A
2631 HREF="c15383.html#HDRWQ299"
2632 >Appending Dumps to an Existing Dump Set</A
2633 > and <A
2634 HREF="c15383.html#HDRWQ300"
2635 >Scheduling Dumps</A
2636 >.</P
2637 ></LI
2638 ><LI
2639 ><P
2640 >To generate a list of the volumes to be included in a dump, without actually dumping them, combine the <SPAN
2641 CLASS="bold"
2642 ><B
2643 CLASS="emphasis"
2644 >-n</B
2645 ></SPAN
2646 > flag with the other arguments to be used on the actual command.</P
2647 ></LI
2648 ></UL
2649 ></P
2650 ><DIV
2651 CLASS="sect2"
2652 ><H2
2653 CLASS="sect2"
2654 ><A
2655 NAME="HDRWQ297"
2656 >Making Backup Operations More Efficient</A
2657 ></H2
2658 ><P
2659 >There are several ways to make dump operations more efficient, less prone to error, and less disruptive to your users.
2660       Several of them also simplify the process of restoring data if that becomes necessary. <UL
2661 ><LI
2662 ><P
2663 >It is best not to dump the read/write or read-only version of a volume, because no other users or processes can
2664             access a volume while it is being dumped. Instead, shortly before the dump operation begins, create a backup version of
2665             each volume to be dumped, and dump the backup version. Creating a Backup version usually makes the source volume
2666             unavailable for just a few moments (during which access attempts by other processes are blocked but do not fail). To
2667             automate the creation of backup volumes, you can create a <SPAN
2668 CLASS="bold"
2669 ><B
2670 CLASS="emphasis"
2671 >cron</B
2672 ></SPAN
2673 > process in the <SPAN
2674 CLASS="bold"
2675 ><B
2676 CLASS="emphasis"
2677 >/usr/afs/local/BosConfig</B
2678 ></SPAN
2679 > file on one or more server machines, setting its start time at a
2680             sufficient interval before the dump operation is to begin. Include the <SPAN
2681 CLASS="bold"
2682 ><B
2683 CLASS="emphasis"
2684 >-localauth</B
2685 ></SPAN
2686 >
2687             argument to the <SPAN
2688 CLASS="bold"
2689 ><B
2690 CLASS="emphasis"
2691 >vos backup</B
2692 ></SPAN
2693 > or <SPAN
2694 CLASS="bold"
2695 ><B
2696 CLASS="emphasis"
2697 >vos backupsys</B
2698 ></SPAN
2699 > command to
2700             enable it to run without administrative tokens. For instructions, see <A
2701 HREF="c6449.html#HDRWQ162"
2702 >To create and start a new
2703             process</A
2704 >.</P
2705 ></LI
2706 ><LI
2707 ><P
2708 >The volume set, dump level, and Tape Coordinator port offset you specify on the <SPAN
2709 CLASS="bold"
2710 ><B
2711 CLASS="emphasis"
2712 >backup
2713             dump</B
2714 ></SPAN
2715 > command line must be properly defined in the Backup Database. The Backup System checks the database
2716             before beginning a dump operation and halts the command immediately if any of the required entities are missing. If
2717             necessary, use the indicated commands: <UL
2718 ><LI
2719 ><P
2720 >To display volume sets, use the <SPAN
2721 CLASS="bold"
2722 ><B
2723 CLASS="emphasis"
2724 >backup listvolsets</B
2725 ></SPAN
2726 > command as described in
2727                   <A
2728 HREF="c12776.html#HDRWQ266"
2729 >To display volume sets and volume entries</A
2730 >.</P
2731 ></LI
2732 ><LI
2733 ><P
2734 >To display dump levels, use the <SPAN
2735 CLASS="bold"
2736 ><B
2737 CLASS="emphasis"
2738 >backup listdumps</B
2739 ></SPAN
2740 > command as described in
2741                   <A
2742 HREF="c12776.html#HDRWQ271"
2743 >To display the dump hierarchy</A
2744 >.</P
2745 ></LI
2746 ><LI
2747 ><P
2748 >To display port offsets, use the <SPAN
2749 CLASS="bold"
2750 ><B
2751 CLASS="emphasis"
2752 >backup listhosts</B
2753 ></SPAN
2754 > command as described in
2755                   <A
2756 HREF="c12776.html#HDRWQ264"
2757 >To display the list of configured Tape Coordinators</A
2758 >.</P
2759 ></LI
2760 ></UL
2761 ></P
2762 ></LI
2763 ><LI
2764 ><P
2765 >Ensure that a valid token corresponding to a privileged administrative identity is available to the Backup System
2766             processes both when the <SPAN
2767 CLASS="bold"
2768 ><B
2769 CLASS="emphasis"
2770 >backup dump</B
2771 ></SPAN
2772 > command is issued and when the dump operation
2773             actually runs (for a complete description or the necessary privileges, see <A
2774 HREF="c12776.html#HDRWQ260"
2775 >Granting
2776             Administrative Privilege to Backup Operators</A
2777 >). This is a special concern for scheduled dumps. One alternative is
2778             to run <SPAN
2779 CLASS="bold"
2780 ><B
2781 CLASS="emphasis"
2782 >backup</B
2783 ></SPAN
2784 > commands (or the script that invokes them) and the <SPAN
2785 CLASS="bold"
2786 ><B
2787 CLASS="emphasis"
2788 >butc</B
2789 ></SPAN
2790 > command on server machines, and to include the <SPAN
2791 CLASS="bold"
2792 ><B
2793 CLASS="emphasis"
2794 >-localauth</B
2795 ></SPAN
2796 >
2797             argument on the command. In this case, the processes use the key with the highest key version number in the local
2798             <SPAN
2799 CLASS="bold"
2800 ><B
2801 CLASS="emphasis"
2802 >/usr/afs/etc/KeyFile</B
2803 ></SPAN
2804 > file to construct a token that never expires. Otherwise, you must
2805             use a method to renew tokens before they expire, or grant tokens with long lifetimes. In either case, you must protect
2806             against improper access to the tokens by securing the machines both physically and against unauthorized network access.
2807             The protection possibly needs to be even stronger than when a human operator is present during the operations.</P
2808 ></LI
2809 ><LI
2810 ><P
2811 >Record tape capacity and filemark size values that are as accurate as possible in the Tape Coordinator's <SPAN
2812 CLASS="bold"
2813 ><B
2814 CLASS="emphasis"
2815 >/usr/afs/backup/tapeconfig</B
2816 ></SPAN
2817 > file and on the tape's label. For suggested values and a description
2818             of what can happen when they are inaccurate, see <A
2819 HREF="c12776.html#HDRWQ258"
2820 >Configuring the tapeconfig File</A
2821 >.</P
2822 ></LI
2823 ><LI
2824 ><P
2825 >If an unattended dump requires multiple tapes, arrange to provide them by properly configuring a tape stacker or
2826             jukebox and writing a tape-mounting script to be invoked in the device's <SPAN
2827 CLASS="bold"
2828 ><B
2829 CLASS="emphasis"
2830 >CFG_</B
2831 ></SPAN
2832 >device_name file. For instructions, see <A
2833 HREF="c12776.html#HDRWQ277"
2834 >Invoking a Device's Tape
2835             Mounting and Unmounting Routines</A
2836 >.</P
2837 ></LI
2838 ><LI
2839 ><P
2840 >You can configure any tape device or backup data file's <SPAN
2841 CLASS="bold"
2842 ><B
2843 CLASS="emphasis"
2844 >CFG_</B
2845 ></SPAN
2846 >device_name file to
2847             take advantage of the Backup System's automation features. See <A
2848 HREF="c12776.html#HDRWQ275"
2849 >Automating and Increasing the
2850             Efficiency of the Backup Process</A
2851 >.</P
2852 ></LI
2853 ><LI
2854 ><P
2855 >When you issue a <SPAN
2856 CLASS="bold"
2857 ><B
2858 CLASS="emphasis"
2859 >backup</B
2860 ></SPAN
2861 > command in regular (noninteractive) mode, the command
2862             shell prompt does not return until the operation completes. To avoid having to open additional connections, issue the
2863             <SPAN
2864 CLASS="bold"
2865 ><B
2866 CLASS="emphasis"
2867 >backup dump</B
2868 ></SPAN
2869 > command in interactive mode, especially when including the <SPAN
2870 CLASS="bold"
2871 ><B
2872 CLASS="emphasis"
2873 >-at</B
2874 ></SPAN
2875 > argument to schedule dump operations.</P
2876 ></LI
2877 ><LI
2878 ><P
2879 >An incremental dump proceeds most smoothly if there is a dump created at the dump level immediately above the
2880             level you are using. If the Backup System does not find a Backup Database record for a dump created at the immediate
2881             parent level, it looks for a dump created at one level higher in the hierarchy, continuing up to the full dump level if
2882             necessary. It creates an incremental dump at the level one below the lowest valid parent dump that it finds, or even
2883             creates a full dump if that is necessary. This algorithm guarantees that the dump captures all data that has changed
2884             since the last dump, but has a couple of disadvantages. First, the Backup System's search through the database for a
2885             valid parent dump takes extra time. Second, the subsequent pattern of dumps can be confusing to a human operator who
2886             needs to restore data from them, because they were not performed at the expected dump levels.</P
2887 ><P
2888 >The easiest way to guarantee that a dump exists at the immediate parent level is always to perform dump operations
2889             on the predetermined schedule. To check that the parent dump exists, you can issue the <SPAN
2890 CLASS="bold"
2891 ><B
2892 CLASS="emphasis"
2893 >backup
2894             dumpinfo</B
2895 ></SPAN
2896 > command (as described in <A
2897 HREF="c15383.html#HDRWQ303"
2898 >To display dump records</A
2899 >) and search for it
2900             in the output. Alternatively, issue the <SPAN
2901 CLASS="bold"
2902 ><B
2903 CLASS="emphasis"
2904 >backup volinfo</B
2905 ></SPAN
2906 > command (as described in <A
2907 HREF="c15383.html#HDRWQ304"
2908 >To display a volume's dump history</A
2909 >) for a volume that you believe is in the parent
2910             dump.</P
2911 ></LI
2912 ><LI
2913 ><P
2914 >Always use dump levels from the same hierarchy (levels that are descendants of the same full level) when dumping a
2915             given volume set. The result of alternating between levels from different hierarchies can be confusing when you need to
2916             restore data or read dump records. It also increases the chance that changed data is not captured in any dump, or is
2917             backed up redundantly into more than one dump.</P
2918 ></LI
2919 ><LI
2920 ><P
2921 >Use permanent tape names rather than AFS tape names. You can make permanent names more descriptive than is allowed
2922             by an AFS tape name's strict format, and also bypass the name-checking step that the Backup System performs by default
2923             when a tape has an AFS tape name only. You can also configure the Tape Coordinator always to skip the check, however;
2924             for instructions and a description of the acceptable format for AFS tape names, see <A
2925 HREF="c12776.html#HDRWQ280"
2926 >Eliminating
2927             the AFS Tape Name Check</A
2928 >.</P
2929 ></LI
2930 ><LI
2931 ><P
2932 >If you write dumps to tape, restore operations are simplest if all of your tape devices are compatible (can read
2933             the same type of tape, at the same compression ratios, and so on). If you must use incompatible devices, then at least
2934             use compatible devices for all dumps performed at dump levels that are at the same depth in their respective hierarchies
2935             (compatible devices for all dumps performed at a full dump level, compatible devices for all dumps performed at a level
2936             1 incremental dump level, and so on). The <SPAN
2937 CLASS="bold"
2938 ><B
2939 CLASS="emphasis"
2940 >-portoffset</B
2941 ></SPAN
2942 > argument to the <SPAN
2943 CLASS="bold"
2944 ><B
2945 CLASS="emphasis"
2946 >backup diskrestore</B
2947 ></SPAN
2948 > and <SPAN
2949 CLASS="bold"
2950 ><B
2951 CLASS="emphasis"
2952 >backup volsetrestore</B
2953 ></SPAN
2954 > commands accepts
2955             multiple port offset numbers, but uses the first listed port offset when restoring all full dumps, the second port
2956             offset when restoring all level 1 dumps, and so on. If you did not use compatible tape devices when creating dumps at
2957             the same depth in a hierarchy, you must restore one volume at a time with the <SPAN
2958 CLASS="bold"
2959 ><B
2960 CLASS="emphasis"
2961 >backup
2962             volrestore</B
2963 ></SPAN
2964 > command.</P
2965 ></LI
2966 ><LI
2967 ><P
2968 >In some cases, it makes sense to use a <SPAN
2969 CLASS="emphasis"
2970 ><I
2971 CLASS="emphasis"
2972 >temporary</I
2973 ></SPAN
2974 > volume set, which exists only within the
2975             context of the interactive session in which it is created and for which no record is created in the Backup Database. One
2976             suitable situation is when dumping a volume to tape in preparation for removing it permanently (perhaps because its
2977             owner is leaving the cell). In this case, you can define a volume entry that includes only the volume of interest
2978             without cluttering up the Backup Database with a volume set record that you are using only once.</P
2979 ></LI
2980 ><LI
2981 ><P
2982 >Do not perform a dump operation when you know that there are network, machine, or server process problems that can
2983             prevent the Backup System from accessing volumes or the Volume Location Database (VLDB). Although the Backup System
2984             automatically makes a number of repeated attempts to get to an inaccessible volume, the dump operation takes extra time
2985             and in some cases stops completely to prompt you for instructions on how to continue. Furthermore, if the Backup
2986             System's last access attempt fails and the volume is omitted from the dump, you must take extra steps to have it backed
2987             up (namely, the steps described just following for a halted dump operation). For a more complete description of how the
2988             Backup System makes repeated access attempts, see <A
2989 HREF="c15383.html#HDRWQ298"
2990 >How Your Configuration Choices Influence the
2991             Dump Process</A
2992 >.</P
2993 ></LI
2994 ><LI
2995 ><P
2996 >Review the logs created by the Backup System as soon as possible after a dump operation completes, particularly if
2997             it ran unattended. They name any volumes that were not successfully backed up, among other problems. The Backup Server
2998             writes to the <SPAN
2999 CLASS="bold"
3000 ><B
3001 CLASS="emphasis"
3002 >/usr/afs/logs/BackupLog</B
3003 ></SPAN
3004 > file on the local disk of the database server
3005             machine, and you can use the <SPAN
3006 CLASS="bold"
3007 ><B
3008 CLASS="emphasis"
3009 >bos getlog</B
3010 ></SPAN
3011 > command to read it remotely if you wish; for
3012             instructions, see <A
3013 HREF="c6449.html#HDRWQ173"
3014 >Displaying Server Process Log Files</A
3015 >. The Tape Coordinator writes to
3016             two files in the local <SPAN
3017 CLASS="bold"
3018 ><B
3019 CLASS="emphasis"
3020 >/usr/afs/backup</B
3021 ></SPAN
3022 > directory on the machine where it is running:
3023             the <SPAN
3024 CLASS="bold"
3025 ><B
3026 CLASS="emphasis"
3027 >TE_</B
3028 ></SPAN
3029 >device_name file records errors, and the <SPAN
3030 CLASS="bold"
3031 ><B
3032 CLASS="emphasis"
3033 >TL_</B
3034 ></SPAN
3035 >device_name file records both trace and error messages.</P
3036 ></LI
3037 ><LI
3038 ><P
3039 >Avoid halting a dump operation (for instance, by issuing the <SPAN
3040 CLASS="bold"
3041 ><B
3042 CLASS="emphasis"
3043 >(backup) kill</B
3044 ></SPAN
3045 >
3046             command in interactive mode), both because it introduces the potential for confusion and because recovering from the
3047             interruption requires extra effort. When a dump operation is interrupted, the volumes that were backed up before the
3048             halt signal is received are complete on the tape or in the backup data file, and are usable in restore operations. The
3049             records in the Backup Database about the volumes' dump history accurately show when and at which dump level they were
3050             backed up; to display the records, use the <SPAN
3051 CLASS="bold"
3052 ><B
3053 CLASS="emphasis"
3054 >backup volinfo</B
3055 ></SPAN
3056 > command as described in <A
3057 HREF="c15383.html#HDRWQ304"
3058 >To display a volume's dump history</A
3059 >.</P
3060 ><P
3061 >However, there is no indication in the dump's Backup Database record that volumes were omitted; to display the
3062             record, use the <SPAN
3063 CLASS="bold"
3064 ><B
3065 CLASS="emphasis"
3066 >backup dumpinfo</B
3067 ></SPAN
3068 > command as described in <A
3069 HREF="c15383.html#HDRWQ303"
3070 >To
3071             display dump records</A
3072 >. You must choose one of the following methods for dealing with the volumes that were not
3073             backed up before the dump operation halted. (Actually, you must make the same decision if the dump operation halts for
3074             reasons outside your control.) <UL
3075 ><LI
3076 ><P
3077 >You can take no action, waiting until the next regularly scheduled dump operation to back them up. At that
3078                   time, the Backup System automatically dumps them at the appropriate level to guarantee that the dump captures all
3079                   of the data that changed since the volume was last dumped. However, you are gambling that restoring the volume is
3080                   not necessary before the next dump operation. If restoration is necessary, you can restore the volume only to its
3081                   state at the time it was last included in a dump--you have lost all changes made to the volume since that
3082                   time.</P
3083 ></LI
3084 ><LI
3085 ><P
3086 >You can discard the entire dump and run the dump operation again. To discard the dump, use the <SPAN
3087 CLASS="bold"
3088 ><B
3089 CLASS="emphasis"
3090 >backup labeltape</B
3091 ></SPAN
3092 > command to relabel the tapes or backup data file, which automatically
3093                   removes all associated records from the Backup Database. For instructions, see <A
3094 HREF="c12776.html#HDRWQ272"
3095 >Writing
3096                   and Reading Tape Labels</A
3097 >. If a long time has passed since the backup version of the volumes was created,
3098                   some of the source volumes have possibly changed. If that seems likely, reissue the <SPAN
3099 CLASS="bold"
3100 ><B
3101 CLASS="emphasis"
3102 >vos
3103                   backup</B
3104 ></SPAN
3105 > or <SPAN
3106 CLASS="bold"
3107 ><B
3108 CLASS="emphasis"
3109 >vos backupsys</B
3110 ></SPAN
3111 > command on them before redoing the dump
3112                   operation.</P
3113 ></LI
3114 ><LI
3115 ><P
3116 >You can create a new volume set that includes the missed volumes and dump it at a full dump level (even if
3117                   you specify an incremental dump level, the Backup System uses the full dump level at the top of your specified
3118                   level's hierarchy, because it has never before backed up these volumes as part of the new volume set). The next
3119                   time you dump the original volume set, the Backup System automatically dumps the missed volumes at the level one
3120                   below the level it used the last time it dumped the volumes as part of the original volume set.</P
3121 ></LI
3122 ></UL
3123 ></P
3124 ></LI
3125 ></UL
3126 ></P
3127 ></DIV
3128 ><DIV
3129 CLASS="sect2"
3130 ><H2
3131 CLASS="sect2"
3132 ><A
3133 NAME="HDRWQ298"
3134 >How Your Configuration Choices Influence the Dump Process</A
3135 ></H2
3136 ><P
3137 >This section provides an overview of the backup process, describing what happens at each stage both by default and as a
3138       result of your configuration choices, including the configuration instructions you include in the device-specific <SPAN
3139 CLASS="bold"
3140 ><B
3141 CLASS="emphasis"
3142 >CFG_</B
3143 ></SPAN
3144 >device_name file. For the sake of clarity, it tracks the progress of a single <SPAN
3145 CLASS="bold"
3146 ><B
3147 CLASS="emphasis"
3148 >backup dump</B
3149 ></SPAN
3150 > command that creates an initial dump. For a discussion of the slight differences in the
3151       procedure when you append or schedule dumps, see <A
3152 HREF="c15383.html#HDRWQ299"
3153 >Appending Dumps to an Existing Dump Set</A
3154 > or
3155       <A
3156 HREF="c15383.html#HDRWQ300"
3157 >Scheduling Dumps</A
3158 >.</P
3159 ><P
3160 >As a concrete example, the following description traces a dump of the volume set <SPAN
3161 CLASS="bold"
3162 ><B
3163 CLASS="emphasis"
3164 >user</B
3165 ></SPAN
3166 >
3167       at the <SPAN
3168 CLASS="bold"
3169 ><B
3170 CLASS="emphasis"
3171 >/weekly/mon/tues/wed</B
3172 ></SPAN
3173 > dump level. The <SPAN
3174 CLASS="bold"
3175 ><B
3176 CLASS="emphasis"
3177 >user</B
3178 ></SPAN
3179 > volume set
3180       has one volume entry that matches the backup version of all user volumes:</P
3181 ><PRE
3182 CLASS="programlisting"
3183 >&#13;        <SPAN
3184 CLASS="bold"
3185 ><B
3186 CLASS="emphasis"
3187 >.*    .*    user.*\.backup</B
3188 ></SPAN
3189 >
3190       </PRE
3191 ><P
3192 >The dump level belongs to the following dump hierarchy.</P
3193 ><PRE
3194 CLASS="programlisting"
3195 >&#13;   /weekly
3196           /mon
3197               /tues
3198                    /wed
3199                        /thurs
3200                              /fri
3201 </PRE
3202 ><OL
3203 TYPE="1"
3204 ><LI
3205 ><P
3206 ><A
3207 NAME="LIBKOV-BUTC"
3208 ></A
3209 >You issue the <SPAN
3210 CLASS="bold"
3211 ><B
3212 CLASS="emphasis"
3213 >butc</B
3214 ></SPAN
3215 > command to start a Tape Coordinator
3216           to handle the dump operation. The Tape Coordinator does not have to be running when you issue the <SPAN
3217 CLASS="bold"
3218 ><B
3219 CLASS="emphasis"
3220 >backup dump</B
3221 ></SPAN
3222 > command, but must be active in time to accept the list of volumes to be included in the
3223           dump, when Step <A
3224 HREF="c15383.html#LIBKOV-VOLMATCHES"
3225 >3</A
3226 > is completed. To avoid coordination problems, it is best to
3227           start the Tape Coordinator before issuing the <SPAN
3228 CLASS="bold"
3229 ><B
3230 CLASS="emphasis"
3231 >backup dump</B
3232 ></SPAN
3233 > command.</P
3234 ><P
3235 >As the Tape Coordinator initializes, it reads the entry in its local <SPAN
3236 CLASS="bold"
3237 ><B
3238 CLASS="emphasis"
3239 >/usr/afs/backup/tapeconfig</B
3240 ></SPAN
3241 > file for the port offset you specify on the <SPAN
3242 CLASS="bold"
3243 ><B
3244 CLASS="emphasis"
3245 >butc</B
3246 ></SPAN
3247 > command line. The entry specifies the name of the device to use, and the Tape Coordinator
3248           verifies that it can access it. It also reads the device's configuration file, <SPAN
3249 CLASS="bold"
3250 ><B
3251 CLASS="emphasis"
3252 >/usr/afs/backup/CFG_</B
3253 ></SPAN
3254 >device_name, if it exists. See Step <A
3255 HREF="c15383.html#LIBKOV-READCFG"
3256 >6</A
3257 > for
3258           a description of how the instructions in the file influence the dump operation.</P
3259 ></LI
3260 ><LI
3261 ><P
3262 >You issue the <SPAN
3263 CLASS="bold"
3264 ><B
3265 CLASS="emphasis"
3266 >backup dump</B
3267 ></SPAN
3268 > command, specifying a volume set, dump level, and the
3269           same port offset number you specified on the <SPAN
3270 CLASS="bold"
3271 ><B
3272 CLASS="emphasis"
3273 >butc</B
3274 ></SPAN
3275 > command in Step <A
3276 HREF="c15383.html#LIBKOV-BUTC"
3277 >1</A
3278 >. The Backup System verifies that they have correct Backup Database records and halts the
3279           operation with an error message if they do not.</P
3280 ><P
3281 >If you issue the command in interactive mode, the Backup System assigns the operation a job ID number, which you can
3282           use to check the operation's status or halt it by using the <SPAN
3283 CLASS="bold"
3284 ><B
3285 CLASS="emphasis"
3286 >(backup) jobs</B
3287 ></SPAN
3288 > or <SPAN
3289 CLASS="bold"
3290 ><B
3291 CLASS="emphasis"
3292 >(backup) kill</B
3293 ></SPAN
3294 > command, respectively. For instructions, see <A
3295 HREF="c15383.html#HDRWQ289"
3296 >To display
3297           pending or running jobs in interactive mode</A
3298 > and <A
3299 HREF="c15383.html#HDRWQ290"
3300 >To cancel operations in interactive
3301           mode</A
3302 >.</P
3303 ></LI
3304 ><LI
3305 ><P
3306 ><A
3307 NAME="LIBKOV-VOLMATCHES"
3308 ></A
3309 >The Backup System works with the VL Server to generate a list of the volumes in the
3310           VLDB that match the name and location criteria defined in the volume set's volume entries. If a volume matches more than
3311           one volume entry, the Backup System ignores the duplicates so that the dump includes only one copy of data from the
3312           volume.</P
3313 ><P
3314 >To reduce the number of times you need to switch tapes during a restore operation, the Backup System sorts the
3315           volumes by server machine and partition, and during the dump operation writes the data from all volumes stored on a
3316           specific partition before moving to the next partition.</P
3317 ><P
3318 >As previously mentioned, it is best to back up backup volumes rather than read/write volumes, to avoid blocking
3319           users' access to data during the dump. To achieve this, you must explicitly include the <SPAN
3320 CLASS="bold"
3321 ><B
3322 CLASS="emphasis"
3323 >.backup</B
3324 ></SPAN
3325 > suffix on the volume names in volume entry definitions. For instructions, and to learn how
3326           to define volume entries that match multiple volumes, see <A
3327 HREF="c12776.html#HDRWQ265"
3328 >Defining and Displaying Volume Sets and
3329           Volume Entries</A
3330 >.</P
3331 ><P
3332 >In the example, suppose that 50 volumes match the <SPAN
3333 CLASS="bold"
3334 ><B
3335 CLASS="emphasis"
3336 >user</B
3337 ></SPAN
3338 > volume set criteria,
3339           including three called <SPAN
3340 CLASS="bold"
3341 ><B
3342 CLASS="emphasis"
3343 >user.pat.backup</B
3344 ></SPAN
3345 >, <SPAN
3346 CLASS="bold"
3347 ><B
3348 CLASS="emphasis"
3349 >user.terry.backup</B
3350 ></SPAN
3351 >, and <SPAN
3352 CLASS="bold"
3353 ><B
3354 CLASS="emphasis"
3355 >user.smith.backup</B
3356 ></SPAN
3357 >.</P
3358 ></LI
3359 ><LI
3360 ><P
3361 ><A
3362 NAME="LIBKOV-CLONEDATE"
3363 ></A
3364 >The Backup System next scans the dump hierarchy for the dump level you have
3365           specified on the <SPAN
3366 CLASS="bold"
3367 ><B
3368 CLASS="emphasis"
3369 >backup dump</B
3370 ></SPAN
3371 > command line. If it is a full level, then in the current
3372           operation the Backup System backs up all of the data in all of the volumes in the list obtained in Step <A
3373 HREF="c15383.html#LIBKOV-VOLMATCHES"
3374 >3</A
3375 >.</P
3376 ><P
3377 >If the dump level is incremental, the Backup System reads each volume's dump history in the Backup Database to learn
3378           which of the parent levels in its pathname was used when the volume was most recently backed up as part of this volume
3379           set. In the usual case, it is the current dump level's immediate parent level.</P
3380 ><P
3381 >An incremental dump of a volume includes only the data that changed since the volume was included in the parent
3382           dump. To determine which data are eligible, the Backup System uses the concept of a volume's <SPAN
3383 CLASS="emphasis"
3384 ><I
3385 CLASS="emphasis"
3386 >clone
3387           date</I
3388 ></SPAN
3389 >. A read/write volume's clone date is when the Backup System locks the volume before copying its contents
3390           into a dump. A backup volume's clone date is the completion time of the operation that created it by cloning its
3391           read/write source volume (the operation initiated by a <SPAN
3392 CLASS="bold"
3393 ><B
3394 CLASS="emphasis"
3395 >vos backup</B
3396 ></SPAN
3397 > or <SPAN
3398 CLASS="bold"
3399 ><B
3400 CLASS="emphasis"
3401 >vos backupsys</B
3402 ></SPAN
3403 > command). A read-only volume's clone date is the time of the release operation
3404           (initiated by the <SPAN
3405 CLASS="bold"
3406 ><B
3407 CLASS="emphasis"
3408 >vos release</B
3409 ></SPAN
3410 > command) that completed most recently before the dump
3411           operation.</P
3412 ><P
3413 >More precisely then, an incremental dump includes only data that have a modification timestamp between the clone
3414           date of the volume included in the parent dump (the <SPAN
3415 CLASS="emphasis"
3416 ><I
3417 CLASS="emphasis"
3418 >parent clone date</I
3419 ></SPAN
3420 >) and the clone date of the
3421           volume to be included in the current dump (the <SPAN
3422 CLASS="emphasis"
3423 ><I
3424 CLASS="emphasis"
3425 >current clone date</I
3426 ></SPAN
3427 >).</P
3428 ><P
3429 >There are some common exceptions to the general rule that a volume's parent dump is the dump created at the
3430           immediate parent level: <UL
3431 ><LI
3432 ><P
3433 >The volume did not exist at all at the time of the last dump. In this case, the Backup System automatically
3434                 does a full dump of it.</P
3435 ></LI
3436 ><LI
3437 ><P
3438 >The volume did not match the volume set's name and location criteria at the time of the last dump. In this
3439                 case, the Backup System automatically does a full dump of it, even if it was backed up recently (fully or
3440                 incrementally) as part of another volume set. This redundancy is an argument for defining volume entries in terms of
3441                 names rather than locations, particularly if you move volumes frequently.</P
3442 ></LI
3443 ><LI
3444 ><P
3445 >The volume was not included in the dump at the immediate parent level for some reason (perhaps a process,
3446                 machine, or network access prevented the Backup System from accessing it). In this case, the Backup System sets the
3447                 clone date to the time of the last dump operation that included the volume. If the volume was not included in a dump
3448                 performed at any of the levels in the current level's pathname, the Backup System does a full dump of it.</P
3449 ></LI
3450 ></UL
3451 ></P
3452 ><P
3453 >In the example, the current dump level is <SPAN
3454 CLASS="bold"
3455 ><B
3456 CLASS="emphasis"
3457 >/weekly/mon/tues/wed</B
3458 ></SPAN
3459 >. The <SPAN
3460 CLASS="bold"
3461 ><B
3462 CLASS="emphasis"
3463 >user.pat.backup</B
3464 ></SPAN
3465 > and <SPAN
3466 CLASS="bold"
3467 ><B
3468 CLASS="emphasis"
3469 >user.terry.backup</B
3470 ></SPAN
3471 > volumes were included in the
3472           dump performed yesterday, Tuesday, at the <SPAN
3473 CLASS="bold"
3474 ><B
3475 CLASS="emphasis"
3476 >/weekly/mon/tues</B
3477 ></SPAN
3478 > level. The Backup System uses
3479           as their parent clone date 3:00 a.m. on Tuesday, which is when backup versions of them were created just before Tuesday's
3480           dump operation. However, Tuesday's dump did not include the <SPAN
3481 CLASS="bold"
3482 ><B
3483 CLASS="emphasis"
3484 >user.smith.backup</B
3485 ></SPAN
3486 > volume for
3487           some reason. The last time it was included in a dump was Monday, at the <SPAN
3488 CLASS="bold"
3489 ><B
3490 CLASS="emphasis"
3491 >/weekly/mon</B
3492 ></SPAN
3493 >
3494           level. The Backup System uses a parent clone date of Monday at 2:47 a.m., which is when a backup version of the volume was
3495           created just before the dump operation on Monday.</P
3496 ></LI
3497 ><LI
3498 ><P
3499 >If performing an incremental dump, the Backup System works with the Volume Server to prepare a list of all of the
3500           files in each volume that have changed (have modification timestamps) between the parent clone date and the current clone
3501           date. The dump includes the complete contents of every such file. If a file has not changed, the dump includes only a
3502           placeholder stub for it. The dump also includes a copy of the complete directory structure in the volume, whether or not
3503           it has changed since the previous dump.</P
3504 ><P
3505 >If none of the data in the volume has changed since the last dump, the Backup System omits the volume completely. It
3506           generates the following message in the Tape Coordinator window and log files:</P
3507 ><PRE
3508 CLASS="programlisting"
3509 >&#13;   Volume volume_name (volume_ID) not dumped - has not been modified 
3510       since last dump.
3511 </PRE
3512 ></LI
3513 ><LI
3514 ><P
3515 ><A
3516 NAME="LIBKOV-READCFG"
3517 ></A
3518 >The Tape Coordinator prepares to back up the data. If there is a <SPAN
3519 CLASS="bold"
3520 ><B
3521 CLASS="emphasis"
3522 >CFG_</B
3523 ></SPAN
3524 >device_name file, the Tape Coordinator already read it in Step <A
3525 HREF="c15383.html#LIBKOV-BUTC"
3526 >1</A
3527 >. The following list describes how the instructions in the file guide the Tape Coordinator's
3528           behavior at this point: <DIV
3529 CLASS="variablelist"
3530 ><DL
3531 ><DT
3532 ><SPAN
3533 CLASS="bold"
3534 ><B
3535 CLASS="emphasis"
3536 >FILE</B
3537 ></SPAN
3538 ></DT
3539 ><DD
3540 ><P
3541 >If this instruction is set to <SPAN
3542 CLASS="bold"
3543 ><B
3544 CLASS="emphasis"
3545 >YES</B
3546 ></SPAN
3547 >, the Tape Coordinator writes data to a
3548                   backup data file. The device_name field in the <SPAN
3549 CLASS="bold"
3550 ><B
3551 CLASS="emphasis"
3552 >tapeconfig</B
3553 ></SPAN
3554 > file must also specify
3555                   a filename for the dump to work properly. For further discussion and instructions on configuring a backup data
3556                   file, see <A
3557 HREF="c12776.html#HDRWQ282"
3558 >Dumping Data to a Backup Data File</A
3559 >.</P
3560 ><P
3561 >If it is set to <SPAN
3562 CLASS="bold"
3563 ><B
3564 CLASS="emphasis"
3565 >NO</B
3566 ></SPAN
3567 > or does not appear in the file, the Tape Coordinator
3568                   writes to a tape device.</P
3569 ></DD
3570 ><DT
3571 ><SPAN
3572 CLASS="bold"
3573 ><B
3574 CLASS="emphasis"
3575 >MOUNT and UNMOUNT</B
3576 ></SPAN
3577 ></DT
3578 ><DD
3579 ><P
3580 >If there is a <SPAN
3581 CLASS="bold"
3582 ><B
3583 CLASS="emphasis"
3584 >MOUNT</B
3585 ></SPAN
3586 > instruction in the file, each time the Tape Coordinator
3587                   needs a new tape, it invokes the indicated script or program to mount a tape in the device's tape drive. There
3588                   must be a <SPAN
3589 CLASS="bold"
3590 ><B
3591 CLASS="emphasis"
3592 >MOUNT</B
3593 ></SPAN
3594 > instruction if you want to utilize a tape stacker or jukebox's
3595                   ability to switch between tapes automatically. If there is no <SPAN
3596 CLASS="bold"
3597 ><B
3598 CLASS="emphasis"
3599 >MOUNT</B
3600 ></SPAN
3601 > instruction,
3602                   the Tape Coordinator prompts the human operator whenever it needs a tape.</P
3603 ><P
3604 >The <SPAN
3605 CLASS="bold"
3606 ><B
3607 CLASS="emphasis"
3608 >AUTOQUERY</B
3609 ></SPAN
3610 > instruction, which is described just following, modifies the
3611                   Tape Coordinator's tape acquisition procedure for the first tape it needs in a dump operation.</P
3612 ><P
3613 >If there is an <SPAN
3614 CLASS="bold"
3615 ><B
3616 CLASS="emphasis"
3617 >UNMOUNT</B
3618 ></SPAN
3619 > instruction, then the Tape Coordinator invokes the
3620                   indicated script or program whenever it closes the tape device. Not all tape devices have a separate tape
3621                   unmounting routine, in which case the <SPAN
3622 CLASS="bold"
3623 ><B
3624 CLASS="emphasis"
3625 >UNMOUNT</B
3626 ></SPAN
3627 > instruction is not necessary. For
3628                   more details on both instructions, see <A
3629 HREF="c12776.html#HDRWQ277"
3630 >Invoking a Device's Tape Mounting and Unmounting
3631                   Routines</A
3632 >.</P
3633 ></DD
3634 ><DT
3635 ><SPAN
3636 CLASS="bold"
3637 ><B
3638 CLASS="emphasis"
3639 >AUTOQUERY</B
3640 ></SPAN
3641 ></DT
3642 ><DD
3643 ><P
3644 >If this instruction is set to <SPAN
3645 CLASS="bold"
3646 ><B
3647 CLASS="emphasis"
3648 >NO</B
3649 ></SPAN
3650 >, the Tape Coordinator assumes that the
3651                   first tape needed for the dump operation is already in the tape drive. It does not use its usual tape acquisition
3652                   procedure as described in the preceding discussion of the <SPAN
3653 CLASS="bold"
3654 ><B
3655 CLASS="emphasis"
3656 >MOUNT</B
3657 ></SPAN
3658 > instruction. You
3659                   can achieve the same effect by including the <SPAN
3660 CLASS="bold"
3661 ><B
3662 CLASS="emphasis"
3663 >-noautoquery</B
3664 ></SPAN
3665 > flag to the <SPAN
3666 CLASS="bold"
3667 ><B
3668 CLASS="emphasis"
3669 >butc</B
3670 ></SPAN
3671 > command.</P
3672 ><P
3673 >If this instruction is absent or set to <SPAN
3674 CLASS="bold"
3675 ><B
3676 CLASS="emphasis"
3677 >YES</B
3678 ></SPAN
3679 >, the Tape Coordinator uses its
3680                   usual tape acquisition procedure even for the first tape. For more details, see <A
3681 HREF="c12776.html#HDRWQ278"
3682 >Eliminating the Search or Prompt for the Initial Tape</A
3683 >.</P
3684 ></DD
3685 ><DT
3686 ><SPAN
3687 CLASS="bold"
3688 ><B
3689 CLASS="emphasis"
3690 >BUFFERSIZE</B
3691 ></SPAN
3692 ></DT
3693 ><DD
3694 ><P
3695 >If this instruction appears in the file, the Tape Coordinator sets its buffer size to the specified value
3696                   rather than using the default buffer size of 16 KB. For further discussion, see <A
3697 HREF="c12776.html#HDRWQ281"
3698 >Setting
3699                   the Memory Buffer Size to Promote Tape Streaming</A
3700 >.</P
3701 ></DD
3702 ></DL
3703 ></DIV
3704 ></P
3705 ><P
3706 >If there is no <SPAN
3707 CLASS="bold"
3708 ><B
3709 CLASS="emphasis"
3710 >CFG_</B
3711 ></SPAN
3712 >device_name file, the Tape Coordinator writes data to a tape
3713           device and prompts the human operator each time it needs a tape (the only exception being the first tape if you include
3714           the <SPAN
3715 CLASS="bold"
3716 ><B
3717 CLASS="emphasis"
3718 >-noautoquery</B
3719 ></SPAN
3720 > flag to the <SPAN
3721 CLASS="bold"
3722 ><B
3723 CLASS="emphasis"
3724 >butc</B
3725 ></SPAN
3726 > command).</P
3727 ></LI
3728 ><LI
3729 ><P
3730 ><A
3731 NAME="LIBKOV-NAMECHECK"
3732 ></A
3733 >The Tape Coordinator opens either a tape drive or backup data file at this point, as
3734           directed by the instructions in the <SPAN
3735 CLASS="bold"
3736 ><B
3737 CLASS="emphasis"
3738 >CFG_</B
3739 ></SPAN
3740 >device_name file (described in Step <A
3741 HREF="c15383.html#LIBKOV-READCFG"
3742 >6</A
3743 >). The instructions also determine whether it invokes a mount script or prompts the
3744           operator. In Step <A
3745 HREF="c15383.html#LIBKOV-BUTC"
3746 >1</A
3747 > the Tape Coordinator read in the device's capacity and filemark
3748           size from the <SPAN
3749 CLASS="bold"
3750 ><B
3751 CLASS="emphasis"
3752 >tapeconfig</B
3753 ></SPAN
3754 > file. It now reads the same values from the tape or backup data
3755           file's magnetic label, and overwrites the <SPAN
3756 CLASS="bold"
3757 ><B
3758 CLASS="emphasis"
3759 >tapeconfig</B
3760 ></SPAN
3761 > values if there is a
3762           difference.</P
3763 ><P
3764 >If creating an initial dump (as in the current example) and there is no permanent name on the label, the Tape
3765           Coordinator next checks that the AFS tape name has one of the three acceptable formats. If not, it rejects the tape and
3766           you must use the <SPAN
3767 CLASS="bold"
3768 ><B
3769 CLASS="emphasis"
3770 >backup labeltape</B
3771 ></SPAN
3772 > command to write an acceptable name. You can bypass
3773           this name-checking step by including the <SPAN
3774 CLASS="bold"
3775 ><B
3776 CLASS="emphasis"
3777 >NAME_CHECK NO</B
3778 ></SPAN
3779 > instruction in the <SPAN
3780 CLASS="bold"
3781 ><B
3782 CLASS="emphasis"
3783 >CFG_</B
3784 ></SPAN
3785 >device_name file. For discussion and a list of the acceptable AFS tape name values, see <A
3786 HREF="c12776.html#HDRWQ280"
3787 >Eliminating the AFS Tape Name Check</A
3788 >.</P
3789 ></LI
3790 ><LI
3791 ><P
3792 ><A
3793 NAME="LIBKOV-EXPDATE"
3794 ></A
3795 >For an initial dump, the Tape Coordinator starts writing at the beginning of the tape
3796           or backup dump file, overwriting any existing data. To prevent inappropriate overwriting, the Backup System first checks
3797           the Backup Database for any dump records associated with the name (permanent or AFS tape name) on the tape or backup dump
3798           file's label. It refuses to write to a backup data file that has unexpired dumps in it, or to a tape that belongs to a
3799           dump set with any unexpired dumps. To recycle a file or tape before all dumps have expired, you must use the <SPAN
3800 CLASS="bold"
3801 ><B
3802 CLASS="emphasis"
3803 >backup labeltape</B
3804 ></SPAN
3805 > command to relabel it. Doing so removes the Backup Database records of all dumps
3806           in the file or on all tapes in the dump set, which makes it impossible to restore data from any of the tapes. For more
3807           information on expiration dates, see <A
3808 HREF="c12776.html#HDRWQ270"
3809 >Defining Expiration Dates</A
3810 >.</P
3811 ><P
3812 >The Tape Coordinator also checks for two other types of inappropriate tape reuse. The tape cannot already have data
3813           on it that belongs to the dump currently being performed, because that implies that the previous tape is still in the
3814           drive, or you have mistakenly reinserted it. The Tape Coordinator generates the following message and attempts to obtain
3815           another tape:</P
3816 ><PRE
3817 CLASS="programlisting"
3818 >&#13;   Can't overwrite tape containing the dump in progress
3819 </PRE
3820 ><P
3821 >The tape cannot contain data from a parent dump of the current (incremental) dump, because overwriting a parent dump
3822           makes it impossible to restore data from the current dump. The Tape Coordinator generates the following message and
3823           attempts to obtain another tape:</P
3824 ><PRE
3825 CLASS="programlisting"
3826 >&#13;   Can't overwrite the parent dump parent_name (parent_dump_ID)
3827 </PRE
3828 ></LI
3829 ><LI
3830 ><P
3831 ><A
3832 NAME="LIBKOV-WRITE"
3833 ></A
3834 >The Tape Coordinator now writes data to the tape or backup data file. It uses the
3835           capacity and filemark size it obtained in Step <A
3836 HREF="c15383.html#LIBKOV-NAMECHECK"
3837 >7</A
3838 > as it tracks how much more space
3839           is available, automatically using its tape acquisition procedure if the dump is not finished when it reaches the end of
3840           the tape. For a more detailed description, and a discussion of what happens if the Tape Coordinator reaches the physical
3841           end-of-tape unexpectedly, see <A
3842 HREF="c12776.html#HDRWQ258"
3843 >Configuring the tapeconfig File</A
3844 >. Similarly, for instructions
3845           on configuring a backup data file to optimize recovery from unexpectedly running out of space, see Step <A
3846 HREF="c12776.html#LITAPECONFIG-FILE"
3847 >6</A
3848 > in the instructions in <A
3849 HREF="c12776.html#HDRWQ282"
3850 >Dumping Data to a Backup Data
3851           File</A
3852 >.</P
3853 ><P
3854 >If the Tape Coordinator cannot access a volume during the dump (perhaps because of a server process, machine, or
3855           network outage), it skips the volume and continues dumping all volumes that it can access. It generates an error message
3856           in the Tape Coordinator window and log file about the omitted volume. It generates a similar message if it discovers that
3857           a backup volume has not been recloned since the previous dump operation (that is, that the volume's current clone date is
3858           the same as its parent clone date):</P
3859 ><PRE
3860 CLASS="programlisting"
3861 >&#13;   Volume volume_name (volume_ID) not dumped - has not been re-cloned 
3862        since last dump.
3863 </PRE
3864 ><P
3865 >After completing a first pass through all of the volumes, it attempts to dump each omitted volume again. It first
3866           checks to see if the reason that the volume was inaccessible during the first pass is that it has been moved since the VL
3867           Server generated the list of volumes to dump in Step <A
3868 HREF="c15383.html#LIBKOV-VOLMATCHES"
3869 >3</A
3870 >. If so, it dumps the
3871           volume from its new site. If the second attempt to access a volume also fails, the Tape Coordinator it generates the
3872           following message, prompting you for instruction on how to proceed:</P
3873 ><PRE
3874 CLASS="programlisting"
3875 >&#13;   Dump of volume volume_name (volume_ID) failed
3876    Please select action to be taken for this volume.
3877       r - retry, try dumping this volume again
3878       o - omit, this volume from this dump
3879       a - abort, the entire dump
3880 </PRE
3881 ><P
3882 >To increase the automation of the dump process, you can include the <SPAN
3883 CLASS="bold"
3884 ><B
3885 CLASS="emphasis"
3886 >ASK NO</B
3887 ></SPAN
3888 >
3889           instruction in the <SPAN
3890 CLASS="bold"
3891 ><B
3892 CLASS="emphasis"
3893 >CFG_</B
3894 ></SPAN
3895 >device_name file to suppress this prompt and have the Tape
3896           Coordinator automatically omit the volume from the dump.</P
3897 ><P
3898 >If you are tracking the dump as it happens, the prompt enables you to take corrective action. If the volume has not
3899           been recloned, you can issue the <SPAN
3900 CLASS="bold"
3901 ><B
3902 CLASS="emphasis"
3903 >vos backup</B
3904 ></SPAN
3905 > command. If the volume is inaccessible, you
3906           can investigate and attempt to resolve the cause.</P
3907 ></LI
3908 ><LI
3909 ><P
3910 >If the tape or backup data file does not already have an AFS tape name, the Backup System constructs the appropriate
3911           one and records it on the label and in the Backup Database. It also assigns a dump name and ID number to the dump and
3912           records them in dump record that it creates in the Backup Database. For details on tape and dump names, see <A
3913 HREF="c12776.html#HDRWQ253"
3914 >Dump Names and Tape Names</A
3915 >. For instructions on displaying dump records or a volume's dump
3916           history, or scanning the contents of a tape, see <A
3917 HREF="c15383.html#HDRWQ302"
3918 >Displaying Backup Dump Records</A
3919 >.</P
3920 ></LI
3921 ></OL
3922 ></DIV
3923 ><DIV
3924 CLASS="sect2"
3925 ><H2
3926 CLASS="sect2"
3927 ><A
3928 NAME="HDRWQ299"
3929 >Appending Dumps to an Existing Dump Set</A
3930 ></H2
3931 ><P
3932 >The AFS Backup System enables you to append dumps to the end of the final tape in a dump set by including the <SPAN
3933 CLASS="bold"
3934 ><B
3935 CLASS="emphasis"
3936 >-append</B
3937 ></SPAN
3938 > flag to the <SPAN
3939 CLASS="bold"
3940 ><B
3941 CLASS="emphasis"
3942 >backup dump</B
3943 ></SPAN
3944 > command. Appending dumps improves
3945       Backup System automation and efficiency in several ways: <UL
3946 ><LI
3947 ><P
3948 >It maximizes use of a tape's capacity. An initial dump must always start on a new tape, but does not necessarily
3949             extend to the end of the final tape in the dump set. You can fill up the unused tape by appending one or more
3950             dumps.</P
3951 ></LI
3952 ><LI
3953 ><P
3954 >It can reduce the number of tapes and tape changes needed to complete a dump operation. Rather than performing a
3955             series of initial dumps first, instead begin with an initial dump and follow it immediately with several appended dumps.
3956             In this way you can write all dumps in the series to the same tape (assuming the tape is large enough to accommodate
3957             them all). If, in contrast, you perform all of the initial dumps first, each must begin on a new tape and you must
3958             switch tapes again if you then want to append dumps.</P
3959 ><P
3960 >You can either issue the appropriate series of <SPAN
3961 CLASS="bold"
3962 ><B
3963 CLASS="emphasis"
3964 >backup dump</B
3965 ></SPAN
3966 > commands at the
3967             interactive <SAMP
3968 CLASS="computeroutput"
3969 >backup&#62;</SAMP
3970 > prompt, or record them in a file that you then name with the
3971             <SPAN
3972 CLASS="bold"
3973 ><B
3974 CLASS="emphasis"
3975 >-file</B
3976 ></SPAN
3977 > argument to the <SPAN
3978 CLASS="bold"
3979 ><B
3980 CLASS="emphasis"
3981 >backup dump</B
3982 ></SPAN
3983 > command. Appending
3984             dumps in this way enables you to run multiple unattended backup operations even without a tape stacker or jukebox, if
3985             all of the dumps fit on one tape.</P
3986 ></LI
3987 ><LI
3988 ><P
3989 >It can reduce the number of tape changes during a restore operation. For example, if you append all of the
3990             incremental dumps of a volume set to tapes in one dump set, then restoring a volume from the volume set requires a
3991             minimum number of tape changes. It is best not to append incremental dumps to a tape that contains the parent full dump,
3992             however: if the tape is lost or damaged, you lose all of the data from the volume.</P
3993 ><P
3994 >Although it can be efficient to group together appended dumps that are related, the Backup System does not require
3995             any relationship between the appended dumps on a tape or in a dump set.</P
3996 ></LI
3997 ></UL
3998 ></P
3999 ><P
4000 >When writing an appended dump, the Backup System performs most of the steps described in <A
4001 HREF="c15383.html#HDRWQ298"
4002 >How
4003       Your Configuration Choices Influence the Dump Process</A
4004 >. Appended dumps do not have to be related to one another or the
4005       initial dump, so it skips Step <A
4006 HREF="c15383.html#LIBKOV-NAMECHECK"
4007 >7</A
4008 >: there is no need to check that the AFS tape name
4009       reflects the volume set and dump level names in this case. It also skips Step <A
4010 HREF="c15383.html#LIBKOV-EXPDATE"
4011 >8</A
4012 >. Because
4013       it is not overwriting any existing data on the tape, it does not need to check the expiration dates of existing dumps on the
4014       tape or in the file. Then in Step <A
4015 HREF="c15383.html#LIBKOV-WRITE"
4016 >9</A
4017 > the Tape Coordinator scans to the end of the last dump
4018       on the tape or in the backup data file before it begins writing data.</P
4019 ><P
4020 >The Backup System imposes the following conditions on appended dumps: <UL
4021 ><LI
4022 ><P
4023 >If writing to tape, the Tape Coordinator checks that it is the final one in a dump set for which there are
4024             complete and valid tape and dump records in the Backup Database. If not, it rejects the tape and requests an acceptable
4025             one. If you believe the tape has valid data on it, you can reconstruct the Backup Database dump records for it by using
4026             the <SPAN
4027 CLASS="bold"
4028 ><B
4029 CLASS="emphasis"
4030 >-dbadd</B
4031 ></SPAN
4032 > argument to the <SPAN
4033 CLASS="bold"
4034 ><B
4035 CLASS="emphasis"
4036 >backup scantape</B
4037 ></SPAN
4038 > command as
4039             instructed in <A
4040 HREF="c15383.html#HDRWQ305"
4041 >To scan the contents of a tape</A
4042 >.</P
4043 ></LI
4044 ><LI
4045 ><P
4046 >The most recent dump on the tape or in the backup data file must have completed successfully.</P
4047 ></LI
4048 ><LI
4049 ><P
4050 >The dump set to which the tape or file belongs must begin with an initial dump that is recorded in the Backup
4051             Database. If there are no dumps on the current tape, then the Backup System treats the dump operation as an initial dump
4052             and imposes the relevant requirements (for example, checks the AFS tape name if appropriate).</P
4053 ></LI
4054 ></UL
4055 ></P
4056 ><P
4057 >As you append dumps, keep in mind that all of a dump set's dump and tape records in the Backup Database are indexed to
4058       the initial dump. If you want to delete an appended dump's record, you must delete the initial dump record, and doing so
4059       erases the records of all dumps in the dump set. Without those records, you cannot restore any of the data in the dump
4060       set.</P
4061 ><P
4062 >Similarly, all of the dumps in a dump set must expire before you can recycle (write a new initial dump to) any of the
4063       tapes in a dump set. Do not append a dump if its expiration date is later than the date on which you want to recycle any of
4064       the tapes in its dump set. To recycle a tape before the last expiration date, you must delete the initial dump's record from
4065       the Backup Database. Either use the <SPAN
4066 CLASS="bold"
4067 ><B
4068 CLASS="emphasis"
4069 >backup labeltape</B
4070 ></SPAN
4071 > command to relabel the tape as
4072       instructed in <A
4073 HREF="c12776.html#HDRWQ273"
4074 >To label a tape</A
4075 >, or use the <SPAN
4076 CLASS="bold"
4077 ><B
4078 CLASS="emphasis"
4079 >backup deletedump</B
4080 ></SPAN
4081 >
4082       command to delete the record directly as instructed in <A
4083 HREF="c15383.html#HDRWQ322"
4084 >To delete dump records from the Backup
4085       Database</A
4086 >.</P
4087 ><P
4088 >Although in theory you can append as many dumps as you wish, it generally makes sense to limit the number of tapes in a
4089       dump set (for example, to five), for these reasons: <UL
4090 ><LI
4091 ><P
4092 >If an unreadable spot develops on one of the tapes in a dump set, it can prevent the Tape Coordinator from
4093             scanning the tape as part of a <SPAN
4094 CLASS="bold"
4095 ><B
4096 CLASS="emphasis"
4097 >backup scantape</B
4098 ></SPAN
4099 > operation you use to reconstruct Backup
4100             Database records. The Tape Coordinator can almost always scan the tape successfully up to the point of damage and can
4101             usually skip past minor damage. A scanning operation can start on any tape in a dump set, so damage on one tape does not
4102             prevent scanning of the others in the dump set. However, you can scan only the tapes that precede the damaged one in the
4103             dump set or the ones that follow the damaged one, but not both. (For more information on using tapes to reconstruct the
4104             information in the Backup Database, see <A
4105 HREF="c15383.html#HDRWQ305"
4106 >To scan the contents of a tape</A
4107 >.)</P
4108 ><P
4109 >An unreadable bad spot can also prevent you from restoring a volume completely, because restore operations must
4110             begin with the full dump and continue with each incremental dump in order. If you cannot restore a specific dump, you
4111             cannot restore any data from later incremental dumps.</P
4112 ></LI
4113 ><LI
4114 ><P
4115 >If you decide in the future to archive one or more dumps, then you must archive the entire set of tapes that
4116             constitute the dump set, rather than just the ones that contain the data of interest. This wastes both tape and archive
4117             storage space. For more information on archiving, see <A
4118 HREF="c12776.html#HDRWQ269"
4119 >Archiving Tapes</A
4120 >.</P
4121 ></LI
4122 ></UL
4123 ></P
4124 ></DIV
4125 ><DIV
4126 CLASS="sect2"
4127 ><H2
4128 CLASS="sect2"
4129 ><A
4130 NAME="HDRWQ300"
4131 >Scheduling Dumps</A
4132 ></H2
4133 ><P
4134 >By default, the Backup System starts executing a dump operation as soon as you enter the <SPAN
4135 CLASS="bold"
4136 ><B
4137 CLASS="emphasis"
4138 >backup
4139       dump</B
4140 ></SPAN
4141 > command, and the Tape Coordinator begins writing data as soon as it is not busy and the list of files to write
4142       is available. You can, however, schedule a dump operation to begin at a specific later time: <UL
4143 ><LI
4144 ><P
4145 >To schedule a single dump operation, include the <SPAN
4146 CLASS="bold"
4147 ><B
4148 CLASS="emphasis"
4149 >-at</B
4150 ></SPAN
4151 > argument to specify its
4152             start time.</P
4153 ></LI
4154 ><LI
4155 ><P
4156 >To schedule multiple dump operations, list the operations in a file named by the <SPAN
4157 CLASS="bold"
4158 ><B
4159 CLASS="emphasis"
4160 >-file</B
4161 ></SPAN
4162 > argument and use the <SPAN
4163 CLASS="bold"
4164 ><B
4165 CLASS="emphasis"
4166 >-at</B
4167 ></SPAN
4168 > argument to specify when the
4169             <SPAN
4170 CLASS="bold"
4171 ><B
4172 CLASS="emphasis"
4173 >backup</B
4174 ></SPAN
4175 > command interpreter reads the file. If you omit the <SPAN
4176 CLASS="bold"
4177 ><B
4178 CLASS="emphasis"
4179 >-at</B
4180 ></SPAN
4181 > argument, the command interpreter reads the file immediately, which does not count as
4182             scheduling, but does allow you to initiate multiple dump operations in a single command. Do not combine the <SPAN
4183 CLASS="bold"
4184 ><B
4185 CLASS="emphasis"
4186 >-file</B
4187 ></SPAN
4188 > argument with the <SPAN
4189 CLASS="bold"
4190 ><B
4191 CLASS="emphasis"
4192 >-volumeset</B
4193 ></SPAN
4194 >, <SPAN
4195 CLASS="bold"
4196 ><B
4197 CLASS="emphasis"
4198 >-dump</B
4199 ></SPAN
4200 >, <SPAN
4201 CLASS="bold"
4202 ><B
4203 CLASS="emphasis"
4204 >-portoffset</B
4205 ></SPAN
4206 >, <SPAN
4207 CLASS="bold"
4208 ><B
4209 CLASS="emphasis"
4210 >-append</B
4211 ></SPAN
4212 >, or
4213             <SPAN
4214 CLASS="bold"
4215 ><B
4216 CLASS="emphasis"
4217 >-n</B
4218 ></SPAN
4219 > options.</P
4220 ><P
4221 >For file-formatting instructions, see the description of the <SPAN
4222 CLASS="bold"
4223 ><B
4224 CLASS="emphasis"
4225 >-file</B
4226 ></SPAN
4227 > argument in
4228             Step <A
4229 HREF="c15383.html#LIBKDUMP-SYNTAX"
4230 >7</A
4231 > of <A
4232 HREF="c15383.html#HDRWQ301"
4233 >To create a dump</A
4234 >.</P
4235 ></LI
4236 ></UL
4237 ></P
4238 ><P
4239 >The Backup System performs initial and appended dumps in the same manner whether they are scheduled or begin running as
4240       soon as you issue the <SPAN
4241 CLASS="bold"
4242 ><B
4243 CLASS="emphasis"
4244 >backup dump</B
4245 ></SPAN
4246 > command. The only difference is that the requirements for
4247       successful execution hold both at the time you issue the command and when the Backup System actually begins running it. All
4248       required Backup Database entries for volume sets, dump levels, and port offsets, and all dump and tape records must exist at
4249       both times. Perhaps more importantly, the required administrative tokens must be available at both times. See <A
4250 HREF="c15383.html#HDRWQ297"
4251 >Making Backup Operations More Efficient</A
4252 >.</P
4253 ></DIV
4254 ><DIV
4255 CLASS="sect2"
4256 ><H2
4257 CLASS="sect2"
4258 ><A
4259 NAME="HDRWQ301"
4260 >To create a dump</A
4261 ></H2
4262 ><OL
4263 TYPE="1"
4264 ><LI
4265 ><P
4266 >Verify that you are authenticated as a user listed in the <SPAN
4267 CLASS="bold"
4268 ><B
4269 CLASS="emphasis"
4270 >/usr/afs/etc/UserList</B
4271 ></SPAN
4272 >
4273           file. If necessary, issue the <SPAN
4274 CLASS="bold"
4275 ><B
4276 CLASS="emphasis"
4277 >bos listusers</B
4278 ></SPAN
4279 > command, which is fully described in <A
4280 HREF="c32432.html#HDRWQ593"
4281 >To display the users in the UserList file</A
4282 >. <PRE
4283 CLASS="programlisting"
4284 >&#13;   % <SPAN
4285 CLASS="bold"
4286 ><B
4287 CLASS="emphasis"
4288 >bos listusers</B
4289 ></SPAN
4290 > &#60;<SPAN
4291 CLASS="emphasis"
4292 ><I
4293 CLASS="emphasis"
4294 >machine name</I
4295 ></SPAN
4296 >&#62;
4297 </PRE
4298 ></P
4299 ></LI
4300 ><LI
4301 ><P
4302 >If the Tape Coordinator for the tape device that is to perform the operation is not already running, open a
4303           connection to the appropriate Tape Coordinator machine and issue the <SPAN
4304 CLASS="bold"
4305 ><B
4306 CLASS="emphasis"
4307 >butc</B
4308 ></SPAN
4309 > command, for
4310           which complete instructions appear in <A
4311 HREF="c15383.html#HDRWQ292"
4312 >To start a Tape Coordinator process</A
4313 >.
4314           <PRE
4315 CLASS="programlisting"
4316 >&#13;   % <SPAN
4317 CLASS="bold"
4318 ><B
4319 CLASS="emphasis"
4320 >butc</B
4321 ></SPAN
4322 > [&#60;<SPAN
4323 CLASS="emphasis"
4324 ><I
4325 CLASS="emphasis"
4326 >port offset</I
4327 ></SPAN
4328 >&#62;] [<SPAN
4329 CLASS="bold"
4330 ><B
4331 CLASS="emphasis"
4332 >-noautoquery</B
4333 ></SPAN
4334 >]
4335 </PRE
4336 ></P
4337 ></LI
4338 ><LI
4339 ><P
4340 >If using a tape device, insert the tape.</P
4341 ></LI
4342 ><LI
4343 ><P
4344 >Issue the <SPAN
4345 CLASS="bold"
4346 ><B
4347 CLASS="emphasis"
4348 >backup</B
4349 ></SPAN
4350 > command to enter interactive mode. <PRE
4351 CLASS="programlisting"
4352 >&#13;   % <SPAN
4353 CLASS="bold"
4354 ><B
4355 CLASS="emphasis"
4356 >backup</B
4357 ></SPAN
4358 >
4359 </PRE
4360 ></P
4361 ></LI
4362 ><LI
4363 ><P
4364 >Decide which volume set and dump level to use. If necessary, issue the <SPAN
4365 CLASS="bold"
4366 ><B
4367 CLASS="emphasis"
4368 >backup
4369           listvolsets</B
4370 ></SPAN
4371 > and <SPAN
4372 CLASS="bold"
4373 ><B
4374 CLASS="emphasis"
4375 >backup listdumps</B
4376 ></SPAN
4377 > commands to display the existing volume sets
4378           and dump levels. For complete instructions and a description of the output, see <A
4379 HREF="c12776.html#HDRWQ266"
4380 >To display volume
4381           sets and volume entries</A
4382 > and <A
4383 HREF="c12776.html#HDRWQ271"
4384 >To display the dump hierarchy</A
4385 >. <PRE
4386 CLASS="programlisting"
4387 >&#13;   backup&#62; <SPAN
4388 CLASS="bold"
4389 ><B
4390 CLASS="emphasis"
4391 >listvolsets</B
4392 ></SPAN
4393 >  [&#60;<SPAN
4394 CLASS="emphasis"
4395 ><I
4396 CLASS="emphasis"
4397 >volume set name</I
4398 ></SPAN
4399 >&#62;]
4400    backup&#62; <SPAN
4401 CLASS="bold"
4402 ><B
4403 CLASS="emphasis"
4404 >listdumps</B
4405 ></SPAN
4406 >
4407 </PRE
4408 ></P
4409 ><P
4410 >If you want to use a temporary volume set, you must create it during the current interactive session. This can be
4411           useful if you are dumping a volume to tape in preparation for removing it permanently (perhaps because its owner is
4412           leaving the cell). In this case, you can define a volume entry that includes only the volume of interest without
4413           cluttering up the Backup Database with a volume set record that you are using only once. Complete instructions appear in
4414           <A
4415 HREF="c12776.html#HDRWQ265"
4416 >Defining and Displaying Volume Sets and Volume Entries</A
4417 >.</P
4418 ><PRE
4419 CLASS="programlisting"
4420 >&#13;   backup&#62;  <SPAN
4421 CLASS="bold"
4422 ><B
4423 CLASS="emphasis"
4424 >addvolset</B
4425 ></SPAN
4426 > &#60;<SPAN
4427 CLASS="emphasis"
4428 ><I
4429 CLASS="emphasis"
4430 >volume set name</I
4431 ></SPAN
4432 >&#62; <SPAN
4433 CLASS="bold"
4434 ><B
4435 CLASS="emphasis"
4436 >-temporary</B
4437 ></SPAN
4438 >
4439    backup&#62; <SPAN
4440 CLASS="bold"
4441 ><B
4442 CLASS="emphasis"
4443 >addvolentry  -name</B
4444 ></SPAN
4445 > &#60;<SPAN
4446 CLASS="emphasis"
4447 ><I
4448 CLASS="emphasis"
4449 >volume set name</I
4450 ></SPAN
4451 >&#62;  \
4452                         <SPAN
4453 CLASS="bold"
4454 ><B
4455 CLASS="emphasis"
4456 >-server</B
4457 ></SPAN
4458 > &#60;<SPAN
4459 CLASS="emphasis"
4460 ><I
4461 CLASS="emphasis"
4462 >machine name</I
4463 ></SPAN
4464 >&#62;  \
4465                         <SPAN
4466 CLASS="bold"
4467 ><B
4468 CLASS="emphasis"
4469 >-partition</B
4470 ></SPAN
4471 > &#60;<SPAN
4472 CLASS="emphasis"
4473 ><I
4474 CLASS="emphasis"
4475 >partition name</I
4476 ></SPAN
4477 >&#62;  \
4478                         <SPAN
4479 CLASS="bold"
4480 ><B
4481 CLASS="emphasis"
4482 >-volumes</B
4483 ></SPAN
4484 > &#60;<SPAN
4485 CLASS="emphasis"
4486 ><I
4487 CLASS="emphasis"
4488 >volume name (regular expression)</I
4489 ></SPAN
4490 >&#62;
4491 </PRE
4492 ></LI
4493 ><LI
4494 ><P
4495 >If you are creating an initial dump and writing to a tape or backup data file that does not have a permanent name,
4496           its AFS tape name must satisfy the Backup System's format requirements as described in <A
4497 HREF="c12776.html#HDRWQ280"
4498 >Eliminating the AFS Tape Name Check</A
4499 >. If necessary, use the <SPAN
4500 CLASS="bold"
4501 ><B
4502 CLASS="emphasis"
4503 >backup
4504           readlabel</B
4505 ></SPAN
4506 > command to display the label and the <SPAN
4507 CLASS="bold"
4508 ><B
4509 CLASS="emphasis"
4510 >backup labeltape</B
4511 ></SPAN
4512 > command to
4513           change the names, as instructed in <A
4514 HREF="c12776.html#HDRWQ272"
4515 >Writing and Reading Tape Labels</A
4516 >. You must also relabel
4517           a tape if you want to overwrite it and it is part of a dump set that includes any unexpired dumps, though this is not
4518           recommended. For a discussion of the appropriate way to recycle tapes, see <A
4519 HREF="c12776.html#HDRWQ268"
4520 >Creating a Tape
4521           Recycling Schedule</A
4522 >.</P
4523 ></LI
4524 ><LI
4525 ><P
4526 ><A
4527 NAME="LIBKDUMP-SYNTAX"
4528 ></A
4529 >Issue the <SPAN
4530 CLASS="bold"
4531 ><B
4532 CLASS="emphasis"
4533 >backup dump</B
4534 ></SPAN
4535 > command to dump the volume
4536           set. <UL
4537 ><LI
4538 ><P
4539 >To create one initial dump, provide only the volume set name, dump level name, and port offset (if not
4540                 zero).</P
4541 ></LI
4542 ><LI
4543 ><P
4544 >To create one appended dump, add the <SPAN
4545 CLASS="bold"
4546 ><B
4547 CLASS="emphasis"
4548 >-append</B
4549 ></SPAN
4550 > flag.</P
4551 ></LI
4552 ><LI
4553 ><P
4554 >To schedule a single initial or appended dump, add the <SPAN
4555 CLASS="bold"
4556 ><B
4557 CLASS="emphasis"
4558 >-at</B
4559 ></SPAN
4560 > argument.</P
4561 ></LI
4562 ><LI
4563 ><P
4564 >To initiate multiple dump operations, record the appropriate commands in a file and name it with the <SPAN
4565 CLASS="bold"
4566 ><B
4567 CLASS="emphasis"
4568 >-file</B
4569 ></SPAN
4570 > argument. Do not combine this argument with options other than the <SPAN
4571 CLASS="bold"
4572 ><B
4573 CLASS="emphasis"
4574 >-at</B
4575 ></SPAN
4576 > argument.</P
4577 ></LI
4578 ></UL
4579 ></P
4580 ><PRE
4581 CLASS="programlisting"
4582 >&#13;   backup&#62; <SPAN
4583 CLASS="bold"
4584 ><B
4585 CLASS="emphasis"
4586 >dump</B
4587 ></SPAN
4588 > &#60;<SPAN
4589 CLASS="emphasis"
4590 ><I
4591 CLASS="emphasis"
4592 >volume set name</I
4593 ></SPAN
4594 >&#62; &#60;<SPAN
4595 CLASS="emphasis"
4596 ><I
4597 CLASS="emphasis"
4598 >dump level name</I
4599 ></SPAN
4600 >&#62; [&#60;<SPAN
4601 CLASS="emphasis"
4602 ><I
4603 CLASS="emphasis"
4604 >TC port offset</I
4605 ></SPAN
4606 >&#62;]   \
4607                 [<SPAN
4608 CLASS="bold"
4609 ><B
4610 CLASS="emphasis"
4611 >-at</B
4612 ></SPAN
4613 > &#60;<SPAN
4614 CLASS="emphasis"
4615 ><I
4616 CLASS="emphasis"
4617 >Date/time to start dump</I
4618 ></SPAN
4619 >&#62;+]  \
4620                 [<SPAN
4621 CLASS="bold"
4622 ><B
4623 CLASS="emphasis"
4624 >-append</B
4625 ></SPAN
4626 >]  [<SPAN
4627 CLASS="bold"
4628 ><B
4629 CLASS="emphasis"
4630 >-n</B
4631 ></SPAN
4632 >] [<SPAN
4633 CLASS="bold"
4634 ><B
4635 CLASS="emphasis"
4636 >-file</B
4637 ></SPAN
4638 > &#60;<SPAN
4639 CLASS="emphasis"
4640 ><I
4641 CLASS="emphasis"
4642 >load file</I
4643 ></SPAN
4644 >&#62;]
4645 </PRE
4646 ><P
4647 >where <DIV
4648 CLASS="variablelist"
4649 ><DL
4650 ><DT
4651 ><SPAN
4652 CLASS="bold"
4653 ><B
4654 CLASS="emphasis"
4655 >dump</B
4656 ></SPAN
4657 ></DT
4658 ><DD
4659 ><P
4660 >Must be typed in full.</P
4661 ></DD
4662 ><DT
4663 ><SPAN
4664 CLASS="bold"
4665 ><B
4666 CLASS="emphasis"
4667 >volume set name</B
4668 ></SPAN
4669 ></DT
4670 ><DD
4671 ><P
4672 >Names the volume set to dump.</P
4673 ></DD
4674 ><DT
4675 ><SPAN
4676 CLASS="bold"
4677 ><B
4678 CLASS="emphasis"
4679 >dump level name</B
4680 ></SPAN
4681 ></DT
4682 ><DD
4683 ><P
4684 >Specifies the complete pathname of the dump level at which to dump the volume set.</P
4685 ></DD
4686 ><DT
4687 ><SPAN
4688 CLASS="bold"
4689 ><B
4690 CLASS="emphasis"
4691 >TC port offset</B
4692 ></SPAN
4693 ></DT
4694 ><DD
4695 ><P
4696 >Specifies the port offset number of the Tape Coordinator process that is handling the operation. You must
4697                   provide this argument unless the default value of 0 (zero) is appropriate.</P
4698 ></DD
4699 ><DT
4700 ><SPAN
4701 CLASS="bold"
4702 ><B
4703 CLASS="emphasis"
4704 >-at</B
4705 ></SPAN
4706 ></DT
4707 ><DD
4708 ><P
4709 >Specifies the date and time in the future at which to run the command, or to read the file named by the
4710                   <SPAN
4711 CLASS="bold"
4712 ><B
4713 CLASS="emphasis"
4714 >-file</B
4715 ></SPAN
4716 > argument. Provide a value in the format mm/dd/yyyy [hh:MM], where the month
4717                   (mm), day (dd), and year (yyyy) are required. Valid values for the year range from <SPAN
4718 CLASS="bold"
4719 ><B
4720 CLASS="emphasis"
4721 >1970</B
4722 ></SPAN
4723 > to <SPAN
4724 CLASS="bold"
4725 ><B
4726 CLASS="emphasis"
4727 >2037</B
4728 ></SPAN
4729 >; higher values are not valid because the
4730                   latest possible date in the standard UNIX representation is in February 2038. The Backup System automatically
4731                   reduces any later date to the maximum value in 2038.</P
4732 ><P
4733 >The hour and minutes (hh:MM) are optional, but if provided must be in 24-hour format (for example, the value
4734                   <SPAN
4735 CLASS="bold"
4736 ><B
4737 CLASS="emphasis"
4738 >14:36</B
4739 ></SPAN
4740 > represents 2:36 p.m.). If you omit them, the time defaults to midnight
4741                   (00:00 hours).</P
4742 ><P
4743 >As an example, the value <SPAN
4744 CLASS="bold"
4745 ><B
4746 CLASS="emphasis"
4747 >04/23/1999 20:20</B
4748 ></SPAN
4749 > schedules the command for 8:20
4750                   p.m. on 23 April 1999.</P
4751 ><DIV
4752 CLASS="note"
4753 ><BLOCKQUOTE
4754 CLASS="note"
4755 ><P
4756 ><B
4757 >Note: </B
4758 >A plus sign follows this argument in the command's syntax statement because it accepts a multiword value
4759                     which does not need to be enclosed in double quotes or other delimiters, not because it accepts multiple dates.
4760                     Provide only one date (and optionally, time) definition.</P
4761 ></BLOCKQUOTE
4762 ></DIV
4763 ></DD
4764 ><DT
4765 ><SPAN
4766 CLASS="bold"
4767 ><B
4768 CLASS="emphasis"
4769 >-append</B
4770 ></SPAN
4771 ></DT
4772 ><DD
4773 ><P
4774 >Creates an appended dump by scanning to the end of the data from one or more previous dump operations that
4775                   it finds on the tape or in the backup data file.</P
4776 ></DD
4777 ><DT
4778 ><SPAN
4779 CLASS="bold"
4780 ><B
4781 CLASS="emphasis"
4782 >-n</B
4783 ></SPAN
4784 ></DT
4785 ><DD
4786 ><P
4787 >Displays the names of all volumes to be included in the indicated dump, without actually writing data to
4788                   tape or the backup data file. Combine this flag with the arguments you plan to use on the actual command, but not
4789                   with the <SPAN
4790 CLASS="bold"
4791 ><B
4792 CLASS="emphasis"
4793 >-file</B
4794 ></SPAN
4795 > argument.</P
4796 ></DD
4797 ><DT
4798 ><SPAN
4799 CLASS="bold"
4800 ><B
4801 CLASS="emphasis"
4802 >-file</B
4803 ></SPAN
4804 ></DT
4805 ><DD
4806 ><P
4807 >Specifies the local disk or AFS pathname of a file containing <SPAN
4808 CLASS="bold"
4809 ><B
4810 CLASS="emphasis"
4811 >backup</B
4812 ></SPAN
4813 >
4814                   commands. The Backup System reads the file immediately, or at the time specified by the <SPAN
4815 CLASS="bold"
4816 ><B
4817 CLASS="emphasis"
4818 >-at</B
4819 ></SPAN
4820 > argument if it is provided. A partial pathname is interpreted relative to the current
4821                   working directory.</P
4822 ><P
4823 >Place each <SPAN
4824 CLASS="bold"
4825 ><B
4826 CLASS="emphasis"
4827 >backup dump</B
4828 ></SPAN
4829 > command on its own line in the indicated file, using
4830                   the same syntax as for the command line, but without the word <SPAN
4831 CLASS="bold"
4832 ><B
4833 CLASS="emphasis"
4834 >backup</B
4835 ></SPAN
4836 > at the start
4837                   of the line. Each command must include the volume set name and dump level name arguments plus the TC port offset
4838                   argument if the default value of zero is not appropriate. Commands in the file can also include any of the
4839                   <SPAN
4840 CLASS="bold"
4841 ><B
4842 CLASS="emphasis"
4843 >backup dump</B
4844 ></SPAN
4845 > command's optional arguments, including the <SPAN
4846 CLASS="bold"
4847 ><B
4848 CLASS="emphasis"
4849 >-at</B
4850 ></SPAN
4851 > argument (which must specify a date and time later than the date and time at which the
4852                   Backup System reads the file).</P
4853 ></DD
4854 ></DL
4855 ></DIV
4856 ></P
4857 ></LI
4858 ><LI
4859 ><P
4860 >If you did not include the <SPAN
4861 CLASS="bold"
4862 ><B
4863 CLASS="emphasis"
4864 >-noautoquery</B
4865 ></SPAN
4866 > flag when you issued the <SPAN
4867 CLASS="bold"
4868 ><B
4869 CLASS="emphasis"
4870 >butc</B
4871 ></SPAN
4872 > command, or if the device's <SPAN
4873 CLASS="bold"
4874 ><B
4875 CLASS="emphasis"
4876 >CFG_</B
4877 ></SPAN
4878 >device_name configuration
4879           file includes the instruction <SPAN
4880 CLASS="bold"
4881 ><B
4882 CLASS="emphasis"
4883 >AUTOQUERY YES</B
4884 ></SPAN
4885 >, then the Tape Coordinator prompts you to
4886           place the tape in the device's drive. You have already done so, but you must now press &#60;<SPAN
4887 CLASS="bold"
4888 ><B
4889 CLASS="emphasis"
4890 >Return</B
4891 ></SPAN
4892 >&#62; to indicate that the tape is ready for labeling.</P
4893 ><P
4894 >If more than one tape is required, you must either include the <SPAN
4895 CLASS="bold"
4896 ><B
4897 CLASS="emphasis"
4898 >MOUNT</B
4899 ></SPAN
4900 > instruction in
4901           the <SPAN
4902 CLASS="bold"
4903 ><B
4904 CLASS="emphasis"
4905 >CFG_</B
4906 ></SPAN
4907 >device_name file and stock the corresponding stacker or jukebox with tapes, or
4908           remain at the console to respond to the Tape Coordinator's prompts for subsequent tapes.</P
4909 ></LI
4910 ><LI
4911 ><P
4912 >After the dump operation completes, review the Backup System's log files to check for errors. Use the <SPAN
4913 CLASS="bold"
4914 ><B
4915 CLASS="emphasis"
4916 >bos getlog</B
4917 ></SPAN
4918 > command as instructed in <A
4919 HREF="c6449.html#HDRWQ173"
4920 >Displaying Server Process Log
4921           Files</A
4922 > to read the <SPAN
4923 CLASS="bold"
4924 ><B
4925 CLASS="emphasis"
4926 >/usr/afs/logs/BackupLog</B
4927 ></SPAN
4928 > file, and a text editor on the Tape
4929           Coordinator machine to read the <SPAN
4930 CLASS="bold"
4931 ><B
4932 CLASS="emphasis"
4933 >TE_</B
4934 ></SPAN
4935 >device_name and <SPAN
4936 CLASS="bold"
4937 ><B
4938 CLASS="emphasis"
4939 >TL_</B
4940 ></SPAN
4941 >device_name files in the local <SPAN
4942 CLASS="bold"
4943 ><B
4944 CLASS="emphasis"
4945 >/usr/afs/backup</B
4946 ></SPAN
4947 >
4948           directory.</P
4949 ><P
4950 >It is also a good idea to record the tape name and dump ID number on the exterior label of each tape.</P
4951 ></LI
4952 ></OL
4953 ></DIV
4954 ></DIV
4955 ><DIV
4956 CLASS="sect1"
4957 ><H1
4958 CLASS="sect1"
4959 ><A
4960 NAME="HDRWQ302"
4961 >Displaying Backup Dump Records</A
4962 ></H1
4963 ><P
4964 >The <SPAN
4965 CLASS="bold"
4966 ><B
4967 CLASS="emphasis"
4968 >backup</B
4969 ></SPAN
4970 > command suite includes three commands for displaying information about data
4971     you have backed up: <UL
4972 ><LI
4973 ><P
4974 >To display information about one or more dump operations, such as the date it was performed and the number of
4975           volumes included, use the <SPAN
4976 CLASS="bold"
4977 ><B
4978 CLASS="emphasis"
4979 >backup dumpinfo</B
4980 ></SPAN
4981 > command as described in <A
4982 HREF="c15383.html#HDRWQ303"
4983 >To display dump records</A
4984 >. You can display a detailed record of a single dump or more condensed
4985           records for a certain number of dumps, starting with the most recent and going back in time. You can specify the number of
4986           dumps or accept the default of 10.</P
4987 ></LI
4988 ><LI
4989 ><P
4990 >To display a volume's dump history, use the <SPAN
4991 CLASS="bold"
4992 ><B
4993 CLASS="emphasis"
4994 >backup volinfo</B
4995 ></SPAN
4996 > command as described in
4997           <A
4998 HREF="c15383.html#HDRWQ304"
4999 >To display a volume's dump history</A
5000 >.</P
5001 ></LI
5002 ><LI
5003 ><P
5004 >To display information extracted from a tape or backup data file about the volumes it includes, use the <SPAN
5005 CLASS="bold"
5006 ><B
5007 CLASS="emphasis"
5008 >backup scantape</B
5009 ></SPAN
5010 > command. To create new dump and tape records in the Backup Database derived from
5011           the tape and dump labels, add the <SPAN
5012 CLASS="bold"
5013 ><B
5014 CLASS="emphasis"
5015 >-dbadd</B
5016 ></SPAN
5017 > flag. For instructions, see <A
5018 HREF="c15383.html#HDRWQ305"
5019 >To scan the contents of a tape</A
5020 >.</P
5021 ></LI
5022 ></UL
5023 ></P
5024 ><DIV
5025 CLASS="sect2"
5026 ><H2
5027 CLASS="sect2"
5028 ><A
5029 NAME="HDRWQ303"
5030 >To display dump records</A
5031 ></H2
5032 ><OL
5033 TYPE="1"
5034 ><LI
5035 ><P
5036 >Verify that you are authenticated as a user listed in the <SPAN
5037 CLASS="bold"
5038 ><B
5039 CLASS="emphasis"
5040 >/usr/afs/etc/UserList</B
5041 ></SPAN
5042 >
5043           file. If necessary, issue the <SPAN
5044 CLASS="bold"
5045 ><B
5046 CLASS="emphasis"
5047 >bos listusers</B
5048 ></SPAN
5049 > command, which is fully described in <A
5050 HREF="c32432.html#HDRWQ593"
5051 >To display the users in the UserList file</A
5052 >. <PRE
5053 CLASS="programlisting"
5054 >&#13;   % <SPAN
5055 CLASS="bold"
5056 ><B
5057 CLASS="emphasis"
5058 >bos listusers</B
5059 ></SPAN
5060 > &#60;<SPAN
5061 CLASS="emphasis"
5062 ><I
5063 CLASS="emphasis"
5064 >machine name</I
5065 ></SPAN
5066 >&#62;
5067 </PRE
5068 ></P
5069 ></LI
5070 ><LI
5071 ><P
5072 >Issue the <SPAN
5073 CLASS="bold"
5074 ><B
5075 CLASS="emphasis"
5076 >backup dumpinfo</B
5077 ></SPAN
5078 > command to list information about dumps recorded in the
5079           Backup Database. <PRE
5080 CLASS="programlisting"
5081 >&#13;   % <SPAN
5082 CLASS="bold"
5083 ><B
5084 CLASS="emphasis"
5085 >backup dumpinfo</B
5086 ></SPAN
5087 > [<SPAN
5088 CLASS="bold"
5089 ><B
5090 CLASS="emphasis"
5091 >-ndumps</B
5092 ></SPAN
5093 > &#60;<SPAN
5094 CLASS="emphasis"
5095 ><I
5096 CLASS="emphasis"
5097 >no. of dumps</I
5098 ></SPAN
5099 >&#62;]  [<SPAN
5100 CLASS="bold"
5101 ><B
5102 CLASS="emphasis"
5103 >-id</B
5104 ></SPAN
5105 > &#60;<SPAN
5106 CLASS="emphasis"
5107 ><I
5108 CLASS="emphasis"
5109 >dump id</I
5110 ></SPAN
5111 >&#62;]  [<SPAN
5112 CLASS="bold"
5113 ><B
5114 CLASS="emphasis"
5115 >-verbose</B
5116 ></SPAN
5117 >]
5118 </PRE
5119 ></P
5120 ><P
5121 >where <DIV
5122 CLASS="variablelist"
5123 ><DL
5124 ><DT
5125 ><SPAN
5126 CLASS="bold"
5127 ><B
5128 CLASS="emphasis"
5129 >dump</B
5130 ></SPAN
5131 ></DT
5132 ><DD
5133 ><P
5134 >Is the shortest acceptable abbreviation of <SPAN
5135 CLASS="bold"
5136 ><B
5137 CLASS="emphasis"
5138 >dumpinfo</B
5139 ></SPAN
5140 >.</P
5141 ></DD
5142 ><DT
5143 ><SPAN
5144 CLASS="bold"
5145 ><B
5146 CLASS="emphasis"
5147 >-ndumps</B
5148 ></SPAN
5149 ></DT
5150 ><DD
5151 ><P
5152 >Displays the Backup Database record for each of the specified number of dumps, starting with the most recent
5153                   and going back in time. If the database contains fewer dumps than are requested, the output includes the records
5154                   for all existing dumps. Do not combine this argument with the <SPAN
5155 CLASS="bold"
5156 ><B
5157 CLASS="emphasis"
5158 >-id</B
5159 ></SPAN
5160 > argument or
5161                   <SPAN
5162 CLASS="bold"
5163 ><B
5164 CLASS="emphasis"
5165 >-verbose</B
5166 ></SPAN
5167 > flag; omit all three options to display the records for the last 10
5168                   dumps.</P
5169 ></DD
5170 ><DT
5171 ><SPAN
5172 CLASS="bold"
5173 ><B
5174 CLASS="emphasis"
5175 >-id</B
5176 ></SPAN
5177 ></DT
5178 ><DD
5179 ><P
5180 >Specifies the dump ID number of a single dump for which to display the Backup Database record. You must
5181                   include the <SPAN
5182 CLASS="bold"
5183 ><B
5184 CLASS="emphasis"
5185 >-id</B
5186 ></SPAN
5187 > switch. Do not combine this option with the <SPAN
5188 CLASS="bold"
5189 ><B
5190 CLASS="emphasis"
5191 >-ndumps</B
5192 ></SPAN
5193 > or <SPAN
5194 CLASS="bold"
5195 ><B
5196 CLASS="emphasis"
5197 >-verbose</B
5198 ></SPAN
5199 > arguments; omit all three arguments to
5200                   display the records for the last 10 dumps.</P
5201 ></DD
5202 ><DT
5203 ><SPAN
5204 CLASS="bold"
5205 ><B
5206 CLASS="emphasis"
5207 >-verbose</B
5208 ></SPAN
5209 ></DT
5210 ><DD
5211 ><P
5212 >Provides more detailed information about the dump specified with the <SPAN
5213 CLASS="bold"
5214 ><B
5215 CLASS="emphasis"
5216 >-id</B
5217 ></SPAN
5218 >
5219                   argument, which must be provided along with it. Do not combine this flag with the <SPAN
5220 CLASS="bold"
5221 ><B
5222 CLASS="emphasis"
5223 >-ndumps</B
5224 ></SPAN
5225 > option.</P
5226 ></DD
5227 ></DL
5228 ></DIV
5229 ></P
5230 ></LI
5231 ></OL
5232 ><P
5233 >If the <SPAN
5234 CLASS="bold"
5235 ><B
5236 CLASS="emphasis"
5237 >-ndumps</B
5238 ></SPAN
5239 > argument is provided, the output presents the following information in
5240       table form, with a separate line for each dump: <DIV
5241 CLASS="variablelist"
5242 ><DL
5243 ><DT
5244 ><SPAN
5245 CLASS="bold"
5246 ><B
5247 CLASS="emphasis"
5248 ><SAMP
5249 CLASS="computeroutput"
5250 >dumpid</SAMP
5251 ></B
5252 ></SPAN
5253 ></DT
5254 ><DD
5255 ><P
5256 >The dump ID number.</P
5257 ></DD
5258 ><DT
5259 ><SPAN
5260 CLASS="bold"
5261 ><B
5262 CLASS="emphasis"
5263 ><SAMP
5264 CLASS="computeroutput"
5265 >parentid</SAMP
5266 ></B
5267 ></SPAN
5268 ></DT
5269 ><DD
5270 ><P
5271 >The dump ID number of the dump's parent dump. A value of <SAMP
5272 CLASS="computeroutput"
5273 >0</SAMP
5274 > (zero) identifies a
5275               full dump.</P
5276 ></DD
5277 ><DT
5278 ><SPAN
5279 CLASS="bold"
5280 ><B
5281 CLASS="emphasis"
5282 ><SAMP
5283 CLASS="computeroutput"
5284 >lv</SAMP
5285 ></B
5286 ></SPAN
5287 ></DT
5288 ><DD
5289 ><P
5290 >The depth in the dump hierarchy of the dump level used to create the dump. A value of
5291               <SAMP
5292 CLASS="computeroutput"
5293 >0</SAMP
5294 > (zero) identifies a full dump, in which case the value in the
5295               <SAMP
5296 CLASS="computeroutput"
5297 >parentid</SAMP
5298 > field is also <SAMP
5299 CLASS="computeroutput"
5300 >0</SAMP
5301 >. A value of
5302               <SAMP
5303 CLASS="computeroutput"
5304 >1</SAMP
5305 > or greater indicates an incremental dump made at the corresponding level in the
5306               dump hierarchy.</P
5307 ></DD
5308 ><DT
5309 ><SPAN
5310 CLASS="bold"
5311 ><B
5312 CLASS="emphasis"
5313 ><SAMP
5314 CLASS="computeroutput"
5315 >created</SAMP
5316 ></B
5317 ></SPAN
5318 ></DT
5319 ><DD
5320 ><P
5321 >The date and time at which the Backup System started the dump operation that created the dump.</P
5322 ></DD
5323 ><DT
5324 ><SPAN
5325 CLASS="bold"
5326 ><B
5327 CLASS="emphasis"
5328 ><SAMP
5329 CLASS="computeroutput"
5330 >nt</SAMP
5331 ></B
5332 ></SPAN
5333 ></DT
5334 ><DD
5335 ><P
5336 >The number of tapes that contain the data in the dump. A value of <SAMP
5337 CLASS="computeroutput"
5338 >0</SAMP
5339 > (zero)
5340               indicates that the dump operation was terminated or failed. Use the <SPAN
5341 CLASS="bold"
5342 ><B
5343 CLASS="emphasis"
5344 >backup deletedump</B
5345 ></SPAN
5346 >
5347               command to remove such entries.</P
5348 ></DD
5349 ><DT
5350 ><SPAN
5351 CLASS="bold"
5352 ><B
5353 CLASS="emphasis"
5354 ><SAMP
5355 CLASS="computeroutput"
5356 >nvols</SAMP
5357 ></B
5358 ></SPAN
5359 ></DT
5360 ><DD
5361 ><P
5362 >The number of volumes from which the dump includes data. If a volume spans tapes, it is counted twice. A value
5363               of <SAMP
5364 CLASS="computeroutput"
5365 >0</SAMP
5366 > (zero) indicates that the dump operation was terminated or failed; the value in
5367               the <SAMP
5368 CLASS="computeroutput"
5369 >nt</SAMP
5370 > field is also <SAMP
5371 CLASS="computeroutput"
5372 >0</SAMP
5373 > (zero) in this case.</P
5374 ></DD
5375 ><DT
5376 ><SPAN
5377 CLASS="bold"
5378 ><B
5379 CLASS="emphasis"
5380 ><SAMP
5381 CLASS="computeroutput"
5382 >dump name</SAMP
5383 ></B
5384 ></SPAN
5385 ></DT
5386 ><DD
5387 ><P
5388 >The dump name in the form <PRE
5389 CLASS="programlisting"
5390 >&#13;   volume_set_name.dump_level_name (initial_dump_ID)
5391 </PRE
5392 ></P
5393 ><P
5394 >where volume_set_name is the name of the volume set, and dump_level_name is the last element in the dump level
5395               pathname at which the volume set was dumped.</P
5396 ><P
5397 >The initial_dump_ID, if displayed, is the dump ID of the initial dump in the dump set to which this dump
5398               belongs. If there is no value in parentheses, the dump is the initial dump in a dump set that has no appended
5399               dumps.</P
5400 ></DD
5401 ></DL
5402 ></DIV
5403 ></P
5404 ><P
5405 >If the <SPAN
5406 CLASS="bold"
5407 ><B
5408 CLASS="emphasis"
5409 >-id</B
5410 ></SPAN
5411 > argument is provided alone, the first line of output begins with the string
5412       <SAMP
5413 CLASS="computeroutput"
5414 >Dump</SAMP
5415 > and reports information for the entire dump in the following fields: <DIV
5416 CLASS="variablelist"
5417 ><DL
5418 ><DT
5419 ><SPAN
5420 CLASS="bold"
5421 ><B
5422 CLASS="emphasis"
5423 ><SAMP
5424 CLASS="computeroutput"
5425 >id</SAMP
5426 ></B
5427 ></SPAN
5428 ></DT
5429 ><DD
5430 ><P
5431 >The dump ID number.</P
5432 ></DD
5433 ><DT
5434 ><SPAN
5435 CLASS="bold"
5436 ><B
5437 CLASS="emphasis"
5438 ><SAMP
5439 CLASS="computeroutput"
5440 >level</SAMP
5441 ></B
5442 ></SPAN
5443 ></DT
5444 ><DD
5445 ><P
5446 >The depth in the dump hierarchy of the dump level used to create the dump. A value of
5447               <SAMP
5448 CLASS="computeroutput"
5449 >0</SAMP
5450 > (zero) identifies a full dump. A value of <SAMP
5451 CLASS="computeroutput"
5452 >1</SAMP
5453 > (one)
5454               or greater indicates an incremental dump made at the specified level in the dump hierarchy.</P
5455 ></DD
5456 ><DT
5457 ><SPAN
5458 CLASS="bold"
5459 ><B
5460 CLASS="emphasis"
5461 ><SAMP
5462 CLASS="computeroutput"
5463 >volumes</SAMP
5464 ></B
5465 ></SPAN
5466 ></DT
5467 ><DD
5468 ><P
5469 >The number of volumes for which the dump includes data.</P
5470 ></DD
5471 ><DT
5472 ><SPAN
5473 CLASS="bold"
5474 ><B
5475 CLASS="emphasis"
5476 ><SAMP
5477 CLASS="computeroutput"
5478 >created</SAMP
5479 ></B
5480 ></SPAN
5481 ></DT
5482 ><DD
5483 ><P
5484 >The date and time at which the dump operation began.</P
5485 ></DD
5486 ></DL
5487 ></DIV
5488 ></P
5489 ><P
5490 >If an XBSA server was the backup medium for the dump (rather than a tape device or backup data file), the following line
5491       appears next:</P
5492 ><PRE
5493 CLASS="programlisting"
5494 >&#13;   Backup Service: XBSA_program: Server: hostname
5495 </PRE
5496 ><P
5497 >where XBSA_program is the name of the XBSA-compliant program and hostname is the name of the machine on which the
5498       program runs.</P
5499 ><P
5500 >Next the output includes an entry for each tape that houses volume data from the dump. Following the string
5501       <SAMP
5502 CLASS="computeroutput"
5503 >Tape</SAMP
5504 >, the first two lines of each entry report information about that tape in the following
5505       fields: <DIV
5506 CLASS="variablelist"
5507 ><DL
5508 ><DT
5509 ><SPAN
5510 CLASS="bold"
5511 ><B
5512 CLASS="emphasis"
5513 ><SAMP
5514 CLASS="computeroutput"
5515 >name</SAMP
5516 ></B
5517 ></SPAN
5518 ></DT
5519 ><DD
5520 ><P
5521 >The tape's permanent name if it has one, or its AFS tape name otherwise, and its tape ID number in
5522               parentheses.</P
5523 ></DD
5524 ><DT
5525 ><SPAN
5526 CLASS="bold"
5527 ><B
5528 CLASS="emphasis"
5529 ><SAMP
5530 CLASS="computeroutput"
5531 >nVolumes</SAMP
5532 ></B
5533 ></SPAN
5534 ></DT
5535 ><DD
5536 ><P
5537 >The number of volumes for which this tape includes dump data.</P
5538 ></DD
5539 ><DT
5540 ><SPAN
5541 CLASS="bold"
5542 ><B
5543 CLASS="emphasis"
5544 ><SAMP
5545 CLASS="computeroutput"
5546 >created</SAMP
5547 ></B
5548 ></SPAN
5549 ></DT
5550 ><DD
5551 ><P
5552 >The date and time at which the Tape Coordinator began writing data to this tape.</P
5553 ></DD
5554 ></DL
5555 ></DIV
5556 ></P
5557 ><P
5558 >Following another blank line, the tape-specific information concludes with a table that includes a line for each volume
5559       dump on the tape. The information appears in columns with the following headings: <DIV
5560 CLASS="variablelist"
5561 ><DL
5562 ><DT
5563 ><SPAN
5564 CLASS="bold"
5565 ><B
5566 CLASS="emphasis"
5567 ><SAMP
5568 CLASS="computeroutput"
5569 >Pos</SAMP
5570 ></B
5571 ></SPAN
5572 ></DT
5573 ><DD
5574 ><P
5575 >The relative position of each volume in this tape or file. On a tape, the counter begins at position 2 (the tape
5576               label occupies position 1), and increments by one for each volume. For volumes in a backup data file, the position
5577               numbers start with 1 and do not usually increment only by one, because each is the ordinal of the 16 KB offset in the
5578               file at which the volume's data begins. The difference between the position numbers therefore indicates how many 16 KB
5579               blocks each volume's data occupies. For example, if the second volume is at position 5 and the third volume in the
5580               list is at position 9, that means that the dump of the second volume occupies 64 KB (four 16-KB blocks) of space in
5581               the file.</P
5582 ></DD
5583 ><DT
5584 ><SPAN
5585 CLASS="bold"
5586 ><B
5587 CLASS="emphasis"
5588 ><SAMP
5589 CLASS="computeroutput"
5590 >Clone time</SAMP
5591 ></B
5592 ></SPAN
5593 ></DT
5594 ><DD
5595 ><P
5596 >For a backup or read-only volume, the time at which it was cloned from its read/write source. For a Read/Write
5597               volume, it is the same as the dump creation date reported on the first line of the output.</P
5598 ></DD
5599 ><DT
5600 ><SPAN
5601 CLASS="bold"
5602 ><B
5603 CLASS="emphasis"
5604 ><SAMP
5605 CLASS="computeroutput"
5606 >Nbytes</SAMP
5607 ></B
5608 ></SPAN
5609 ></DT
5610 ><DD
5611 ><P
5612 >The number of bytes of data in the dump of the volume.</P
5613 ></DD
5614 ><DT
5615 ><SPAN
5616 CLASS="bold"
5617 ><B
5618 CLASS="emphasis"
5619 ><SAMP
5620 CLASS="computeroutput"
5621 >Volume</SAMP
5622 ></B
5623 ></SPAN
5624 ></DT
5625 ><DD
5626 ><P
5627 >The volume name, complete with <SAMP
5628 CLASS="computeroutput"
5629 >.backup</SAMP
5630 > or
5631               <SAMP
5632 CLASS="computeroutput"
5633 >.readonly</SAMP
5634 > extension if appropriate.</P
5635 ></DD
5636 ></DL
5637 ></DIV
5638 ></P
5639 ><P
5640 >If both the <SPAN
5641 CLASS="bold"
5642 ><B
5643 CLASS="emphasis"
5644 >-id</B
5645 ></SPAN
5646 > and <SPAN
5647 CLASS="bold"
5648 ><B
5649 CLASS="emphasis"
5650 >-verbose</B
5651 ></SPAN
5652 > options are provided, the
5653       output is divided into several sections: <UL
5654 ><LI
5655 ><P
5656 >The first section, headed by the underlined string <SAMP
5657 CLASS="computeroutput"
5658 >Dump</SAMP
5659 >, includes information
5660             about the entire dump. The fields labeled <SAMP
5661 CLASS="computeroutput"
5662 >id</SAMP
5663 >, <SAMP
5664 CLASS="computeroutput"
5665 >level</SAMP
5666 >,
5667             <SAMP
5668 CLASS="computeroutput"
5669 >created</SAMP
5670 >, and <SAMP
5671 CLASS="computeroutput"
5672 >nVolumes</SAMP
5673 > report the same values (though
5674             in a different order) as appear on the first line of output when the <SPAN
5675 CLASS="bold"
5676 ><B
5677 CLASS="emphasis"
5678 >-id</B
5679 ></SPAN
5680 > argument is
5681             provided by itself. Other fields of potential interest to the backup operator are: <DIV
5682 CLASS="variablelist"
5683 ><DL
5684 ><DT
5685 ><SPAN
5686 CLASS="bold"
5687 ><B
5688 CLASS="emphasis"
5689 ><SAMP
5690 CLASS="computeroutput"
5691 >Group id</SAMP
5692 ></B
5693 ></SPAN
5694 ></DT
5695 ><DD
5696 ><P
5697 >The dump's <SPAN
5698 CLASS="emphasis"
5699 ><I
5700 CLASS="emphasis"
5701 >group ID number</I
5702 ></SPAN
5703 >, which is recorded in the dump's Backup Database record if
5704                     the <SPAN
5705 CLASS="bold"
5706 ><B
5707 CLASS="emphasis"
5708 >GROUPID</B
5709 ></SPAN
5710 > instruction appears in the Tape Coordinator's <SPAN
5711 CLASS="bold"
5712 ><B
5713 CLASS="emphasis"
5714 >/usr/afs/backup/CFG_</B
5715 ></SPAN
5716 >tcid file when the dump is created.</P
5717 ></DD
5718 ><DT
5719 ><SPAN
5720 CLASS="bold"
5721 ><B
5722 CLASS="emphasis"
5723 ><SAMP
5724 CLASS="computeroutput"
5725 >maxTapes</SAMP
5726 ></B
5727 ></SPAN
5728 ></DT
5729 ><DD
5730 ><P
5731 >The number of tapes that contain the dump set to which this dump belongs.</P
5732 ></DD
5733 ><DT
5734 ><SPAN
5735 CLASS="bold"
5736 ><B
5737 CLASS="emphasis"
5738 ><SAMP
5739 CLASS="computeroutput"
5740 >Start Tape Seq</SAMP
5741 ></B
5742 ></SPAN
5743 ></DT
5744 ><DD
5745 ><P
5746 >The ordinal of the tape on which this dump begins in the set of tapes that contain the dump set.</P
5747 ></DD
5748 ></DL
5749 ></DIV
5750 ></P
5751 ></LI
5752 ><LI
5753 ><P
5754 >For each tape that contains data from this dump, there follows a section headed by the underlined string
5755             <SAMP
5756 CLASS="computeroutput"
5757 >Tape</SAMP
5758 >. The fields labeled <SAMP
5759 CLASS="computeroutput"
5760 >name</SAMP
5761 >,
5762             <SAMP
5763 CLASS="computeroutput"
5764 >written</SAMP
5765 >, and <SAMP
5766 CLASS="computeroutput"
5767 >nVolumes</SAMP
5768 > report the same values (though
5769             in a different order) as appear on the second and third lines of output when the <SPAN
5770 CLASS="bold"
5771 ><B
5772 CLASS="emphasis"
5773 >-id</B
5774 ></SPAN
5775 >
5776             argument is provided by itself. Other fields of potential interest to the backup operator are: <DIV
5777 CLASS="variablelist"
5778 ><DL
5779 ><DT
5780 ><SAMP
5781 CLASS="computeroutput"
5782 >expires</SAMP
5783 ></DT
5784 ><DD
5785 ><P
5786 >The date and time when this tape can be recycled, because all dumps it contains have expired.</P
5787 ></DD
5788 ><DT
5789 ><SAMP
5790 CLASS="computeroutput"
5791 >nMBytes Data</SAMP
5792 > and <SAMP
5793 CLASS="computeroutput"
5794 >nBytes Data</SAMP
5795 ></DT
5796 ><DD
5797 ><P
5798 >Summed together, these fields represent the total amount of dumped data actually from volumes (as opposed
5799                     to labels, filemarks, and other markers).</P
5800 ></DD
5801 ><DT
5802 ><SAMP
5803 CLASS="computeroutput"
5804 >KBytes Tape Used</SAMP
5805 ></DT
5806 ><DD
5807 ><P
5808 >The number of kilobytes of tape (or disk space, for a backup data file) used to store the dump data. It is
5809                     generally larger than the sum of the values in the <SAMP
5810 CLASS="computeroutput"
5811 >nMBytes Data</SAMP
5812 > and
5813                     <SAMP
5814 CLASS="computeroutput"
5815 >nBytes Data</SAMP
5816 > fields, because it includes the space required for the label, file
5817                     marks and other markers, and because the Backup System writes data at 16 KB offsets, even if the data in a given
5818                     block doesn't fill the entire 16 KB.</P
5819 ></DD
5820 ></DL
5821 ></DIV
5822 ></P
5823 ></LI
5824 ><LI
5825 ><P
5826 >For each volume on a given tape, there follows a section headed by the underlined string
5827             <SAMP
5828 CLASS="computeroutput"
5829 >Volume</SAMP
5830 >. The fields labeled <SAMP
5831 CLASS="computeroutput"
5832 >name</SAMP
5833 >,
5834             <SAMP
5835 CLASS="computeroutput"
5836 >position</SAMP
5837 >, <SAMP
5838 CLASS="computeroutput"
5839 >clone</SAMP
5840 >, and
5841             <SAMP
5842 CLASS="computeroutput"
5843 >nBytes</SAMP
5844 > report the same values (though in a different order) as appear in the table that
5845             lists the volumes in each tape when the <SPAN
5846 CLASS="bold"
5847 ><B
5848 CLASS="emphasis"
5849 >-id</B
5850 ></SPAN
5851 > argument is provided by itself. Other
5852             fields of potential interest to the backup operator are: <DIV
5853 CLASS="variablelist"
5854 ><DL
5855 ><DT
5856 ><SAMP
5857 CLASS="computeroutput"
5858 >id</SAMP
5859 ></DT
5860 ><DD
5861 ><P
5862 >The volume ID.</P
5863 ></DD
5864 ><DT
5865 ><SAMP
5866 CLASS="computeroutput"
5867 >tape</SAMP
5868 ></DT
5869 ><DD
5870 ><P
5871 >The name of the tape containing this volume data.</P
5872 ></DD
5873 ></DL
5874 ></DIV
5875 ></P
5876 ></LI
5877 ></UL
5878 ></P
5879 ><P
5880 >The following example command displays the Backup Database records for the five most recent dump operations.</P
5881 ><PRE
5882 CLASS="programlisting"
5883 >&#13;   % <SPAN
5884 CLASS="bold"
5885 ><B
5886 CLASS="emphasis"
5887 >backup dump 5</B
5888 ></SPAN
5889 >
5890       dumpid   parentid lv created          nt nvols dump name
5891    924424000          0 0  04/18/1999 04:26  1    22 usr.sun (924424000)
5892    924685000  924424000 1  04/21/1999 04:56  1    62 usr.wed (924424000)
5893    924773000  924424000 1  04/22/1999 05:23  1    46 usr.thu (924424000)
5894    924860000  924424000 1  04/23/1999 05:33  1    58 usr.fri (924424000)
5895    925033000          0 0  04/25/1999 05:36  2    73 sys.week
5896 </PRE
5897 ></DIV
5898 ><DIV
5899 CLASS="sect2"
5900 ><H2
5901 CLASS="sect2"
5902 ><A
5903 NAME="HDRWQ304"
5904 >To display a volume's dump history</A
5905 ></H2
5906 ><OL
5907 TYPE="1"
5908 ><LI
5909 ><P
5910 >Verify that you are authenticated as a user listed in the <SPAN
5911 CLASS="bold"
5912 ><B
5913 CLASS="emphasis"
5914 >/usr/afs/etc/UserList</B
5915 ></SPAN
5916 >
5917           file. If necessary, issue the <SPAN
5918 CLASS="bold"
5919 ><B
5920 CLASS="emphasis"
5921 >bos listusers</B
5922 ></SPAN
5923 > command, which is fully described in <A
5924 HREF="c32432.html#HDRWQ593"
5925 >To display the users in the UserList file</A
5926 >. <PRE
5927 CLASS="programlisting"
5928 >&#13;   % <SPAN
5929 CLASS="bold"
5930 ><B
5931 CLASS="emphasis"
5932 >bos listusers</B
5933 ></SPAN
5934 > &#60;<SPAN
5935 CLASS="emphasis"
5936 ><I
5937 CLASS="emphasis"
5938 >machine name</I
5939 ></SPAN
5940 >&#62;
5941 </PRE
5942 ></P
5943 ></LI
5944 ><LI
5945 ><P
5946 >Issue the <SPAN
5947 CLASS="bold"
5948 ><B
5949 CLASS="emphasis"
5950 >backup volinfo</B
5951 ></SPAN
5952 > command to display a volume's dump history.
5953           <PRE
5954 CLASS="programlisting"
5955 >&#13;   % <SPAN
5956 CLASS="bold"
5957 ><B
5958 CLASS="emphasis"
5959 >backup volinfo</B
5960 ></SPAN
5961 > &#60;<SPAN
5962 CLASS="emphasis"
5963 ><I
5964 CLASS="emphasis"
5965 >volume name</I
5966 ></SPAN
5967 >&#62;
5968 </PRE
5969 ></P
5970 ><P
5971 >where <DIV
5972 CLASS="variablelist"
5973 ><DL
5974 ><DT
5975 ><SPAN
5976 CLASS="bold"
5977 ><B
5978 CLASS="emphasis"
5979 >voli</B
5980 ></SPAN
5981 ></DT
5982 ><DD
5983 ><P
5984 >Is the shortest acceptable abbreviation of <SPAN
5985 CLASS="bold"
5986 ><B
5987 CLASS="emphasis"
5988 >volinfo</B
5989 ></SPAN
5990 >.</P
5991 ></DD
5992 ><DT
5993 ><SPAN
5994 CLASS="bold"
5995 ><B
5996 CLASS="emphasis"
5997 >volume name</B
5998 ></SPAN
5999 ></DT
6000 ><DD
6001 ><P
6002 >Names the volume for which to display the dump history. If you dumped the backup or read-only version of the
6003                   volume, include the <SPAN
6004 CLASS="bold"
6005 ><B
6006 CLASS="emphasis"
6007 >.backup</B
6008 ></SPAN
6009 > or <SPAN
6010 CLASS="bold"
6011 ><B
6012 CLASS="emphasis"
6013 >.readonly</B
6014 ></SPAN
6015 >
6016                   extension.</P
6017 ></DD
6018 ></DL
6019 ></DIV
6020 ></P
6021 ></LI
6022 ></OL
6023 ><P
6024 >The output includes a line for each Backup Database dump record that mentions the specified volume, order from most to
6025       least recent. The output for each record appears in a table with six columns: <DIV
6026 CLASS="variablelist"
6027 ><DL
6028 ><DT
6029 ><SAMP
6030 CLASS="computeroutput"
6031 >dumpID</SAMP
6032 ></DT
6033 ><DD
6034 ><P
6035 >The dump ID of the dump that includes the volume.</P
6036 ></DD
6037 ><DT
6038 ><SAMP
6039 CLASS="computeroutput"
6040 >lvl</SAMP
6041 ></DT
6042 ><DD
6043 ><P
6044 >The depth in the dump hierarchy of the dump level at which the volume was dumped. A value of
6045               <SAMP
6046 CLASS="computeroutput"
6047 >0</SAMP
6048 > indicates a full dump. A value of <SAMP
6049 CLASS="computeroutput"
6050 >1</SAMP
6051 > or greater
6052               indicates an incremental dump made at the specified depth in the dump hierarchy.</P
6053 ></DD
6054 ><DT
6055 ><SAMP
6056 CLASS="computeroutput"
6057 >parentid</SAMP
6058 ></DT
6059 ><DD
6060 ><P
6061 >The dump ID of the dump's parent dump. A value of <SAMP
6062 CLASS="computeroutput"
6063 >0</SAMP
6064 > indicates a full dump,
6065               which has no parent; in this case, the value in the <SAMP
6066 CLASS="computeroutput"
6067 >lvl</SAMP
6068 > column is also
6069               <SAMP
6070 CLASS="computeroutput"
6071 >0</SAMP
6072 >.</P
6073 ></DD
6074 ><DT
6075 ><SAMP
6076 CLASS="computeroutput"
6077 >creation date</SAMP
6078 ></DT
6079 ><DD
6080 ><P
6081 >The date and time at which the Backup System started the dump operation that created the dump.</P
6082 ></DD
6083 ><DT
6084 ><SAMP
6085 CLASS="computeroutput"
6086 >clone date</SAMP
6087 ></DT
6088 ><DD
6089 ><P
6090 >For a backup or read-only volume, the time at which it was cloned from its read/write source. For a read/write
6091               volume, the same as the value in the <SAMP
6092 CLASS="computeroutput"
6093 >creation date</SAMP
6094 > field.</P
6095 ></DD
6096 ><DT
6097 ><SAMP
6098 CLASS="computeroutput"
6099 >tape name</SAMP
6100 ></DT
6101 ><DD
6102 ><P
6103 >The name of the tape containing the dump: either the permanent tape name, or an AFS tape name in the format
6104               <SPAN
6105 CLASS="emphasis"
6106 ><I
6107 CLASS="emphasis"
6108 >volume_set_name</I
6109 ></SPAN
6110 >.<SPAN
6111 CLASS="emphasis"
6112 ><I
6113 CLASS="emphasis"
6114 >dump_level_name</I
6115 ></SPAN
6116 >.<SPAN
6117 CLASS="emphasis"
6118 ><I
6119 CLASS="emphasis"
6120 >tape_index</I
6121 ></SPAN
6122 > where
6123               <SPAN
6124 CLASS="emphasis"
6125 ><I
6126 CLASS="emphasis"
6127 >volume_set_name</I
6128 ></SPAN
6129 > is the name of the volume set associated with the initial dump in the dump set of
6130               which this tape is a part; <SPAN
6131 CLASS="emphasis"
6132 ><I
6133 CLASS="emphasis"
6134 >dump_level_name</I
6135 ></SPAN
6136 > is the name of the dump level at which the initial
6137               dump was backed up; <SPAN
6138 CLASS="emphasis"
6139 ><I
6140 CLASS="emphasis"
6141 >tape_index</I
6142 ></SPAN
6143 > is the ordinal of the tape in the dump set. Either type of name
6144               can be followed by a dump ID in parentheses; if it appears, it is the dump ID of the initial dump in the dump set to
6145               which this appended dump belongs.</P
6146 ></DD
6147 ></DL
6148 ></DIV
6149 ></P
6150 ><P
6151 >The following example shows part of the dump history of the backup volume <SPAN
6152 CLASS="bold"
6153 ><B
6154 CLASS="emphasis"
6155 >user.smith.backup</B
6156 ></SPAN
6157 >:</P
6158 ><PRE
6159 CLASS="programlisting"
6160 >&#13;   % <SPAN
6161 CLASS="bold"
6162 ><B
6163 CLASS="emphasis"
6164 >backup volinfo user.smith.backup</B
6165 ></SPAN
6166 >
6167    DumpID    lvl parentID  creation   date  clone date       tape name
6168    924600000 1   924427600 04/20/1999 05:20 04/20/1999 05:01 user_incr_2 (924514392)
6169    924514392 1   924427600 04/19/1999 05:33 04/19/1999 05:08 user_incr_2 
6170    924427600 0           0 04/18/1999 05:26 04/18/1999 04:58 user_full_6 
6171        .     .      .         .       .       .      .         .
6172        .     .      .         .       .       .      .         .
6173 </PRE
6174 ></DIV
6175 ><DIV
6176 CLASS="sect2"
6177 ><H2
6178 CLASS="sect2"
6179 ><A
6180 NAME="HDRWQ305"
6181 >To scan the contents of a tape</A
6182 ></H2
6183 ><DIV
6184 CLASS="note"
6185 ><BLOCKQUOTE
6186 CLASS="note"
6187 ><P
6188 ><B
6189 >Note: </B
6190 >The ability to scan a tape that is corrupted or damaged depends on the extent of the damage and what type of data is
6191         corrupted. The Backup System can almost always scan the tape successfully up to the point of damage. If the damage is minor,
6192         the Backup System can usually skip over it and scan the rest of the tape, but more major damage can prevent further
6193         scanning. A scanning operation does not have to begin with the first tape in a dump set, but the Backup System can process
6194         tapes only in sequential order after the initial tape provided. Therefore, damage on one tape does not prevent scanning of
6195         the others in the dump set, but it is possible to scan either the tapes that precede the damaged one or the ones that follow
6196         it, not both.</P
6197 ></BLOCKQUOTE
6198 ></DIV
6199 ><P
6200 >If you use the <SPAN
6201 CLASS="bold"
6202 ><B
6203 CLASS="emphasis"
6204 >-dbadd</B
6205 ></SPAN
6206 > flag to scan information into the Backup Database and the first
6207       tape you provide is not the first tape in the dump set, the following restrictions apply: <UL
6208 ><LI
6209 ><P
6210 >If the first data on the tape is a continuation of a volume that begins on the previous (unscanned) tape in the
6211             dump set, the Backup System does not add a record for that volume to the Backup Database.</P
6212 ></LI
6213 ><LI
6214 ><P
6215 >The Backup System must read the marker that indicates the start of an appended dump to add database records for
6216             the volumes in it. If the first volume on the tape belongs to an appended dump, but is not immediately preceded by the
6217             appended-dump marker, the Backup System does not create a Backup Database record for it or any subsequent volumes that
6218             belong to that appended dump.</P
6219 ></LI
6220 ></UL
6221 > <OL
6222 TYPE="1"
6223 ><LI
6224 ><P
6225 >Verify that you are authenticated as a user listed in the <SPAN
6226 CLASS="bold"
6227 ><B
6228 CLASS="emphasis"
6229 >/usr/afs/etc/UserList</B
6230 ></SPAN
6231 >
6232             file. If necessary, issue the <SPAN
6233 CLASS="bold"
6234 ><B
6235 CLASS="emphasis"
6236 >bos listusers</B
6237 ></SPAN
6238 > command, which is fully described in <A
6239 HREF="c32432.html#HDRWQ593"
6240 >To display the users in the UserList file</A
6241 >. <PRE
6242 CLASS="programlisting"
6243 >&#13;   % <SPAN
6244 CLASS="bold"
6245 ><B
6246 CLASS="emphasis"
6247 >bos listusers</B
6248 ></SPAN
6249 > &#60;<SPAN
6250 CLASS="emphasis"
6251 ><I
6252 CLASS="emphasis"
6253 >machine name</I
6254 ></SPAN
6255 >&#62;
6256 </PRE
6257 ></P
6258 ></LI
6259 ><LI
6260 ><P
6261 >If the Tape Coordinator for the tape device that is to perform the operation is not already running, open a
6262             connection to the appropriate Tape Coordinator machine and issue the <SPAN
6263 CLASS="bold"
6264 ><B
6265 CLASS="emphasis"
6266 >butc</B
6267 ></SPAN
6268 > command, for
6269             which complete instructions appear in <A
6270 HREF="c15383.html#HDRWQ292"
6271 >To start a Tape Coordinator process</A
6272 >.
6273             <PRE
6274 CLASS="programlisting"
6275 >&#13;   % <SPAN
6276 CLASS="bold"
6277 ><B
6278 CLASS="emphasis"
6279 >butc</B
6280 ></SPAN
6281 > [&#60;<SPAN
6282 CLASS="emphasis"
6283 ><I
6284 CLASS="emphasis"
6285 >port offset</I
6286 ></SPAN
6287 >&#62;] [<SPAN
6288 CLASS="bold"
6289 ><B
6290 CLASS="emphasis"
6291 >-noautoquery</B
6292 ></SPAN
6293 >]
6294 </PRE
6295 ></P
6296 ></LI
6297 ><LI
6298 ><P
6299 >If scanning a tape, place it in the drive.</P
6300 ></LI
6301 ><LI
6302 ><P
6303 ><SPAN
6304 CLASS="bold"
6305 ><B
6306 CLASS="emphasis"
6307 >(Optional)</B
6308 ></SPAN
6309 > Issue the <SPAN
6310 CLASS="bold"
6311 ><B
6312 CLASS="emphasis"
6313 >backup</B
6314 ></SPAN
6315 > command to enter
6316             interactive mode. <PRE
6317 CLASS="programlisting"
6318 >&#13;   % <SPAN
6319 CLASS="bold"
6320 ><B
6321 CLASS="emphasis"
6322 >backup</B
6323 ></SPAN
6324 >
6325 </PRE
6326 ></P
6327 ></LI
6328 ><LI
6329 ><P
6330 >Issue the <SPAN
6331 CLASS="bold"
6332 ><B
6333 CLASS="emphasis"
6334 >backup scantape</B
6335 ></SPAN
6336 > command to read the contents of the tape.
6337             <PRE
6338 CLASS="programlisting"
6339 >&#13;   backup&#62; <SPAN
6340 CLASS="bold"
6341 ><B
6342 CLASS="emphasis"
6343 >scantape</B
6344 ></SPAN
6345 > [<SPAN
6346 CLASS="bold"
6347 ><B
6348 CLASS="emphasis"
6349 >-dbadd</B
6350 ></SPAN
6351 >] [<SPAN
6352 CLASS="bold"
6353 ><B
6354 CLASS="emphasis"
6355 >-portoffset</B
6356 ></SPAN
6357 > &#60;<SPAN
6358 CLASS="emphasis"
6359 ><I
6360 CLASS="emphasis"
6361 >TC port offset</I
6362 ></SPAN
6363 >&#62;]
6364 </PRE
6365 ></P
6366 ><P
6367 >where <DIV
6368 CLASS="variablelist"
6369 ><DL
6370 ><DT
6371 ><SPAN
6372 CLASS="bold"
6373 ><B
6374 CLASS="emphasis"
6375 >sc</B
6376 ></SPAN
6377 ></DT
6378 ><DD
6379 ><P
6380 >Is the shortest acceptable abbreviation of <SPAN
6381 CLASS="bold"
6382 ><B
6383 CLASS="emphasis"
6384 >scantape</B
6385 ></SPAN
6386 >.</P
6387 ></DD
6388 ><DT
6389 ><SPAN
6390 CLASS="bold"
6391 ><B
6392 CLASS="emphasis"
6393 >-dbadd</B
6394 ></SPAN
6395 ></DT
6396 ><DD
6397 ><P
6398 >Constructs dump and tape records from the tape and dump labels in the dump and writes them into the Backup
6399                     Database.</P
6400 ></DD
6401 ><DT
6402 ><SPAN
6403 CLASS="bold"
6404 ><B
6405 CLASS="emphasis"
6406 >TC port offset</B
6407 ></SPAN
6408 ></DT
6409 ><DD
6410 ><P
6411 >Specifies the port offset number of the Tape Coordinator process that is handling the operation. You must
6412                     provide this argument unless the default value of 0 (zero) is appropriate.</P
6413 ></DD
6414 ></DL
6415 ></DIV
6416 ></P
6417 ></LI
6418 ><LI
6419 ><P
6420 >If you did not include the <SPAN
6421 CLASS="bold"
6422 ><B
6423 CLASS="emphasis"
6424 >-noautoquery</B
6425 ></SPAN
6426 > flag when you issued the <SPAN
6427 CLASS="bold"
6428 ><B
6429 CLASS="emphasis"
6430 >butc</B
6431 ></SPAN
6432 > command, or the device's <SPAN
6433 CLASS="bold"
6434 ><B
6435 CLASS="emphasis"
6436 >CFG_</B
6437 ></SPAN
6438 >device_name configuration file
6439             includes the instruction <SPAN
6440 CLASS="bold"
6441 ><B
6442 CLASS="emphasis"
6443 >AUTOQUERY YES</B
6444 ></SPAN
6445 > instruction, then the Tape Coordinator prompts
6446             you to place the tape in the device's drive. You have already done so, but you must now press &#60;<SPAN
6447 CLASS="bold"
6448 ><B
6449 CLASS="emphasis"
6450 >Return</B
6451 ></SPAN
6452 >&#62; to indicate that the tape is ready for reading.</P
6453 ></LI
6454 ></OL
6455 ></P
6456 ><P
6457 >To terminate a tape scanning operation, use a termination signal such as &#60;<SPAN
6458 CLASS="bold"
6459 ><B
6460 CLASS="emphasis"
6461 >Ctrl-c</B
6462 ></SPAN
6463 >&#62;, or issue the <SPAN
6464 CLASS="bold"
6465 ><B
6466 CLASS="emphasis"
6467 >(backup) kill</B
6468 ></SPAN
6469 > command in interactive mode. It
6470       is best not to interrupt the scan if you included the <SPAN
6471 CLASS="bold"
6472 ><B
6473 CLASS="emphasis"
6474 >-dbadd</B
6475 ></SPAN
6476 > argument. If the Backup System
6477       has already written new records into the Backup Database, then you must remove them before rerunning the scanning operation.
6478       If during the repeated scan operation the Backup System finds that a record it needs to create already exists, it halts the
6479       operation.</P
6480 ><P
6481 >For each dump on the tape, the output in the Tape Coordinator window displays the dump label followed by an entry for
6482       each volume. There is no output in the command window. The dump label has the same fields as the tape label displayed by the
6483       <SPAN
6484 CLASS="bold"
6485 ><B
6486 CLASS="emphasis"
6487 >backup readlabel</B
6488 ></SPAN
6489 > command, as described in <A
6490 HREF="c12776.html#HDRWQ272"
6491 >Writing and Reading Tape
6492       Labels</A
6493 >. Or see the <SPAN
6494 CLASS="emphasis"
6495 ><I
6496 CLASS="emphasis"
6497 >IBM AFS Administration Reference</I
6498 ></SPAN
6499 > for a detailed description of the fields in
6500       the output.</P
6501 ><P
6502 >The following example shows the dump label and first volume entry on the tape in the device that has port offset
6503       2:</P
6504 ><PRE
6505 CLASS="programlisting"
6506 >&#13;   % <SPAN
6507 CLASS="bold"
6508 ><B
6509 CLASS="emphasis"
6510 >backup scantape 2</B
6511 ></SPAN
6512 >
6513    -- Dump label --
6514    tape name = monthly_guest
6515    AFS tape name = guests.monthly.3
6516    creationTime =  Mon Feb  1 04:06:40 1999
6517    cell = abc.com
6518    size = 2150000 Kbytes
6519    dump path = /monthly
6520    dump id = 917860000
6521    useCount = 44
6522    -- End of dump label --
6523    -- volume --
6524    volume name: user.guest10.backup
6525    volume ID 1937573829
6526    dumpSetName: guests.monthly
6527    dumpID 917860000
6528    level 0
6529    parentID 0
6530    endTime 0
6531    clonedate Mon Feb  1 03:03:23 1999
6532 </PRE
6533 ></DIV
6534 ></DIV
6535 ><DIV
6536 CLASS="sect1"
6537 ><H1
6538 CLASS="sect1"
6539 ><A
6540 NAME="HDRWQ306"
6541 >Restoring and Recovering Data</A
6542 ></H1
6543 ><P
6544 >The purpose of making backups is to enable you to recover when data becomes corrupted or is removed accidentally,
6545     returning the data to a coherent past state. The AFS Backup System provides three commands that restore varying numbers of
6546     volumes: <UL
6547 ><LI
6548 ><P
6549 >To restore one or more volumes to a single site (partition on an AFS file server machine), use the <SPAN
6550 CLASS="bold"
6551 ><B
6552 CLASS="emphasis"
6553 >backup volrestore</B
6554 ></SPAN
6555 > command.</P
6556 ></LI
6557 ><LI
6558 ><P
6559 >To restore one or more volumes that are defined as a volume set, each to a specified site, use the <SPAN
6560 CLASS="bold"
6561 ><B
6562 CLASS="emphasis"
6563 >backup volsetrestore</B
6564 ></SPAN
6565 > command.</P
6566 ></LI
6567 ><LI
6568 ><P
6569 >To restore an entire partition (that is, all of the volumes that the VLDB lists as resident on it), use the
6570           <SPAN
6571 CLASS="bold"
6572 ><B
6573 CLASS="emphasis"
6574 >backup diskrestore</B
6575 ></SPAN
6576 > command.</P
6577 ></LI
6578 ></UL
6579 ></P
6580 ><P
6581 >The commands are suited to different purposes because they vary in the combinations of features they offer and in the
6582     requirements they impose. To decide which is appropriate for a specific restore operation, see the subsequent sections of this
6583     introduction: <A
6584 HREF="c15383.html#HDRWQ308"
6585 >Using the backup volrestore Command</A
6586 >, <A
6587 HREF="c15383.html#HDRWQ310"
6588 >Using the backup
6589     diskrestore Command</A
6590 >, and <A
6591 HREF="c15383.html#HDRWQ312"
6592 >Using the backup volsetrestore Command</A
6593 >.</P
6594 ><DIV
6595 CLASS="sect2"
6596 ><H2
6597 CLASS="sect2"
6598 ><A
6599 NAME="HDRWQ307"
6600 >Making Restore Operations More Efficient</A
6601 ></H2
6602 ><P
6603 >The following comments apply to all types of restore operation: <UL
6604 ><LI
6605 ><P
6606 >The Backup System begins by restoring the most recent full dump of a volume. As it restores subsequent incremental
6607             dumps, it alters the data in the full dump appropriately, essentially repeating the volume's change history. The
6608             <SPAN
6609 CLASS="bold"
6610 ><B
6611 CLASS="emphasis"
6612 >backup diskrestore</B
6613 ></SPAN
6614 > and <SPAN
6615 CLASS="bold"
6616 ><B
6617 CLASS="emphasis"
6618 >backup volsetrestore</B
6619 ></SPAN
6620 > commands
6621             always restore all incremental dumps, bringing a volume to its state at the time of the most recent incremental dump.
6622             You can use the <SPAN
6623 CLASS="bold"
6624 ><B
6625 CLASS="emphasis"
6626 >backup volrestore</B
6627 ></SPAN
6628 > command to return a volume to its state at a
6629             specified time in the past, by not restoring the data from incremental dumps performed after that time.</P
6630 ></LI
6631 ><LI
6632 ><P
6633 >The Backup System sets a restored volume's creation date to the date and time of the restore operation. The
6634             creation date appears in the <SAMP
6635 CLASS="computeroutput"
6636 >Creation</SAMP
6637 > field of the output from the <SPAN
6638 CLASS="bold"
6639 ><B
6640 CLASS="emphasis"
6641 >vos examine</B
6642 ></SPAN
6643 > and <SPAN
6644 CLASS="bold"
6645 ><B
6646 CLASS="emphasis"
6647 >vos listvol</B
6648 ></SPAN
6649 > commands.</P
6650 ></LI
6651 ><LI
6652 ><P
6653 >When identifying the volumes to restore, it is best to specify the base (read/write) name. In this case, the
6654             Backup System searches the Backup Database for the most recent dump set that includes data from either the read/write or
6655             backup version of the volume, and restores dumps of that volume starting with the most recent full dump. If you include
6656             the <SPAN
6657 CLASS="bold"
6658 ><B
6659 CLASS="emphasis"
6660 >.backup</B
6661 ></SPAN
6662 > or <SPAN
6663 CLASS="bold"
6664 ><B
6665 CLASS="emphasis"
6666 >.readonly</B
6667 ></SPAN
6668 > extension on the volume name,
6669             the Backup System restores dumps of that version only. If it cannot find data dumped from that version, it does not
6670             perform the restoration even if another version was dumped.</P
6671 ></LI
6672 ><LI
6673 ><P
6674 >All three restoration commands accept the <SPAN
6675 CLASS="bold"
6676 ><B
6677 CLASS="emphasis"
6678 >-n</B
6679 ></SPAN
6680 > option, which generates a list of
6681             the volumes to be restored and the tapes or backup data files that contain the necessary dumps, without actually
6682             restoring data to AFS server partitions. This enables you to gather together the tapes before beginning the restore
6683             operation, even preloading them into a stacker or jukebox if you are using one.</P
6684 ></LI
6685 ><LI
6686 ><P
6687 >If you back up AFS data to tape, restoration is simplest if all of your tape devices are compatible, meaning that
6688             they can read the same type of tape, at the same compression ratios, and so on. (This suggestion also appears in <A
6689 HREF="c15383.html#HDRWQ297"
6690 >Making Backup Operations More Efficient</A
6691 >, because by the time you need to restore data it is
6692             too late to implement it.) You can still restore multiple volumes with a single command even if data was backed up using
6693             incompatible devices, because the <SPAN
6694 CLASS="bold"
6695 ><B
6696 CLASS="emphasis"
6697 >-portoffset</B
6698 ></SPAN
6699 > argument to all three restoration
6700             commands accepts multiple values. However, the Backup System uses the first port offset listed when restoring the full
6701             dump of each volume, the next port offset when restoring the level 1 incremental dump of each volume, and so on. If you
6702             did not use a compatible tape device when creating the full dump of every volume (and at each incremental level too),
6703             you cannot restore multiple volumes with a single command. You must use the <SPAN
6704 CLASS="bold"
6705 ><B
6706 CLASS="emphasis"
6707 >backup
6708             volrestore</B
6709 ></SPAN
6710 > command to restore one volume at a time, or use the <SPAN
6711 CLASS="bold"
6712 ><B
6713 CLASS="emphasis"
6714 >backup
6715             volsetrestore</B
6716 ></SPAN
6717 > command after defining volume sets that group volumes according to the tape device used to dump
6718             them.</P
6719 ></LI
6720 ><LI
6721 ><P
6722 >During a restore operation, the Backup System uses instructions in the relevant <SPAN
6723 CLASS="bold"
6724 ><B
6725 CLASS="emphasis"
6726 >CFG_</B
6727 ></SPAN
6728 >device_name configuration file in much the same way as during a dump operation, as described
6729             in <A
6730 HREF="c15383.html#HDRWQ298"
6731 >How Your Configuration Choices Influence the Dump Process</A
6732 >. It uses the <SPAN
6733 CLASS="bold"
6734 ><B
6735 CLASS="emphasis"
6736 >MOUNT</B
6737 ></SPAN
6738 >, <SPAN
6739 CLASS="bold"
6740 ><B
6741 CLASS="emphasis"
6742 >UNMOUNT</B
6743 ></SPAN
6744 >, <SPAN
6745 CLASS="bold"
6746 ><B
6747 CLASS="emphasis"
6748 >AUTOQUERY</B
6749 ></SPAN
6750 >,
6751             <SPAN
6752 CLASS="bold"
6753 ><B
6754 CLASS="emphasis"
6755 >BUFFERSIZE</B
6756 ></SPAN
6757 >, and <SPAN
6758 CLASS="bold"
6759 ><B
6760 CLASS="emphasis"
6761 >FILE</B
6762 ></SPAN
6763 > instructions just as for a dump
6764             operation. A difference for the <SPAN
6765 CLASS="bold"
6766 ><B
6767 CLASS="emphasis"
6768 >BUFFERSIZE</B
6769 ></SPAN
6770 > instruction is that the default buffer size
6771             overridden by the instruction is 32 KB for restore operations rather than the 16 KB used for dump operations. The Backup
6772             System does not use the <SPAN
6773 CLASS="bold"
6774 ><B
6775 CLASS="emphasis"
6776 >NAME_CHECK</B
6777 ></SPAN
6778 > instruction at all during restore operations. The
6779             <SPAN
6780 CLASS="bold"
6781 ><B
6782 CLASS="emphasis"
6783 >ASK</B
6784 ></SPAN
6785 > instruction controls whether the Backup System prompts you if it cannot restore a
6786             volume for any reason. If the setting is <SPAN
6787 CLASS="bold"
6788 ><B
6789 CLASS="emphasis"
6790 >NO</B
6791 ></SPAN
6792 >, it skips the problematic volume and
6793             restores as many of the other volumes as possible.</P
6794 ></LI
6795 ><LI
6796 ><P
6797 >Do not perform a restore operation when you know that there are network, machine, or server process problems that
6798             can prevent the Backup System from accessing volumes or the VLDB. Although the Backup System automatically makes a
6799             number of repeated attempts to restore a volume, the restore operation takes extra time and in some cases stops
6800             completely to prompt you for instructions on how to continue.</P
6801 ></LI
6802 ><LI
6803 ><P
6804 >Avoid halting a restore operation (for instance by issuing the <SPAN
6805 CLASS="bold"
6806 ><B
6807 CLASS="emphasis"
6808 >(backup) kill</B
6809 ></SPAN
6810 >
6811             command in interactive mode). If a restore operation is interrupted for any reason, including causes outside your
6812             control, reissue the same restoration command as soon as is practical; if an outage or other problem caused the
6813             operation to halt, do not continue until the system returns to normal.</P
6814 ><P
6815 >Any volume that is completely restored when the operation halts is online and usable, but very few volumes are
6816             likely to be in this state. When restoring multiple volumes at once, the Backup System restores the full dump of every
6817             volume before beginning the level 1 incremental restore for any of them, and so on, completing the restore of every
6818             volume at a specific incremental level before beginning to restore data from the next incremental level. Unless a volume
6819             was dumped at fewer incremental levels than others being restored as part of the same operation, it is unlikely to be
6820             complete.</P
6821 ><P
6822 >It is even more dangerous to interrupt a restore operation if you are overwriting the current contents of the
6823             volume. Depending on how far the restore operation has progressed, it is possible that the volume is in such an
6824             inconsistent state that the Backup System removes it entirely. The data being restored is still available on tape or in
6825             the backup data file, but you must take extra steps to re-create the volume.</P
6826 ></LI
6827 ></UL
6828 ></P
6829 ></DIV
6830 ><DIV
6831 CLASS="sect2"
6832 ><H2
6833 CLASS="sect2"
6834 ><A
6835 NAME="HDRWQ308"
6836 >Using the backup volrestore Command</A
6837 ></H2
6838 ><P
6839 >The <SPAN
6840 CLASS="bold"
6841 ><B
6842 CLASS="emphasis"
6843 >backup volrestore</B
6844 ></SPAN
6845 > command is most appropriate when you need to restore a few
6846       volumes to a single site (partition on a file server machine). By default, it restores the volumes to their state at the time
6847       of the most recent dump operation (this is termed a <SPAN
6848 CLASS="emphasis"
6849 ><I
6850 CLASS="emphasis"
6851 >full restore</I
6852 ></SPAN
6853 >). You can also use the command to
6854       perform a <SPAN
6855 CLASS="emphasis"
6856 ><I
6857 CLASS="emphasis"
6858 >date-specific restore</I
6859 ></SPAN
6860 >, which restores only the dumps (full and incremental) performed before a
6861       specified date and time, leaving the volume in the state it was in at the time of the final relevant incremental dump. The
6862       <SPAN
6863 CLASS="bold"
6864 ><B
6865 CLASS="emphasis"
6866 >backup diskrestore</B
6867 ></SPAN
6868 > and <SPAN
6869 CLASS="bold"
6870 ><B
6871 CLASS="emphasis"
6872 >backup volsetrestore</B
6873 ></SPAN
6874 > commands can
6875       only perform full restores.</P
6876 ><P
6877 >You can restore data into a new copy of each volume rather than overwriting the current version, by including the
6878       <SPAN
6879 CLASS="bold"
6880 ><B
6881 CLASS="emphasis"
6882 >-extension</B
6883 ></SPAN
6884 > argument. After mounting the new volume in the filespace, you can compare the
6885       contents of the two and decide which to keep permanently.</P
6886 ><P
6887 >The following list summarizes how to combine the <SPAN
6888 CLASS="bold"
6889 ><B
6890 CLASS="emphasis"
6891 >backup volrestore</B
6892 ></SPAN
6893 > command's arguments
6894       to restore a volume in different ways: <UL
6895 ><LI
6896 ><P
6897 >To perform a date-specific restore as described just previously, use the <SPAN
6898 CLASS="bold"
6899 ><B
6900 CLASS="emphasis"
6901 >-date</B
6902 ></SPAN
6903 >
6904             argument to specify the date and optionally time. The Backup System restores the most recent full dump and each
6905             subsequent incremental dump for which the clone date of the volume included in the dump is before the indicated date and
6906             time (for a definition of the clone date, see Step <A
6907 HREF="c15383.html#LIBKOV-CLONEDATE"
6908 >4</A
6909 > in <A
6910 HREF="c15383.html#HDRWQ298"
6911 >How Your Configuration Choices Influence the Dump Process</A
6912 >). You can combine this argument with
6913             the <SPAN
6914 CLASS="bold"
6915 ><B
6916 CLASS="emphasis"
6917 >-extension</B
6918 ></SPAN
6919 > argument to place the date-specific restore in a new volume.</P
6920 ></LI
6921 ><LI
6922 ><P
6923 >To move a volume to a new site as you overwrite its contents with the restored data, use the <SPAN
6924 CLASS="bold"
6925 ><B
6926 CLASS="emphasis"
6927 >-server</B
6928 ></SPAN
6929 > and <SPAN
6930 CLASS="bold"
6931 ><B
6932 CLASS="emphasis"
6933 >-partition</B
6934 ></SPAN
6935 > arguments, singly or in combination, to
6936             specify the new site rather than the current site. The Backup System creates a new volume at that site, removes the
6937             existing volume, and updates the site information in the volume's VLDB entry. The volume's backup version is not removed
6938             automatically from the original site, if it exists. Use the <SPAN
6939 CLASS="bold"
6940 ><B
6941 CLASS="emphasis"
6942 >vos remove</B
6943 ></SPAN
6944 > command to
6945             remove it and the <SPAN
6946 CLASS="bold"
6947 ><B
6948 CLASS="emphasis"
6949 >vos backup</B
6950 ></SPAN
6951 > command to create a backup version at the new site.</P
6952 ></LI
6953 ><LI
6954 ><P
6955 >To create a new volume to house the restored data, rather than overwriting an existing volume, use the <SPAN
6956 CLASS="bold"
6957 ><B
6958 CLASS="emphasis"
6959 >-extension</B
6960 ></SPAN
6961 > argument. The Backup System creates the new volume on the server and partition named
6962             by the <SPAN
6963 CLASS="bold"
6964 ><B
6965 CLASS="emphasis"
6966 >-server</B
6967 ></SPAN
6968 > and <SPAN
6969 CLASS="bold"
6970 ><B
6971 CLASS="emphasis"
6972 >-partition</B
6973 ></SPAN
6974 > arguments, derives its
6975             name by adding the extension to the name specified with the <SPAN
6976 CLASS="bold"
6977 ><B
6978 CLASS="emphasis"
6979 >-volume</B
6980 ></SPAN
6981 > argument, and
6982             creates a new VLDB entry for it. The command does not affect the existing volume in any way. However, if a volume with
6983             the specified extension also already exists, the command overwrites it. To make the contents of the new volume
6984             accessible, use the <SPAN
6985 CLASS="bold"
6986 ><B
6987 CLASS="emphasis"
6988 >fs mkmount</B
6989 ></SPAN
6990 > command to mount it. You can then compare its contents
6991             to those of the existing volume, to see which to retain permanently.</P
6992 ></LI
6993 ><LI
6994 ><P
6995 >To restore a volume that no longer exists on an AFS server partition, but for which you have backed up data,
6996             specify the name of the new volume with the <SPAN
6997 CLASS="bold"
6998 ><B
6999 CLASS="emphasis"
7000 >-volume</B
7001 ></SPAN
7002 > argument and use the <SPAN
7003 CLASS="bold"
7004 ><B
7005 CLASS="emphasis"
7006 >-server</B
7007 ></SPAN
7008 > and <SPAN
7009 CLASS="bold"
7010 ><B
7011 CLASS="emphasis"
7012 >-partition</B
7013 ></SPAN
7014 > arguments to place it at the desired
7015             site. The Backup System creates a new volume and new VLDB entry.</P
7016 ></LI
7017 ></UL
7018 ></P
7019 ></DIV
7020 ><DIV
7021 CLASS="sect2"
7022 ><H2
7023 CLASS="sect2"
7024 ><A
7025 NAME="HDRWQ309"
7026 >To restore volumes with the backup volrestore command</A
7027 ></H2
7028 ><OL
7029 TYPE="1"
7030 ><LI
7031 ><P
7032 >Verify that you are authenticated as a user listed in the <SPAN
7033 CLASS="bold"
7034 ><B
7035 CLASS="emphasis"
7036 >/usr/afs/etc/UserList</B
7037 ></SPAN
7038 >
7039           file. If necessary, issue the <SPAN
7040 CLASS="bold"
7041 ><B
7042 CLASS="emphasis"
7043 >bos listusers</B
7044 ></SPAN
7045 > command, which is fully described in <A
7046 HREF="c32432.html#HDRWQ593"
7047 >To display the users in the UserList file</A
7048 >. <PRE
7049 CLASS="programlisting"
7050 >&#13;   % <SPAN
7051 CLASS="bold"
7052 ><B
7053 CLASS="emphasis"
7054 >bos listusers</B
7055 ></SPAN
7056 > &#60;<SPAN
7057 CLASS="emphasis"
7058 ><I
7059 CLASS="emphasis"
7060 >machine name</I
7061 ></SPAN
7062 >&#62;
7063 </PRE
7064 ></P
7065 ></LI
7066 ><LI
7067 ><P
7068 >If the Tape Coordinator for the tape device that is to perform the operation is not already running, open a
7069           connection to the appropriate Tape Coordinator machine and issue the <SPAN
7070 CLASS="bold"
7071 ><B
7072 CLASS="emphasis"
7073 >butc</B
7074 ></SPAN
7075 > command, for
7076           which complete instructions appear in <A
7077 HREF="c15383.html#HDRWQ292"
7078 >To start a Tape Coordinator process</A
7079 >.
7080           <PRE
7081 CLASS="programlisting"
7082 >&#13;   % <SPAN
7083 CLASS="bold"
7084 ><B
7085 CLASS="emphasis"
7086 >butc</B
7087 ></SPAN
7088 > [&#60;<SPAN
7089 CLASS="emphasis"
7090 ><I
7091 CLASS="emphasis"
7092 >port offset</I
7093 ></SPAN
7094 >&#62;] [<SPAN
7095 CLASS="bold"
7096 ><B
7097 CLASS="emphasis"
7098 >-noautoquery</B
7099 ></SPAN
7100 >]
7101 </PRE
7102 ></P
7103 ><P
7104 >Repeat the command for each Tape Coordinator if you are using more than one tape device.</P
7105 ></LI
7106 ><LI
7107 ><P
7108 >If using a tape device, insert the tape.</P
7109 ></LI
7110 ><LI
7111 ><P
7112 >Issue the <SPAN
7113 CLASS="bold"
7114 ><B
7115 CLASS="emphasis"
7116 >backup</B
7117 ></SPAN
7118 > command to enter interactive mode. <PRE
7119 CLASS="programlisting"
7120 >&#13;   % <SPAN
7121 CLASS="bold"
7122 ><B
7123 CLASS="emphasis"
7124 >backup</B
7125 ></SPAN
7126 >
7127 </PRE
7128 ></P
7129 ></LI
7130 ><LI
7131 ><P
7132 >Issue the <SPAN
7133 CLASS="bold"
7134 ><B
7135 CLASS="emphasis"
7136 >backup volrestore</B
7137 ></SPAN
7138 > command with the desired arguments. <PRE
7139 CLASS="programlisting"
7140 >&#13;   backup&#62; <SPAN
7141 CLASS="bold"
7142 ><B
7143 CLASS="emphasis"
7144 >volrestore</B
7145 ></SPAN
7146 > &#60;<SPAN
7147 CLASS="emphasis"
7148 ><I
7149 CLASS="emphasis"
7150 >destination machine</I
7151 ></SPAN
7152 >&#62; &#60;<SPAN
7153 CLASS="emphasis"
7154 ><I
7155 CLASS="emphasis"
7156 >destination partition</I
7157 ></SPAN
7158 >&#62;  \ 
7159                       <SPAN
7160 CLASS="bold"
7161 ><B
7162 CLASS="emphasis"
7163 >-volume</B
7164 ></SPAN
7165 > &#60;<SPAN
7166 CLASS="emphasis"
7167 ><I
7168 CLASS="emphasis"
7169 >volume(s) to restore</I
7170 ></SPAN
7171 >&#62;+  \
7172                       [<SPAN
7173 CLASS="bold"
7174 ><B
7175 CLASS="emphasis"
7176 >-extension</B
7177 ></SPAN
7178 > &#60;<SPAN
7179 CLASS="emphasis"
7180 ><I
7181 CLASS="emphasis"
7182 >new volume name extension</I
7183 ></SPAN
7184 >&#62;]  \
7185                       [<SPAN
7186 CLASS="bold"
7187 ><B
7188 CLASS="emphasis"
7189 >-date</B
7190 ></SPAN
7191 > &#60;<SPAN
7192 CLASS="emphasis"
7193 ><I
7194 CLASS="emphasis"
7195 >date from which to restore</I
7196 ></SPAN
7197 >&#62;]  \
7198                       [<SPAN
7199 CLASS="bold"
7200 ><B
7201 CLASS="emphasis"
7202 >-portoffset</B
7203 ></SPAN
7204 > &#60;<SPAN
7205 CLASS="emphasis"
7206 ><I
7207 CLASS="emphasis"
7208 >TC port offsets</I
7209 ></SPAN
7210 >&#62;+] [<SPAN
7211 CLASS="bold"
7212 ><B
7213 CLASS="emphasis"
7214 >-n</B
7215 ></SPAN
7216 >]
7217 </PRE
7218 ></P
7219 ><P
7220 >where <DIV
7221 CLASS="variablelist"
7222 ><DL
7223 ><DT
7224 ><SPAN
7225 CLASS="bold"
7226 ><B
7227 CLASS="emphasis"
7228 >volr</B
7229 ></SPAN
7230 ></DT
7231 ><DD
7232 ><P
7233 >Is the shortest acceptable abbreviation of <SPAN
7234 CLASS="bold"
7235 ><B
7236 CLASS="emphasis"
7237 >volrestore</B
7238 ></SPAN
7239 >.</P
7240 ></DD
7241 ><DT
7242 ><SPAN
7243 CLASS="bold"
7244 ><B
7245 CLASS="emphasis"
7246 >destination machine</B
7247 ></SPAN
7248 ></DT
7249 ><DD
7250 ><P
7251 >Names the file server machine on which to restore each volume. It does not have to be a volume's current
7252                   site.</P
7253 ></DD
7254 ><DT
7255 ><SPAN
7256 CLASS="bold"
7257 ><B
7258 CLASS="emphasis"
7259 >destination partition</B
7260 ></SPAN
7261 ></DT
7262 ><DD
7263 ><P
7264 >Names the partition on which to restore each volume. It does not have to be a volume's current site.</P
7265 ></DD
7266 ><DT
7267 ><SPAN
7268 CLASS="bold"
7269 ><B
7270 CLASS="emphasis"
7271 >-volume</B
7272 ></SPAN
7273 ></DT
7274 ><DD
7275 ><P
7276 >Names each volume to restore. It is best to provide the base (read/write) name, for the reasons discussed in
7277                   <A
7278 HREF="c15383.html#HDRWQ307"
7279 >Making Restore Operations More Efficient</A
7280 >.</P
7281 ></DD
7282 ><DT
7283 ><SPAN
7284 CLASS="bold"
7285 ><B
7286 CLASS="emphasis"
7287 >-extension</B
7288 ></SPAN
7289 ></DT
7290 ><DD
7291 ><P
7292 >Creates a new volume to house the restored data, with a name derived by appending the specified string to
7293                   each volume named by the <SPAN
7294 CLASS="bold"
7295 ><B
7296 CLASS="emphasis"
7297 >-volume</B
7298 ></SPAN
7299 > extension. The Backup System preserves the
7300                   contents of the existing volume if it still exists. Do not use either of the <SPAN
7301 CLASS="bold"
7302 ><B
7303 CLASS="emphasis"
7304 >.readonly</B
7305 ></SPAN
7306 > or <SPAN
7307 CLASS="bold"
7308 ><B
7309 CLASS="emphasis"
7310 >.backup</B
7311 ></SPAN
7312 > extensions, which are reserved. The
7313                   combination of base volume name and extension cannot exceed 22 characters in length. If you want a period to
7314                   separate the extension from the name, specify it as the first character of the string (as in <SPAN
7315 CLASS="bold"
7316 ><B
7317 CLASS="emphasis"
7318 >.rst</B
7319 ></SPAN
7320 >, for example).</P
7321 ></DD
7322 ><DT
7323 ><SPAN
7324 CLASS="bold"
7325 ><B
7326 CLASS="emphasis"
7327 >-date</B
7328 ></SPAN
7329 ></DT
7330 ><DD
7331 ><P
7332 >Specifies a date and optionally time; the restored volume includes data from dumps performed before the date
7333                   only. Provide a value in the format mm/dd/yyyy [hh:MM], where the required mm/dd/yyyy portion indicates the month
7334                   (mm), day (dd), and year (yyyy), and the optional hh:MM portion indicates the hour and minutes in 24-hour format
7335                   (for example, the value <SPAN
7336 CLASS="bold"
7337 ><B
7338 CLASS="emphasis"
7339 >14:36</B
7340 ></SPAN
7341 > represents 2:36 p.m.). If omitted, the time
7342                   defaults to 59 seconds after midnight (00:00:59 hours).</P
7343 ><P
7344 >Valid values for the year range from <SPAN
7345 CLASS="bold"
7346 ><B
7347 CLASS="emphasis"
7348 >1970</B
7349 ></SPAN
7350 > to <SPAN
7351 CLASS="bold"
7352 ><B
7353 CLASS="emphasis"
7354 >2037</B
7355 ></SPAN
7356 >; higher values are not valid because the latest possible date in the standard UNIX
7357                   representation is in February 2038. The command interpreter automatically reduces any later date to the maximum
7358                   value.</P
7359 ><DIV
7360 CLASS="note"
7361 ><BLOCKQUOTE
7362 CLASS="note"
7363 ><P
7364 ><B
7365 >Note: </B
7366 >A plus sign follows this argument in the command's syntax statement because it accepts a multiword value
7367                     which does not need to be enclosed in double quotes or other delimiters, not because it accepts multiple dates.
7368                     Provide only one date (and optionally, time) definition.</P
7369 ></BLOCKQUOTE
7370 ></DIV
7371 ></DD
7372 ><DT
7373 ><SPAN
7374 CLASS="bold"
7375 ><B
7376 CLASS="emphasis"
7377 >-portoffset</B
7378 ></SPAN
7379 ></DT
7380 ><DD
7381 ><P
7382 >Specifies one or more port offset numbers, each corresponding to a Tape Coordinator to use in the operation.
7383                   If there is more than one value, the Backup System uses the first one when restoring the full dump of each volume,
7384                   the second one when restoring the level 1 incremental dump of each volume, and so on. It uses the final value in
7385                   the list when restoring dumps at the corresponding depth in the dump hierarchy and all dumps at lower
7386                   levels.</P
7387 ><P
7388 >Provide this argument unless the default value of 0 (zero) is appropriate for all dumps. If 0 is just one of
7389                   the values in the list, provide it explicitly in the appropriate order.</P
7390 ></DD
7391 ><DT
7392 ><SPAN
7393 CLASS="bold"
7394 ><B
7395 CLASS="emphasis"
7396 >-n</B
7397 ></SPAN
7398 ></DT
7399 ><DD
7400 ><P
7401 >Displays the list of tapes that contain the dumps required by the restore operation, without actually
7402                   performing the operation.</P
7403 ></DD
7404 ></DL
7405 ></DIV
7406 ></P
7407 ></LI
7408 ><LI
7409 ><P
7410 >If you did not include the <SPAN
7411 CLASS="bold"
7412 ><B
7413 CLASS="emphasis"
7414 >-noautoquery</B
7415 ></SPAN
7416 > flag when you issued the <SPAN
7417 CLASS="bold"
7418 ><B
7419 CLASS="emphasis"
7420 >butc</B
7421 ></SPAN
7422 > command, or the device's <SPAN
7423 CLASS="bold"
7424 ><B
7425 CLASS="emphasis"
7426 >CFG_</B
7427 ></SPAN
7428 >device_name configuration file
7429           includes the instruction <SPAN
7430 CLASS="bold"
7431 ><B
7432 CLASS="emphasis"
7433 >AUTOQUERY YES</B
7434 ></SPAN
7435 >, then the Tape Coordinator prompts you to place
7436           the tape in the device's drive. You have already done so, but you must now press &#60;<SPAN
7437 CLASS="bold"
7438 ><B
7439 CLASS="emphasis"
7440 >Return</B
7441 ></SPAN
7442 >&#62; to indicate that the tape is ready for labeling.</P
7443 ><P
7444 >If more than one tape is required, you must either include the <SPAN
7445 CLASS="bold"
7446 ><B
7447 CLASS="emphasis"
7448 >MOUNT</B
7449 ></SPAN
7450 > instruction in
7451           the <SPAN
7452 CLASS="bold"
7453 ><B
7454 CLASS="emphasis"
7455 >CFG_</B
7456 ></SPAN
7457 >device_name file and stock the corresponding stacker or jukebox with tapes, or
7458           remain at the console to respond to the Tape Coordinator's prompts for subsequent tapes.</P
7459 ></LI
7460 ><LI
7461 ><P
7462 >After the restore operation completes, review the Backup System's log files to check for errors. Use the <SPAN
7463 CLASS="bold"
7464 ><B
7465 CLASS="emphasis"
7466 >bos getlog</B
7467 ></SPAN
7468 > command as instructed in <A
7469 HREF="c6449.html#HDRWQ173"
7470 >Displaying Server Process Log
7471           Files</A
7472 > to read the <SPAN
7473 CLASS="bold"
7474 ><B
7475 CLASS="emphasis"
7476 >/usr/afs/logs/BackupLog</B
7477 ></SPAN
7478 > file, and a text editor on the Tape
7479           Coordinator machine to read the <SPAN
7480 CLASS="bold"
7481 ><B
7482 CLASS="emphasis"
7483 >TE_</B
7484 ></SPAN
7485 >device_name and <SPAN
7486 CLASS="bold"
7487 ><B
7488 CLASS="emphasis"
7489 >TL_</B
7490 ></SPAN
7491 >device_name files in the local <SPAN
7492 CLASS="bold"
7493 ><B
7494 CLASS="emphasis"
7495 >/usr/afs/backup</B
7496 ></SPAN
7497 >
7498           directory.</P
7499 ></LI
7500 ></OL
7501 ></DIV
7502 ><DIV
7503 CLASS="sect2"
7504 ><H2
7505 CLASS="sect2"
7506 ><A
7507 NAME="HDRWQ310"
7508 >Using the backup diskrestore Command</A
7509 ></H2
7510 ><P
7511 >The <SPAN
7512 CLASS="bold"
7513 ><B
7514 CLASS="emphasis"
7515 >backup diskrestore</B
7516 ></SPAN
7517 > command is most appropriate when you need to restore all of the
7518       volumes on an AFS server partition, perhaps because a hardware failure has corrupted or destroyed all of the data. The command
7519       performs a full restore of all of the read/write volumes for which the VLDB lists the specified partition as the current site,
7520       using the dumps of either the read/write or backup version of each volume depending on which type was dumped more recently.
7521       (You can restore any backup or read-only volumes that resided on the partition by using the <SPAN
7522 CLASS="bold"
7523 ><B
7524 CLASS="emphasis"
7525 >vos
7526       backup</B
7527 ></SPAN
7528 > and <SPAN
7529 CLASS="bold"
7530 ><B
7531 CLASS="emphasis"
7532 >vos release</B
7533 ></SPAN
7534 > commands after the <SPAN
7535 CLASS="bold"
7536 ><B
7537 CLASS="emphasis"
7538 >backup
7539       diskrestore</B
7540 ></SPAN
7541 > operation is complete.)</P
7542 ><P
7543 >By default, the Backup System restores the volumes to the site they previously occupied. To move the partition contents
7544       to a different site, use the <SPAN
7545 CLASS="bold"
7546 ><B
7547 CLASS="emphasis"
7548 >-newserver</B
7549 ></SPAN
7550 > and <SPAN
7551 CLASS="bold"
7552 ><B
7553 CLASS="emphasis"
7554 >-newpartition</B
7555 ></SPAN
7556 >
7557       arguments, singly or in combination.</P
7558 ><P
7559 >By default, the Backup System overwrites the contents of existing volumes with the restored data. To create a new volume
7560       to house the restored data instead, use the <SPAN
7561 CLASS="bold"
7562 ><B
7563 CLASS="emphasis"
7564 >-extension</B
7565 ></SPAN
7566 > argument. The Backup System creates
7567       the new volume at the site designated by the <SPAN
7568 CLASS="bold"
7569 ><B
7570 CLASS="emphasis"
7571 >-newserver</B
7572 ></SPAN
7573 > and <SPAN
7574 CLASS="bold"
7575 ><B
7576 CLASS="emphasis"
7577 >-newpartition</B
7578 ></SPAN
7579 > arguments if they are used or the <SPAN
7580 CLASS="bold"
7581 ><B
7582 CLASS="emphasis"
7583 >-server</B
7584 ></SPAN
7585 > and <SPAN
7586 CLASS="bold"
7587 ><B
7588 CLASS="emphasis"
7589 >-partition</B
7590 ></SPAN
7591 > arguments otherwise. It derives the volume name by adding the extension to the read/write
7592       base name listed in the VLDB, and creates a new VLDB entry. The command does not affect the existing volume in any way.
7593       However, if a volume with the specified extension also already exists, the command overwrites it.</P
7594 ><P
7595 >If a partition seems damaged, be sure not to run the <SPAN
7596 CLASS="bold"
7597 ><B
7598 CLASS="emphasis"
7599 >vos syncserv</B
7600 ></SPAN
7601 > command before the
7602       <SPAN
7603 CLASS="bold"
7604 ><B
7605 CLASS="emphasis"
7606 >backup diskrestore</B
7607 ></SPAN
7608 > command. As noted, the Backup System restores volumes according to VLDB
7609       site definitions. The <SPAN
7610 CLASS="bold"
7611 ><B
7612 CLASS="emphasis"
7613 >vos syncserv</B
7614 ></SPAN
7615 > command sometimes removes a volume's VLDB entry when the
7616       corruption on the partition is so severe that the Volume Server cannot confirm the volume's presence.</P
7617 ></DIV
7618 ><DIV
7619 CLASS="sect2"
7620 ><H2
7621 CLASS="sect2"
7622 ><A
7623 NAME="HDRWQ311"
7624 >To restore a partition with the backup diskrestore command</A
7625 ></H2
7626 ><OL
7627 TYPE="1"
7628 ><LI
7629 ><P
7630 >Verify that you are authenticated as a user listed in the <SPAN
7631 CLASS="bold"
7632 ><B
7633 CLASS="emphasis"
7634 >/usr/afs/etc/UserList</B
7635 ></SPAN
7636 >
7637           file. If necessary, issue the <SPAN
7638 CLASS="bold"
7639 ><B
7640 CLASS="emphasis"
7641 >bos listusers</B
7642 ></SPAN
7643 > command, which is fully described in <A
7644 HREF="c32432.html#HDRWQ593"
7645 >To display the users in the UserList file</A
7646 >. <PRE
7647 CLASS="programlisting"
7648 >&#13;   % <SPAN
7649 CLASS="bold"
7650 ><B
7651 CLASS="emphasis"
7652 >bos listusers</B
7653 ></SPAN
7654 > &#60;<SPAN
7655 CLASS="emphasis"
7656 ><I
7657 CLASS="emphasis"
7658 >machine name</I
7659 ></SPAN
7660 >&#62;
7661 </PRE
7662 ></P
7663 ></LI
7664 ><LI
7665 ><P
7666 >If the Tape Coordinator for the tape device that is to perform the operation is not already running, open a
7667           connection to the appropriate Tape Coordinator machine and issue the <SPAN
7668 CLASS="bold"
7669 ><B
7670 CLASS="emphasis"
7671 >butc</B
7672 ></SPAN
7673 > command, for
7674           which complete instructions appear in <A
7675 HREF="c15383.html#HDRWQ292"
7676 >To start a Tape Coordinator process</A
7677 >.
7678           <PRE
7679 CLASS="programlisting"
7680 >&#13;   % <SPAN
7681 CLASS="bold"
7682 ><B
7683 CLASS="emphasis"
7684 >butc</B
7685 ></SPAN
7686 > [&#60;<SPAN
7687 CLASS="emphasis"
7688 ><I
7689 CLASS="emphasis"
7690 >port offset</I
7691 ></SPAN
7692 >&#62;] [<SPAN
7693 CLASS="bold"
7694 ><B
7695 CLASS="emphasis"
7696 >-noautoquery</B
7697 ></SPAN
7698 >]
7699 </PRE
7700 ></P
7701 ><P
7702 >Repeat the command for each Tape Coordinator if you are using more than one tape device.</P
7703 ></LI
7704 ><LI
7705 ><P
7706 >If using a tape device, insert the tape.</P
7707 ></LI
7708 ><LI
7709 ><P
7710 >Issue the <SPAN
7711 CLASS="bold"
7712 ><B
7713 CLASS="emphasis"
7714 >backup</B
7715 ></SPAN
7716 > command to enter interactive mode. <PRE
7717 CLASS="programlisting"
7718 >&#13;   % <SPAN
7719 CLASS="bold"
7720 ><B
7721 CLASS="emphasis"
7722 >backup</B
7723 ></SPAN
7724 >
7725 </PRE
7726 ></P
7727 ></LI
7728 ><LI
7729 ><P
7730 >Issue the <SPAN
7731 CLASS="bold"
7732 ><B
7733 CLASS="emphasis"
7734 >backup diskrestore</B
7735 ></SPAN
7736 > command with the desired arguments. <PRE
7737 CLASS="programlisting"
7738 >&#13;   backup&#62; <SPAN
7739 CLASS="bold"
7740 ><B
7741 CLASS="emphasis"
7742 >diskrestore</B
7743 ></SPAN
7744 > &#60;<SPAN
7745 CLASS="emphasis"
7746 ><I
7747 CLASS="emphasis"
7748 >machine to restore</I
7749 ></SPAN
7750 >&#62; &#60;<SPAN
7751 CLASS="emphasis"
7752 ><I
7753 CLASS="emphasis"
7754 >partition to restore</I
7755 ></SPAN
7756 >&#62;  \
7757                        [<SPAN
7758 CLASS="bold"
7759 ><B
7760 CLASS="emphasis"
7761 >-portoffset</B
7762 ></SPAN
7763 > &#60;<SPAN
7764 CLASS="emphasis"
7765 ><I
7766 CLASS="emphasis"
7767 >TC port offset</I
7768 ></SPAN
7769 >&#62;+]  \
7770                        [<SPAN
7771 CLASS="bold"
7772 ><B
7773 CLASS="emphasis"
7774 >-newserver</B
7775 ></SPAN
7776 > &#60;<SPAN
7777 CLASS="emphasis"
7778 ><I
7779 CLASS="emphasis"
7780 >destination machine</I
7781 ></SPAN
7782 >&#62;]  \
7783                        [<SPAN
7784 CLASS="bold"
7785 ><B
7786 CLASS="emphasis"
7787 >-newpartition</B
7788 ></SPAN
7789 > &#60;<SPAN
7790 CLASS="emphasis"
7791 ><I
7792 CLASS="emphasis"
7793 >destination partition</I
7794 ></SPAN
7795 >&#62;]  \
7796                        [<SPAN
7797 CLASS="bold"
7798 ><B
7799 CLASS="emphasis"
7800 >-extension</B
7801 ></SPAN
7802 > &#60;<SPAN
7803 CLASS="emphasis"
7804 ><I
7805 CLASS="emphasis"
7806 >new volume name extension</I
7807 ></SPAN
7808 >&#62;] [<SPAN
7809 CLASS="bold"
7810 ><B
7811 CLASS="emphasis"
7812 >-n</B
7813 ></SPAN
7814 >]
7815 </PRE
7816 ></P
7817 ><P
7818 >where <DIV
7819 CLASS="variablelist"
7820 ><DL
7821 ><DT
7822 ><SPAN
7823 CLASS="bold"
7824 ><B
7825 CLASS="emphasis"
7826 >di</B
7827 ></SPAN
7828 ></DT
7829 ><DD
7830 ><P
7831 >Is the shortest acceptable abbreviation of <SPAN
7832 CLASS="bold"
7833 ><B
7834 CLASS="emphasis"
7835 >diskrestore</B
7836 ></SPAN
7837 >.</P
7838 ></DD
7839 ><DT
7840 ><SPAN
7841 CLASS="bold"
7842 ><B
7843 CLASS="emphasis"
7844 >machine to restore</B
7845 ></SPAN
7846 ></DT
7847 ><DD
7848 ><P
7849 >Names the file server machine that the VLDB lists as the site of the volumes that need to be
7850                   restored.</P
7851 ></DD
7852 ><DT
7853 ><SPAN
7854 CLASS="bold"
7855 ><B
7856 CLASS="emphasis"
7857 >partition to restore</B
7858 ></SPAN
7859 ></DT
7860 ><DD
7861 ><P
7862 >Names the partition that the VLDB lists as the site of the volumes that need to be restored.</P
7863 ></DD
7864 ><DT
7865 ><SPAN
7866 CLASS="bold"
7867 ><B
7868 CLASS="emphasis"
7869 >-portoffset</B
7870 ></SPAN
7871 ></DT
7872 ><DD
7873 ><P
7874 >Specifies one or more port offset numbers, each corresponding to a Tape Coordinator to use in the operation.
7875                   If there is more than one value, the Backup System uses the first one when restoring the full dump of each volume,
7876                   the second one when restoring the level 1 incremental dump of each volume, and so on. It uses the final value in
7877                   the list when restoring dumps at the corresponding depth in the dump hierarchy and all dumps at lower
7878                   levels.</P
7879 ><P
7880 >Provide this argument unless the default value of 0 (zero) is appropriate for all dumps. If 0 is just one of
7881                   the values in the list, provide it explicitly in the appropriate order.</P
7882 ></DD
7883 ><DT
7884 ><SPAN
7885 CLASS="bold"
7886 ><B
7887 CLASS="emphasis"
7888 >-newserver</B
7889 ></SPAN
7890 ></DT
7891 ><DD
7892 ><P
7893 >Names an alternate file server machine to which to restore the volumes. If you omit this argument, the
7894                   volumes are restored to the file server machine named by the <SPAN
7895 CLASS="bold"
7896 ><B
7897 CLASS="emphasis"
7898 >-server</B
7899 ></SPAN
7900 >
7901                   argument.</P
7902 ></DD
7903 ><DT
7904 ><SPAN
7905 CLASS="bold"
7906 ><B
7907 CLASS="emphasis"
7908 >-newpartition</B
7909 ></SPAN
7910 ></DT
7911 ><DD
7912 ><P
7913 >Names an alternate partition to which to restore the data. If you omit this argument, the volumes are
7914                   restored to the partition named by the <SPAN
7915 CLASS="bold"
7916 ><B
7917 CLASS="emphasis"
7918 >-partition</B
7919 ></SPAN
7920 > argument.</P
7921 ></DD
7922 ><DT
7923 ><SPAN
7924 CLASS="bold"
7925 ><B
7926 CLASS="emphasis"
7927 >-extension</B
7928 ></SPAN
7929 ></DT
7930 ><DD
7931 ><P
7932 >Creates a new volume for each volume being restored, to house the restored data, appending the specified
7933                   string to the volume's read/write base name as listed in the VLDB. Any string other than <SPAN
7934 CLASS="bold"
7935 ><B
7936 CLASS="emphasis"
7937 >.readonly</B
7938 ></SPAN
7939 > or <SPAN
7940 CLASS="bold"
7941 ><B
7942 CLASS="emphasis"
7943 >.backup</B
7944 ></SPAN
7945 > is acceptable, but the combination of
7946                   the base name and extension cannot exceed 22 characters in length. To use a period to separate the extension from
7947                   the name, specify it as the first character of the string (as in <SPAN
7948 CLASS="bold"
7949 ><B
7950 CLASS="emphasis"
7951 >.rst</B
7952 ></SPAN
7953 >, for
7954                   example).</P
7955 ></DD
7956 ><DT
7957 ><SPAN
7958 CLASS="bold"
7959 ><B
7960 CLASS="emphasis"
7961 >-n</B
7962 ></SPAN
7963 ></DT
7964 ><DD
7965 ><P
7966 >Displays a list of the tapes necessary to perform the requested restore, without actually performing the
7967                   operation.</P
7968 ></DD
7969 ></DL
7970 ></DIV
7971 ></P
7972 ></LI
7973 ><LI
7974 ><P
7975 >If you did not include the <SPAN
7976 CLASS="bold"
7977 ><B
7978 CLASS="emphasis"
7979 >-noautoquery</B
7980 ></SPAN
7981 > flag when you issued the <SPAN
7982 CLASS="bold"
7983 ><B
7984 CLASS="emphasis"
7985 >butc</B
7986 ></SPAN
7987 > command, or the device's <SPAN
7988 CLASS="bold"
7989 ><B
7990 CLASS="emphasis"
7991 >CFG_</B
7992 ></SPAN
7993 >device_name configuration file
7994           includes the instruction <SPAN
7995 CLASS="bold"
7996 ><B
7997 CLASS="emphasis"
7998 >AUTOQUERY YES</B
7999 ></SPAN
8000 >, then the Tape Coordinator prompts you to place
8001           the tape in the device's drive. You have already done so, but you must now press &#60;<SPAN
8002 CLASS="bold"
8003 ><B
8004 CLASS="emphasis"
8005 >Return</B
8006 ></SPAN
8007 >&#62; to indicate that the tape is ready for labeling.</P
8008 ><P
8009 >If more than one tape is required, you must either include the <SPAN
8010 CLASS="bold"
8011 ><B
8012 CLASS="emphasis"
8013 >MOUNT</B
8014 ></SPAN
8015 > instruction in
8016           the <SPAN
8017 CLASS="bold"
8018 ><B
8019 CLASS="emphasis"
8020 >CFG_</B
8021 ></SPAN
8022 >device_name file and stock the corresponding stacker or jukebox with tapes, or
8023           remain at the console to respond to the Tape Coordinator's prompts for subsequent tapes.</P
8024 ></LI
8025 ><LI
8026 ><P
8027 >After the restore operation completes, review the Backup System's log files to check for errors. Use the <SPAN
8028 CLASS="bold"
8029 ><B
8030 CLASS="emphasis"
8031 >bos getlog</B
8032 ></SPAN
8033 > command as instructed in <A
8034 HREF="c6449.html#HDRWQ173"
8035 >Displaying Server Process Log
8036           Files</A
8037 > to read the <SPAN
8038 CLASS="bold"
8039 ><B
8040 CLASS="emphasis"
8041 >/usr/afs/logs/BackupLog</B
8042 ></SPAN
8043 > file, and a text editor on the Tape
8044           Coordinator machine to read the <SPAN
8045 CLASS="bold"
8046 ><B
8047 CLASS="emphasis"
8048 >TE_</B
8049 ></SPAN
8050 >device_name and <SPAN
8051 CLASS="bold"
8052 ><B
8053 CLASS="emphasis"
8054 >TL_</B
8055 ></SPAN
8056 >device_name files in the local <SPAN
8057 CLASS="bold"
8058 ><B
8059 CLASS="emphasis"
8060 >/usr/afs/backup</B
8061 ></SPAN
8062 >
8063           directory.</P
8064 ></LI
8065 ></OL
8066 ></DIV
8067 ><DIV
8068 CLASS="sect2"
8069 ><H2
8070 CLASS="sect2"
8071 ><A
8072 NAME="HDRWQ312"
8073 >Using the backup volsetrestore Command</A
8074 ></H2
8075 ><P
8076 >The <SPAN
8077 CLASS="bold"
8078 ><B
8079 CLASS="emphasis"
8080 >backup volsetrestore</B
8081 ></SPAN
8082 > command is most appropriate when you need to perform a full
8083       restore of several read/write volumes, placing each at a specified site. You specify the volumes to restore either by naming a
8084       volume set with the <SPAN
8085 CLASS="bold"
8086 ><B
8087 CLASS="emphasis"
8088 >-name</B
8089 ></SPAN
8090 > argument or by listing each volume's name and restoration site in a
8091       file named by the <SPAN
8092 CLASS="bold"
8093 ><B
8094 CLASS="emphasis"
8095 >-file</B
8096 ></SPAN
8097 > argument, as described in the following sections.</P
8098 ><P
8099 >Because the <SPAN
8100 CLASS="bold"
8101 ><B
8102 CLASS="emphasis"
8103 >backup volsetrestore</B
8104 ></SPAN
8105 > command enables you to restore a large number of
8106       volumes with a single command, the restore operation can potentially take hours to complete. One way to reduce the time is to
8107       run multiple instances of the command simultaneously. Either use the <SPAN
8108 CLASS="bold"
8109 ><B
8110 CLASS="emphasis"
8111 >-name</B
8112 ></SPAN
8113 > argument to
8114       specify disjoint volume sets for each command, or the <SPAN
8115 CLASS="bold"
8116 ><B
8117 CLASS="emphasis"
8118 >-file</B
8119 ></SPAN
8120 > argument to name files that list
8121       different volumes. You must have several Tape Coordinators available to read the required tapes. Depending on how the volumes
8122       to be restored were dumped to tape, specifying disjoint volume sets can also reduce the number of tape changes
8123       required.</P
8124 ><DIV
8125 CLASS="sect3"
8126 ><H3
8127 CLASS="sect3"
8128 ><A
8129 NAME="HDRWQ313"
8130 >Restoring a Volume Set with the -name Argument</A
8131 ></H3
8132 ><P
8133 >Use the <SPAN
8134 CLASS="bold"
8135 ><B
8136 CLASS="emphasis"
8137 >-name</B
8138 ></SPAN
8139 > argument to restore a group of volumes defined in a volume set. The
8140         Backup System creates a list of the volumes in the VLDB that match the server, partition, and volume name criteria defined
8141         in the volume set's volume entries, and for which dumps are available. The volumes do not have to exist on the server
8142         partition as long as the VLDB still lists them (this can happen when, for instance, a hardware problem destroys the contents
8143         of an entire disk).</P
8144 ><P
8145 >By default, the Backup System restores, as a read/write volume, each volume that matches the volume set criteria to
8146         the site listed in the VLDB. If a volume of the matching name exists at that site, its current contents are overwritten. You
8147         can instead create a new volume to house the restored data by including the <SPAN
8148 CLASS="bold"
8149 ><B
8150 CLASS="emphasis"
8151 >-extension</B
8152 ></SPAN
8153 >
8154         argument. The Backup System creates the new volume at the existing volume's site, derives its name by adding the extension
8155         to the existing volume's read/write base name, and creates a new VLDB entry for it. The command does not affect the existing
8156         volume in any way. However, if a volume with the specified extension also already exists, the command overwrites it. To make
8157         the contents of the new volume accessible, use the <SPAN
8158 CLASS="bold"
8159 ><B
8160 CLASS="emphasis"
8161 >fs mkmount</B
8162 ></SPAN
8163 > command to mount it. You can
8164         then compare its contents to those of the existing volume, to see which to retain permanently.</P
8165 ><P
8166 >It is not required that the volume set was previously used to back up volumes (was used as the <SPAN
8167 CLASS="bold"
8168 ><B
8169 CLASS="emphasis"
8170 >-volumeset</B
8171 ></SPAN
8172 > option to the <SPAN
8173 CLASS="bold"
8174 ><B
8175 CLASS="emphasis"
8176 >backup dump</B
8177 ></SPAN
8178 > command). It can be defined
8179         especially to match the volumes that need to be restored with this command, and that is usually the better choice. Indeed, a
8180         <SPAN
8181 CLASS="emphasis"
8182 ><I
8183 CLASS="emphasis"
8184 >temporary</I
8185 ></SPAN
8186 > volume set, created by including the <SPAN
8187 CLASS="bold"
8188 ><B
8189 CLASS="emphasis"
8190 >-temporary</B
8191 ></SPAN
8192 > flag to the
8193         <SPAN
8194 CLASS="bold"
8195 ><B
8196 CLASS="emphasis"
8197 >backup addvolset</B
8198 ></SPAN
8199 > command, can be especially useful in this context (instructions appear in
8200         <A
8201 HREF="c12776.html#HDRWQ265"
8202 >Defining and Displaying Volume Sets and Volume Entries</A
8203 >). A temporary volume set is not added
8204         to the Backup Database and exists only during the current interactive backup session, which is suitable if the volume set is
8205         needed only to complete the single restore operation initialized by this command.</P
8206 ><P
8207 >The reason that a specially defined volume set is probably better is that volume sets previously defined for use in
8208         dump operations usually match the backup version of volumes, whereas for a restore operation it is best to define volume
8209         entries that match the base (read/write) name. In this case, the Backup System searches the Backup Database for the newest
8210         dump set that includes a dump of either the read/write or the backup version of the volume. If, in contrast, a volume entry
8211         explicitly matches the volume's backup or read-only version, the Backup System uses dumps of that volume version only,
8212         restoring them to a read/write volume by stripping off the <SPAN
8213 CLASS="bold"
8214 ><B
8215 CLASS="emphasis"
8216 >.backup</B
8217 ></SPAN
8218 > or <SPAN
8219 CLASS="bold"
8220 ><B
8221 CLASS="emphasis"
8222 >.readonly</B
8223 ></SPAN
8224 > extension.</P
8225 ><P
8226 >If there are VLDB entries that match the volume set criteria, but for which there are no dumps recorded in the Backup
8227         Database, the Backup System cannot restore them. It generates an error message on the standard error stream for each
8228         one.</P
8229 ></DIV
8230 ><DIV
8231 CLASS="sect3"
8232 ><H3
8233 CLASS="sect3"
8234 ><A
8235 NAME="HDRWQ314"
8236 >Restoring Volumes Listed in a File with the -file Argument</A
8237 ></H3
8238 ><P
8239 >Use the <SPAN
8240 CLASS="bold"
8241 ><B
8242 CLASS="emphasis"
8243 >-file</B
8244 ></SPAN
8245 > argument to specify the name and site of each read/write volume to
8246         restore. Each volume's entry must appear on its own (unbroken) line in the file, and comply with the following
8247         format:</P
8248 ><PRE
8249 CLASS="programlisting"
8250 >&#13;   machine    partition   volume    [comments...]
8251 </PRE
8252 ><P
8253 >where <DIV
8254 CLASS="variablelist"
8255 ><DL
8256 ><DT
8257 ><SPAN
8258 CLASS="bold"
8259 ><B
8260 CLASS="emphasis"
8261 >machine</B
8262 ></SPAN
8263 ></DT
8264 ><DD
8265 ><P
8266 >Names the file server machine to which to restore the volume. You can move the volume as you restore it by
8267                 naming a machine other than the current site.</P
8268 ></DD
8269 ><DT
8270 ><SPAN
8271 CLASS="bold"
8272 ><B
8273 CLASS="emphasis"
8274 >partition</B
8275 ></SPAN
8276 ></DT
8277 ><DD
8278 ><P
8279 >Names the partition to which to restore the volume. You can move the volume as you restore it by naming a
8280                 partition other than the current site.</P
8281 ></DD
8282 ><DT
8283 ><SPAN
8284 CLASS="bold"
8285 ><B
8286 CLASS="emphasis"
8287 >volume</B
8288 ></SPAN
8289 ></DT
8290 ><DD
8291 ><P
8292 >Names the volume to restore. Specify the base (read/write) name to have the Backup System search the Backup
8293                 Database for the newest dump set that includes a dump of either the read/write or the backup version of the volume.
8294                 It restores the dumps of that version of the volume, starting with the most recent full dump. If, in contrast, you
8295                 include the <SAMP
8296 CLASS="computeroutput"
8297 >.backup</SAMP
8298 > or <SAMP
8299 CLASS="computeroutput"
8300 >.readonly</SAMP
8301 > extension, the
8302                 Backup System restores dumps of that volume version only, but into a read/write volume without the extension. The
8303                 base name must match the name used in Backup Database dump records rather than in the VLDB, if they differ, because
8304                 the Backup System does not consult the VLDB when you use the <SPAN
8305 CLASS="bold"
8306 ><B
8307 CLASS="emphasis"
8308 >-file</B
8309 ></SPAN
8310 > argument.</P
8311 ></DD
8312 ><DT
8313 ><SPAN
8314 CLASS="bold"
8315 ><B
8316 CLASS="emphasis"
8317 >comments...</B
8318 ></SPAN
8319 ></DT
8320 ><DD
8321 ><P
8322 >Is any other text. The Backup System ignores any text on each line that appears after the volume name, so you
8323                 can use this field for helpful notes.</P
8324 ></DD
8325 ></DL
8326 ></DIV
8327 ></P
8328 ><P
8329 >Do not use wildcards (for example, <SPAN
8330 CLASS="bold"
8331 ><B
8332 CLASS="emphasis"
8333 >.*</B
8334 ></SPAN
8335 >) in the machine, partition, or volume fields.
8336         It is acceptable for multiple lines in the file to name the same volume, but the Backup System processes only the first of
8337         them.</P
8338 ><P
8339 >By default, the Backup System replaces the existing version of each volume with the restored data, placing the volume
8340         at the site specified in the machine and partition fields. You can instead create a new volume to house the restored
8341         contents by including the <SPAN
8342 CLASS="bold"
8343 ><B
8344 CLASS="emphasis"
8345 >-extension</B
8346 ></SPAN
8347 > argument. The Backup System creates a new volume at
8348         the site named in the machine and partition fields, derives its name by adding the specified extension to the read/write
8349         version of the name in the volume field, and creates a new VLDB entry for it. The command does not affect the existing
8350         volume in any way. However, if a volume with the specified extension also already exists, the command overwrites it. To make
8351         the contents of the new volume accessible, use the <SPAN
8352 CLASS="bold"
8353 ><B
8354 CLASS="emphasis"
8355 >fs mkmount</B
8356 ></SPAN
8357 > command to mount it. You can
8358         then compare its contents to those of the existing volume, to see which to retain permanently.</P
8359 ><P
8360 >If the file includes entries for volumes that have no dumps recorded in the Backup Database, the Backup System cannot
8361         restore them. It generates an error message on the standard error stream for each one.</P
8362 ><P
8363 >One way to generate a file to use as input to the <SPAN
8364 CLASS="bold"
8365 ><B
8366 CLASS="emphasis"
8367 >-file</B
8368 ></SPAN
8369 > argument is to issue the
8370         command with the <SPAN
8371 CLASS="bold"
8372 ><B
8373 CLASS="emphasis"
8374 >-name</B
8375 ></SPAN
8376 > and <SPAN
8377 CLASS="bold"
8378 ><B
8379 CLASS="emphasis"
8380 >-n</B
8381 ></SPAN
8382 > options and direct the
8383         output to a file. The output includes a line like the following for each volume (shown here on two lines only for legibility
8384         reasons); the value comes from the source indicated in the following list:</P
8385 ><PRE
8386 CLASS="programlisting"
8387 >&#13;   machine   partition   volume_dumped  # as   volume_restored;    \
8388          tape_name   (tape_ID);   pos   position_number;   date
8389 </PRE
8390 ><P
8391 >where <DIV
8392 CLASS="variablelist"
8393 ><DL
8394 ><DT
8395 ><SPAN
8396 CLASS="bold"
8397 ><B
8398 CLASS="emphasis"
8399 >machine</B
8400 ></SPAN
8401 ></DT
8402 ><DD
8403 ><P
8404 >Names the file server machine that currently houses the volume, as listed in the VLDB.</P
8405 ></DD
8406 ><DT
8407 ><SPAN
8408 CLASS="bold"
8409 ><B
8410 CLASS="emphasis"
8411 >partition</B
8412 ></SPAN
8413 ></DT
8414 ><DD
8415 ><P
8416 >Names the partition that currently houses the volume, as listed in the VLDB.</P
8417 ></DD
8418 ><DT
8419 ><SPAN
8420 CLASS="bold"
8421 ><B
8422 CLASS="emphasis"
8423 >volume_dumped</B
8424 ></SPAN
8425 ></DT
8426 ><DD
8427 ><P
8428 >Specifies the version (read/write or backup) of the volume that was dumped, as listed in the Backup
8429                 Database.</P
8430 ></DD
8431 ><DT
8432 ><SPAN
8433 CLASS="bold"
8434 ><B
8435 CLASS="emphasis"
8436 >volume_restored</B
8437 ></SPAN
8438 ></DT
8439 ><DD
8440 ><P
8441 >Specifies the name under which the Backup System restores the volume when the <SPAN
8442 CLASS="bold"
8443 ><B
8444 CLASS="emphasis"
8445 >-n</B
8446 ></SPAN
8447 > flag is not included. If you include the <SPAN
8448 CLASS="bold"
8449 ><B
8450 CLASS="emphasis"
8451 >-extension</B
8452 ></SPAN
8453 >
8454                 argument with the <SPAN
8455 CLASS="bold"
8456 ><B
8457 CLASS="emphasis"
8458 >-name</B
8459 ></SPAN
8460 > and <SPAN
8461 CLASS="bold"
8462 ><B
8463 CLASS="emphasis"
8464 >-n</B
8465 ></SPAN
8466 > options, then the
8467                 extension appears on the name in this field (as in <SAMP
8468 CLASS="computeroutput"
8469 >user.pat.rst</SAMP
8470 >, for
8471                 example).</P
8472 ></DD
8473 ><DT
8474 ><SPAN
8475 CLASS="bold"
8476 ><B
8477 CLASS="emphasis"
8478 >tape_name</B
8479 ></SPAN
8480 ></DT
8481 ><DD
8482 ><P
8483 >Names the tape containing the dump of the volume, from the Backup Database. If the tape has a permanent name,
8484                 it appears here; otherwise, it is the AFS tape name.</P
8485 ></DD
8486 ><DT
8487 ><SPAN
8488 CLASS="bold"
8489 ><B
8490 CLASS="emphasis"
8491 >tape_ID</B
8492 ></SPAN
8493 ></DT
8494 ><DD
8495 ><P
8496 >The tape ID of the tape containing the dump of the volume, from the Backup Database.</P
8497 ></DD
8498 ><DT
8499 ><SPAN
8500 CLASS="bold"
8501 ><B
8502 CLASS="emphasis"
8503 >position_number</B
8504 ></SPAN
8505 ></DT
8506 ><DD
8507 ><P
8508 >Specifies the dump's position on the tape (for example, <SAMP
8509 CLASS="computeroutput"
8510 >31</SAMP
8511 > indicates that 30
8512                 volume dumps precede the current one on the tape). If the dump was written to a backup data file, this number is the
8513                 ordinal of the 16 KB-offset at which the volume's data begins.</P
8514 ></DD
8515 ><DT
8516 ><SPAN
8517 CLASS="bold"
8518 ><B
8519 CLASS="emphasis"
8520 >date</B
8521 ></SPAN
8522 ></DT
8523 ><DD
8524 ><P
8525 >The date and time when the volume was dumped.</P
8526 ></DD
8527 ></DL
8528 ></DIV
8529 ></P
8530 ><P
8531 >To make the entries suitable for use with the <SPAN
8532 CLASS="bold"
8533 ><B
8534 CLASS="emphasis"
8535 >-file</B
8536 ></SPAN
8537 > argument, edit them as indicated:
8538         <UL
8539 ><LI
8540 ><P
8541 >The Backup System uses only the first three fields on each line of the input file, and so ignores all the fields
8542               after the number sign (<SAMP
8543 CLASS="computeroutput"
8544 >#</SAMP
8545 >). You can remove them if it makes it easier for you to read
8546               the file, but that is not necessary.</P
8547 ></LI
8548 ><LI
8549 ><P
8550 >The volume_dumped (third) field of each line in the output file becomes the volume field in the input file. The
8551               Backup System restores data to read/write volumes only, so remove the <SAMP
8552 CLASS="computeroutput"
8553 >.backup</SAMP
8554 > or
8555               <SAMP
8556 CLASS="computeroutput"
8557 >.readonly</SAMP
8558 > extension if it appears on the name in the volume_dumped field.</P
8559 ></LI
8560 ><LI
8561 ><P
8562 >The output file includes a line for every dump operation in which a specific volume was included (the full dump
8563               and any incremental dumps), but the Backup System only processes the first line in the input file that mentions a
8564               specific volume. You can remove the repeated lines if it makes the file easier for you to read.</P
8565 ></LI
8566 ><LI
8567 ><P
8568 >The <SPAN
8569 CLASS="emphasis"
8570 ><I
8571 CLASS="emphasis"
8572 >machine</I
8573 ></SPAN
8574 > and <SPAN
8575 CLASS="emphasis"
8576 ><I
8577 CLASS="emphasis"
8578 >partition</I
8579 ></SPAN
8580 > fields on an output line designate the
8581               volume's current site. To move the volume to another location as you restore it, change the values.</P
8582 ></LI
8583 ></UL
8584 ></P
8585 ></DIV
8586 ></DIV
8587 ><DIV
8588 CLASS="sect2"
8589 ><H2
8590 CLASS="sect2"
8591 ><A
8592 NAME="HDRWQ315"
8593 >To restore a group of volumes with the backup volsetrestore command</A
8594 ></H2
8595 ><OL
8596 TYPE="1"
8597 ><LI
8598 ><P
8599 >Verify that you are authenticated as a user listed in the <SPAN
8600 CLASS="bold"
8601 ><B
8602 CLASS="emphasis"
8603 >/usr/afs/etc/UserList</B
8604 ></SPAN
8605 >
8606           file. If necessary, issue the <SPAN
8607 CLASS="bold"
8608 ><B
8609 CLASS="emphasis"
8610 >bos listusers</B
8611 ></SPAN
8612 > command, which is fully described in <A
8613 HREF="c32432.html#HDRWQ593"
8614 >To display the users in the UserList file</A
8615 >. <PRE
8616 CLASS="programlisting"
8617 >&#13;   % <SPAN
8618 CLASS="bold"
8619 ><B
8620 CLASS="emphasis"
8621 >bos listusers</B
8622 ></SPAN
8623 > &#60;<SPAN
8624 CLASS="emphasis"
8625 ><I
8626 CLASS="emphasis"
8627 >machine name</I
8628 ></SPAN
8629 >&#62;
8630 </PRE
8631 ></P
8632 ></LI
8633 ><LI
8634 ><P
8635 >If the Tape Coordinator for the tape device that is to perform the operation is not already running, open a
8636           connection to the appropriate Tape Coordinator machine and issue the <SPAN
8637 CLASS="bold"
8638 ><B
8639 CLASS="emphasis"
8640 >butc</B
8641 ></SPAN
8642 > command, for
8643           which complete instructions appear in <A
8644 HREF="c15383.html#HDRWQ292"
8645 >To start a Tape Coordinator process</A
8646 >.
8647           <PRE
8648 CLASS="programlisting"
8649 >&#13;   % <SPAN
8650 CLASS="bold"
8651 ><B
8652 CLASS="emphasis"
8653 >butc</B
8654 ></SPAN
8655 > [&#60;<SPAN
8656 CLASS="emphasis"
8657 ><I
8658 CLASS="emphasis"
8659 >port offset</I
8660 ></SPAN
8661 >&#62;] [<SPAN
8662 CLASS="bold"
8663 ><B
8664 CLASS="emphasis"
8665 >-noautoquery</B
8666 ></SPAN
8667 >]
8668 </PRE
8669 ></P
8670 ><P
8671 >Repeat the command for each Tape Coordinator if you are using more than one tape device.</P
8672 ></LI
8673 ><LI
8674 ><P
8675 >If using a tape device, insert the tape.</P
8676 ></LI
8677 ><LI
8678 ><P
8679 >Issue the <SPAN
8680 CLASS="bold"
8681 ><B
8682 CLASS="emphasis"
8683 >backup</B
8684 ></SPAN
8685 > command to enter interactive mode. <PRE
8686 CLASS="programlisting"
8687 >&#13;   % <SPAN
8688 CLASS="bold"
8689 ><B
8690 CLASS="emphasis"
8691 >backup</B
8692 ></SPAN
8693 >
8694 </PRE
8695 ></P
8696 ></LI
8697 ><LI
8698 ><P
8699 ><SPAN
8700 CLASS="bold"
8701 ><B
8702 CLASS="emphasis"
8703 >(Optional)</B
8704 ></SPAN
8705 > If appropriate, issue the <SPAN
8706 CLASS="bold"
8707 ><B
8708 CLASS="emphasis"
8709 >(backup)
8710           addvolset</B
8711 ></SPAN
8712 > command to create a new volume set expressly for this restore operation. Include the <SPAN
8713 CLASS="bold"
8714 ><B
8715 CLASS="emphasis"
8716 >-temporary</B
8717 ></SPAN
8718 > flag if you do not need to add the volume set to the Backup Database. Then issue one or
8719           more <SPAN
8720 CLASS="bold"
8721 ><B
8722 CLASS="emphasis"
8723 >(backup) addvolentry</B
8724 ></SPAN
8725 > commands to create volume entries that include only the volumes
8726           to be restored. Complete instructions appear in <A
8727 HREF="c12776.html#HDRWQ265"
8728 >Defining and Displaying Volume Sets and Volume
8729           Entries</A
8730 >. <PRE
8731 CLASS="programlisting"
8732 >&#13;   backup&#62; <SPAN
8733 CLASS="bold"
8734 ><B
8735 CLASS="emphasis"
8736 >addvolset</B
8737 ></SPAN
8738 > &#60;<SPAN
8739 CLASS="emphasis"
8740 ><I
8741 CLASS="emphasis"
8742 >volume set name</I
8743 ></SPAN
8744 >&#62;  [<SPAN
8745 CLASS="bold"
8746 ><B
8747 CLASS="emphasis"
8748 >-temporary</B
8749 ></SPAN
8750 >]
8751    backup&#62; <SPAN
8752 CLASS="bold"
8753 ><B
8754 CLASS="emphasis"
8755 >addvolentry  -name</B
8756 ></SPAN
8757 > &#60;<SPAN
8758 CLASS="emphasis"
8759 ><I
8760 CLASS="emphasis"
8761 >volume set name</I
8762 ></SPAN
8763 >&#62;  \
8764                         <SPAN
8765 CLASS="bold"
8766 ><B
8767 CLASS="emphasis"
8768 >-server</B
8769 ></SPAN
8770 > &#60;<SPAN
8771 CLASS="emphasis"
8772 ><I
8773 CLASS="emphasis"
8774 >machine name</I
8775 ></SPAN
8776 >&#62;  \
8777                         <SPAN
8778 CLASS="bold"
8779 ><B
8780 CLASS="emphasis"
8781 >-partition</B
8782 ></SPAN
8783 > &#60;<SPAN
8784 CLASS="emphasis"
8785 ><I
8786 CLASS="emphasis"
8787 >partition name</I
8788 ></SPAN
8789 >&#62;  \
8790                         <SPAN
8791 CLASS="bold"
8792 ><B
8793 CLASS="emphasis"
8794 >-volumes</B
8795 ></SPAN
8796 > &#60;<SPAN
8797 CLASS="emphasis"
8798 ><I
8799 CLASS="emphasis"
8800 >volume name (regular expression)</I
8801 ></SPAN
8802 >&#62;
8803 </PRE
8804 ></P
8805 ></LI
8806 ><LI
8807 ><P
8808 >Issue the <SPAN
8809 CLASS="bold"
8810 ><B
8811 CLASS="emphasis"
8812 >backup volsetrestore</B
8813 ></SPAN
8814 > command with the desired arguments. <PRE
8815 CLASS="programlisting"
8816 >&#13;   backup&#62; <SPAN
8817 CLASS="bold"
8818 ><B
8819 CLASS="emphasis"
8820 >volsetrestore</B
8821 ></SPAN
8822 > [<SPAN
8823 CLASS="bold"
8824 ><B
8825 CLASS="emphasis"
8826 >-name</B
8827 ></SPAN
8828 > &#60;<SPAN
8829 CLASS="emphasis"
8830 ><I
8831 CLASS="emphasis"
8832 >volume set name</I
8833 ></SPAN
8834 >&#62;]  \
8835                  [<SPAN
8836 CLASS="bold"
8837 ><B
8838 CLASS="emphasis"
8839 >-file</B
8840 ></SPAN
8841 > &#60;<SPAN
8842 CLASS="emphasis"
8843 ><I
8844 CLASS="emphasis"
8845 >file name</I
8846 ></SPAN
8847 >&#62;]  \
8848                  [<SPAN
8849 CLASS="bold"
8850 ><B
8851 CLASS="emphasis"
8852 >-portoffset</B
8853 ></SPAN
8854 > &#60;<SPAN
8855 CLASS="emphasis"
8856 ><I
8857 CLASS="emphasis"
8858 >TC port offset</I
8859 ></SPAN
8860 >&#62;+]  \
8861                  [<SPAN
8862 CLASS="bold"
8863 ><B
8864 CLASS="emphasis"
8865 >-extension</B
8866 ></SPAN
8867 > &#60;<SPAN
8868 CLASS="emphasis"
8869 ><I
8870 CLASS="emphasis"
8871 >new volume name extension</I
8872 ></SPAN
8873 >&#62;] [<SPAN
8874 CLASS="bold"
8875 ><B
8876 CLASS="emphasis"
8877 >-n</B
8878 ></SPAN
8879 >] 
8880 </PRE
8881 ></P
8882 ><P
8883 >where <DIV
8884 CLASS="variablelist"
8885 ><DL
8886 ><DT
8887 ><SPAN
8888 CLASS="bold"
8889 ><B
8890 CLASS="emphasis"
8891 >-name</B
8892 ></SPAN
8893 ></DT
8894 ><DD
8895 ><P
8896 >Names a volume set to restore. The Backup System restores all of the volumes listed in the VLDB that match
8897                   the volume set's volume entries, as described in <A
8898 HREF="c15383.html#HDRWQ313"
8899 >Restoring a Volume Set with the -name
8900                   Argument</A
8901 >. Provide this argument or the <SPAN
8902 CLASS="bold"
8903 ><B
8904 CLASS="emphasis"
8905 >-file</B
8906 ></SPAN
8907 > argument, but not
8908                   both.</P
8909 ></DD
8910 ><DT
8911 ><SPAN
8912 CLASS="bold"
8913 ><B
8914 CLASS="emphasis"
8915 >-file</B
8916 ></SPAN
8917 ></DT
8918 ><DD
8919 ><P
8920 >Specifies the full pathname of a file that lists one or more volumes and the site (file server machine and
8921                   partition) to which to restore each. The input file has the format described in <A
8922 HREF="c15383.html#HDRWQ314"
8923 >Restoring
8924                   Volumes Listed in a File with the -file Argument</A
8925 >. Use either this argument or the <SPAN
8926 CLASS="bold"
8927 ><B
8928 CLASS="emphasis"
8929 >-name</B
8930 ></SPAN
8931 > argument, but not both.</P
8932 ></DD
8933 ><DT
8934 ><SPAN
8935 CLASS="bold"
8936 ><B
8937 CLASS="emphasis"
8938 >-portoffset</B
8939 ></SPAN
8940 ></DT
8941 ><DD
8942 ><P
8943 >Specifies one or more port offset numbers, each corresponding to a Tape Coordinator to use in the operation.
8944                   If there is more than one value, the Backup System uses the first one when restoring the full dump of each volume,
8945                   the second one when restoring the level 1 incremental dump of each volume, and so on. It uses the final value in
8946                   the list when restoring dumps at the corresponding depth in the dump hierarchy and all dumps at lower
8947                   levels.</P
8948 ><P
8949 >Provide this argument unless the default value of 0 (zero) is appropriate for all dumps. If 0 is just one of
8950                   the values in the list, provide it explicitly in the appropriate order.</P
8951 ></DD
8952 ><DT
8953 ><SPAN
8954 CLASS="bold"
8955 ><B
8956 CLASS="emphasis"
8957 >-extension</B
8958 ></SPAN
8959 ></DT
8960 ><DD
8961 ><P
8962 >Creates a new volume for each volume being restored, to house the restored data, appending the specified
8963                   string to the volume's read/write base name as listed in the VLDB. Any string other than <SPAN
8964 CLASS="bold"
8965 ><B
8966 CLASS="emphasis"
8967 >.readonly</B
8968 ></SPAN
8969 > or <SPAN
8970 CLASS="bold"
8971 ><B
8972 CLASS="emphasis"
8973 >.backup</B
8974 ></SPAN
8975 > is acceptable, but the combination of
8976                   the base name and extension cannot exceed 22 characters in length. To use a period to separate the extension from
8977                   the name, specify it as the first character of the string (as in <SPAN
8978 CLASS="bold"
8979 ><B
8980 CLASS="emphasis"
8981 >.rst</B
8982 ></SPAN
8983 >, for
8984                   example).</P
8985 ></DD
8986 ><DT
8987 ><SPAN
8988 CLASS="bold"
8989 ><B
8990 CLASS="emphasis"
8991 >-n</B
8992 ></SPAN
8993 ></DT
8994 ><DD
8995 ><P
8996 >Displays a list of the volumes to be restored when the flag is not included, without actually restoring
8997                   them. The <SPAN
8998 CLASS="bold"
8999 ><B
9000 CLASS="emphasis"
9001 >Output</B
9002 ></SPAN
9003 > section of this reference page details the format of the output.
9004                   When combined with the <SPAN
9005 CLASS="bold"
9006 ><B
9007 CLASS="emphasis"
9008 >-name</B
9009 ></SPAN
9010 > argument, its output is easily edited for use as
9011                   input to the <SPAN
9012 CLASS="bold"
9013 ><B
9014 CLASS="emphasis"
9015 >-file</B
9016 ></SPAN
9017 > argument on a subsequent <SPAN
9018 CLASS="bold"
9019 ><B
9020 CLASS="emphasis"
9021 >backup
9022                   volsetrestore</B
9023 ></SPAN
9024 > command.</P
9025 ></DD
9026 ></DL
9027 ></DIV
9028 ></P
9029 ></LI
9030 ><LI
9031 ><P
9032 >If you did not include the <SPAN
9033 CLASS="bold"
9034 ><B
9035 CLASS="emphasis"
9036 >-noautoquery</B
9037 ></SPAN
9038 > flag when you issued the <SPAN
9039 CLASS="bold"
9040 ><B
9041 CLASS="emphasis"
9042 >butc</B
9043 ></SPAN
9044 > command, or the device's <SPAN
9045 CLASS="bold"
9046 ><B
9047 CLASS="emphasis"
9048 >CFG_</B
9049 ></SPAN
9050 >device_name configuration file
9051           includes the instruction <SPAN
9052 CLASS="bold"
9053 ><B
9054 CLASS="emphasis"
9055 >AUTOQUERY YES</B
9056 ></SPAN
9057 >, then the Tape Coordinator prompts you to place
9058           the tape in the device's drive. You have already done so, but you must now press &#60;<SPAN
9059 CLASS="bold"
9060 ><B
9061 CLASS="emphasis"
9062 >Return</B
9063 ></SPAN
9064 >&#62; to indicate that the tape is ready for labeling.</P
9065 ><P
9066 >If more than one tape is required, you must either include the <SPAN
9067 CLASS="bold"
9068 ><B
9069 CLASS="emphasis"
9070 >MOUNT</B
9071 ></SPAN
9072 > instruction in
9073           the <SPAN
9074 CLASS="bold"
9075 ><B
9076 CLASS="emphasis"
9077 >CFG_</B
9078 ></SPAN
9079 >device_name file and stock the corresponding stacker or jukebox with tapes, or
9080           remain at the console to respond to the Tape Coordinator's prompts for subsequent tapes.</P
9081 ></LI
9082 ><LI
9083 ><P
9084 >After the restore operation completes, review the Backup System's log files to check for errors. Use the <SPAN
9085 CLASS="bold"
9086 ><B
9087 CLASS="emphasis"
9088 >bos getlog</B
9089 ></SPAN
9090 > command as instructed in <A
9091 HREF="c6449.html#HDRWQ173"
9092 >Displaying Server Process Log
9093           Files</A
9094 > to read the <SPAN
9095 CLASS="bold"
9096 ><B
9097 CLASS="emphasis"
9098 >/usr/afs/logs/BackupLog</B
9099 ></SPAN
9100 > file, and a text editor on the Tape
9101           Coordinator machine to read the <SPAN
9102 CLASS="bold"
9103 ><B
9104 CLASS="emphasis"
9105 >TE_</B
9106 ></SPAN
9107 >device_name and <SPAN
9108 CLASS="bold"
9109 ><B
9110 CLASS="emphasis"
9111 >TL_</B
9112 ></SPAN
9113 >device_name files in the local <SPAN
9114 CLASS="bold"
9115 ><B
9116 CLASS="emphasis"
9117 >/usr/afs/backup</B
9118 ></SPAN
9119 >
9120           directory.</P
9121 ></LI
9122 ></OL
9123 ></DIV
9124 ></DIV
9125 ><DIV
9126 CLASS="sect1"
9127 ><H1
9128 CLASS="sect1"
9129 ><A
9130 NAME="HDRWQ316"
9131 >Maintaining the Backup Database</A
9132 ></H1
9133 ><P
9134 >The Backup Database stores all of the configuration and tracking information that the Backup System uses when dumping and
9135     restoring data. If a hardware failure or other problem on a database server machine corrupts or damages the database, it is
9136     relatively easy to recreate the configuration information (the dump hierarchy and lists of volume sets and Tape Coordinator port
9137     offset numbers). However, restoring the dump tracking information (dump records) is more complicated and time-consuming. To
9138     protect yourself against loss of data, back up the Backup Database itself to tape on a regular schedule.</P
9139 ><P
9140 >Another potential concern is that the Backup Database can grow large rather quickly, because the Backup System keeps very
9141     detailed and cross-referenced records of dump operations. Backup operations become less efficient if the Backup Server has to
9142     navigate through a large number of obsolete records to find the data it needs. To keep the database to a manageable size, use
9143     the <SPAN
9144 CLASS="bold"
9145 ><B
9146 CLASS="emphasis"
9147 >backup deletedump</B
9148 ></SPAN
9149 > command to delete obsolete records, as described in <A
9150 HREF="c15383.html#HDRWQ321"
9151 >Removing Obsolete Records from the Backup Database</A
9152 >. If you later find that you have removed records
9153     that you still need, you can use the <SPAN
9154 CLASS="bold"
9155 ><B
9156 CLASS="emphasis"
9157 >backup scantape</B
9158 ></SPAN
9159 > command to read the information from the
9160     dump and tape labels on the corresponding tapes back into the database, as instructed in <A
9161 HREF="c15383.html#HDRWQ305"
9162 >To scan the
9163     contents of a tape</A
9164 >.</P
9165 ><DIV
9166 CLASS="sect2"
9167 ><H2
9168 CLASS="sect2"
9169 ><A
9170 NAME="HDRWQ317"
9171 >Backing Up and Restoring the Backup Database</A
9172 ></H2
9173 ><P
9174 >Because of the importance of the information in the Backup Database, it is best to back it up to tape or other permanent
9175       media on a regular basis. As for the other AFS, administrative databases, the recommended method is to use a utility designed
9176       to back up a machine's local disk, such as the UNIX <SPAN
9177 CLASS="bold"
9178 ><B
9179 CLASS="emphasis"
9180 >tar</B
9181 ></SPAN
9182 > command. For instructions, see <A
9183 HREF="c3025.html#HDRWQ107"
9184 >Backing Up and Restoring the Administrative Databases</A
9185 >.</P
9186 ><P
9187 >In the rare event that the Backup Database seems damaged or corrupted, you can use the <SPAN
9188 CLASS="bold"
9189 ><B
9190 CLASS="emphasis"
9191 >backup
9192       dbverify</B
9193 ></SPAN
9194 > command to check its status. If it is corrupted, use the <SPAN
9195 CLASS="bold"
9196 ><B
9197 CLASS="emphasis"
9198 >backup savedb</B
9199 ></SPAN
9200 >
9201       command to repair some types of damage. Then use the <SPAN
9202 CLASS="bold"
9203 ><B
9204 CLASS="emphasis"
9205 >backup restoredb</B
9206 ></SPAN
9207 > to return the corrected
9208       database to the local disks of the database server machines. For instructions, see <A
9209 HREF="c15383.html#HDRWQ318"
9210 >Checking for and
9211       Repairing Corruption in the Backup Database</A
9212 >.</P
9213 ></DIV
9214 ><DIV
9215 CLASS="sect2"
9216 ><H2
9217 CLASS="sect2"
9218 ><A
9219 NAME="HDRWQ318"
9220 >Checking for and Repairing Corruption in the Backup Database</A
9221 ></H2
9222 ><P
9223 >In rare cases, the Backup Database can become damaged or corrupted, perhaps because of disk or other hardware errors.
9224       Use the <SPAN
9225 CLASS="bold"
9226 ><B
9227 CLASS="emphasis"
9228 >backup dbverify</B
9229 ></SPAN
9230 > command to check the integrity of the database. If it is corrupted,
9231       the most efficient way to repair it is to use the <SPAN
9232 CLASS="bold"
9233 ><B
9234 CLASS="emphasis"
9235 >backup savedb</B
9236 ></SPAN
9237 > command to copy the database
9238       to tape. The command automatically repairs several types of corruption, and you can then use the <SPAN
9239 CLASS="bold"
9240 ><B
9241 CLASS="emphasis"
9242 >backup
9243       restoredb</B
9244 ></SPAN
9245 > command to transfer the repaired copy of the database back to the local disks of the database server
9246       machines.</P
9247 ><P
9248 >The <SPAN
9249 CLASS="bold"
9250 ><B
9251 CLASS="emphasis"
9252 >backup savedb</B
9253 ></SPAN
9254 > command also removes <SPAN
9255 CLASS="emphasis"
9256 ><I
9257 CLASS="emphasis"
9258 >orphan blocks</I
9259 ></SPAN
9260 >, which are
9261       ranges of memory that the Backup Server preallocated in the database but cannot use. Orphan blocks do not interfere with
9262       database access, but do waste disk space. The <SPAN
9263 CLASS="bold"
9264 ><B
9265 CLASS="emphasis"
9266 >backup dbverify</B
9267 ></SPAN
9268 > command reports the existence
9269       of orphan blocks if you include the <SPAN
9270 CLASS="bold"
9271 ><B
9272 CLASS="emphasis"
9273 >-detail</B
9274 ></SPAN
9275 > flag.</P
9276 ></DIV
9277 ><DIV
9278 CLASS="sect2"
9279 ><H2
9280 CLASS="sect2"
9281 ><A
9282 NAME="HDRWQ319"
9283 >To verify the integrity of the Backup Database</A
9284 ></H2
9285 ><OL
9286 TYPE="1"
9287 ><LI
9288 ><P
9289 >Verify that you are authenticated as a user listed in the <SPAN
9290 CLASS="bold"
9291 ><B
9292 CLASS="emphasis"
9293 >/usr/afs/etc/UserList</B
9294 ></SPAN
9295 >
9296           file. If necessary, issue the <SPAN
9297 CLASS="bold"
9298 ><B
9299 CLASS="emphasis"
9300 >bos listusers</B
9301 ></SPAN
9302 > command, which is fully described in <A
9303 HREF="c32432.html#HDRWQ593"
9304 >To display the users in the UserList file</A
9305 >. <PRE
9306 CLASS="programlisting"
9307 >&#13;   % <SPAN
9308 CLASS="bold"
9309 ><B
9310 CLASS="emphasis"
9311 >bos listusers</B
9312 ></SPAN
9313 > &#60;<SPAN
9314 CLASS="emphasis"
9315 ><I
9316 CLASS="emphasis"
9317 >machine name</I
9318 ></SPAN
9319 >&#62;
9320 </PRE
9321 ></P
9322 ></LI
9323 ><LI
9324 ><P
9325 >Issue the <SPAN
9326 CLASS="bold"
9327 ><B
9328 CLASS="emphasis"
9329 >backup dbverify</B
9330 ></SPAN
9331 > command to check the integrity of the Backup Database.
9332           <PRE
9333 CLASS="programlisting"
9334 >&#13;   % <SPAN
9335 CLASS="bold"
9336 ><B
9337 CLASS="emphasis"
9338 >backup dbverify</B
9339 ></SPAN
9340 > [<SPAN
9341 CLASS="bold"
9342 ><B
9343 CLASS="emphasis"
9344 >-detail</B
9345 ></SPAN
9346 >]
9347 </PRE
9348 ></P
9349 ><P
9350 >where <DIV
9351 CLASS="variablelist"
9352 ><DL
9353 ><DT
9354 ><SPAN
9355 CLASS="bold"
9356 ><B
9357 CLASS="emphasis"
9358 >db</B
9359 ></SPAN
9360 ></DT
9361 ><DD
9362 ><P
9363 >Is the shortest acceptable abbreviation of <SPAN
9364 CLASS="bold"
9365 ><B
9366 CLASS="emphasis"
9367 >dbverify</B
9368 ></SPAN
9369 >.</P
9370 ></DD
9371 ><DT
9372 ><SPAN
9373 CLASS="bold"
9374 ><B
9375 CLASS="emphasis"
9376 >-detail</B
9377 ></SPAN
9378 ></DT
9379 ><DD
9380 ><P
9381 >Reports the existence of orphan blocks and other information about the database, as described on the
9382                   <SPAN
9383 CLASS="bold"
9384 ><B
9385 CLASS="emphasis"
9386 >backup dbverify</B
9387 ></SPAN
9388 > reference page in the <SPAN
9389 CLASS="emphasis"
9390 ><I
9391 CLASS="emphasis"
9392 >IBM AFS Administration
9393                   Reference</I
9394 ></SPAN
9395 >.</P
9396 ></DD
9397 ></DL
9398 ></DIV
9399 ></P
9400 ><P
9401 >The output reports one of the following messages: <UL
9402 ><LI
9403 ><P
9404 ><SAMP
9405 CLASS="computeroutput"
9406 >Database OK</SAMP
9407 > indicates that the Backup Database is undamaged.</P
9408 ></LI
9409 ><LI
9410 ><P
9411 ><SAMP
9412 CLASS="computeroutput"
9413 >Database not OK</SAMP
9414 > indicates that the Backup Database is damaged. To recover
9415                 from the problem, use the instructions in <A
9416 HREF="c15383.html#HDRWQ320"
9417 >To repair corruption in the Backup
9418                 Database</A
9419 >.</P
9420 ></LI
9421 ></UL
9422 ></P
9423 ></LI
9424 ></OL
9425 ></DIV
9426 ><DIV
9427 CLASS="sect2"
9428 ><H2
9429 CLASS="sect2"
9430 ><A
9431 NAME="HDRWQ320"
9432 >To repair corruption in the Backup Database</A
9433 ></H2
9434 ><OL
9435 TYPE="1"
9436 ><LI
9437 ><P
9438 >Log in as the local superuser <SPAN
9439 CLASS="bold"
9440 ><B
9441 CLASS="emphasis"
9442 >root</B
9443 ></SPAN
9444 > on each database server machine in the
9445           cell.</P
9446 ></LI
9447 ><LI
9448 ><P
9449 ><A
9450 NAME="LISAVEDB-STARTTC"
9451 ></A
9452 >If the Tape Coordinator for the tape device that is to perform the operation is not
9453           already running, open a connection to the appropriate Tape Coordinator machine and issue the <SPAN
9454 CLASS="bold"
9455 ><B
9456 CLASS="emphasis"
9457 >butc</B
9458 ></SPAN
9459 > command, for which complete instructions appear in <A
9460 HREF="c15383.html#HDRWQ292"
9461 >To start a Tape
9462           Coordinator process</A
9463 >. <PRE
9464 CLASS="programlisting"
9465 >&#13;   % <SPAN
9466 CLASS="bold"
9467 ><B
9468 CLASS="emphasis"
9469 >butc</B
9470 ></SPAN
9471 > [&#60;<SPAN
9472 CLASS="emphasis"
9473 ><I
9474 CLASS="emphasis"
9475 >port offset</I
9476 ></SPAN
9477 >&#62;] [<SPAN
9478 CLASS="bold"
9479 ><B
9480 CLASS="emphasis"
9481 >-noautoquery</B
9482 ></SPAN
9483 >]
9484 </PRE
9485 ></P
9486 ></LI
9487 ><LI
9488 ><P
9489 >If writing to tape, place a tape in the appropriate device.</P
9490 ></LI
9491 ><LI
9492 ><P
9493 >Working on one of the machines, issue the <SPAN
9494 CLASS="bold"
9495 ><B
9496 CLASS="emphasis"
9497 >backup</B
9498 ></SPAN
9499 > command to enter interactive mode.
9500           <PRE
9501 CLASS="programlisting"
9502 >&#13;   # <SPAN
9503 CLASS="bold"
9504 ><B
9505 CLASS="emphasis"
9506 >backup -localauth</B
9507 ></SPAN
9508 >
9509 </PRE
9510 ></P
9511 ><P
9512 >where <SPAN
9513 CLASS="bold"
9514 ><B
9515 CLASS="emphasis"
9516 >-localauth</B
9517 ></SPAN
9518 > constructs a server ticket from the local <SPAN
9519 CLASS="bold"
9520 ><B
9521 CLASS="emphasis"
9522 >/usr/afs/etc/KeyFile</B
9523 ></SPAN
9524 > file. This flag enables you to issue a privileged command while logged in as
9525           the local superuser <SPAN
9526 CLASS="bold"
9527 ><B
9528 CLASS="emphasis"
9529 >root</B
9530 ></SPAN
9531 > but without AFS administrative tokens.</P
9532 ></LI
9533 ><LI
9534 ><P
9535 >Verify that no backup operations are actively running. If necessary, issue the <SPAN
9536 CLASS="bold"
9537 ><B
9538 CLASS="emphasis"
9539 >(backup)
9540           status</B
9541 ></SPAN
9542 > command as described in <A
9543 HREF="c15383.html#HDRWQ295"
9544 >To check the status of a Tape Coordinator
9545           process</A
9546 >. Repeat for each Tape Coordinator port offset in turn. <PRE
9547 CLASS="programlisting"
9548 >&#13;   backup&#62; <SPAN
9549 CLASS="bold"
9550 ><B
9551 CLASS="emphasis"
9552 >status -portoffset</B
9553 ></SPAN
9554 > &#60;<SPAN
9555 CLASS="emphasis"
9556 ><I
9557 CLASS="emphasis"
9558 >TC port offset</I
9559 ></SPAN
9560 >&#62;
9561 </PRE
9562 ></P
9563 ></LI
9564 ><LI
9565 ><P
9566 ><A
9567 NAME="LISAVEDB-CMD"
9568 ></A
9569 >Issue the <SPAN
9570 CLASS="bold"
9571 ><B
9572 CLASS="emphasis"
9573 >(backup) savedb</B
9574 ></SPAN
9575 > command to repair corruption
9576           in the database as it is written to tape or a file. <PRE
9577 CLASS="programlisting"
9578 >&#13;   backup&#62; <SPAN
9579 CLASS="bold"
9580 ><B
9581 CLASS="emphasis"
9582 >savedb</B
9583 ></SPAN
9584 > [<SPAN
9585 CLASS="bold"
9586 ><B
9587 CLASS="emphasis"
9588 >-portoffset</B
9589 ></SPAN
9590 > &#60;<SPAN
9591 CLASS="emphasis"
9592 ><I
9593 CLASS="emphasis"
9594 >TC port offset</I
9595 ></SPAN
9596 >&#62;]
9597 </PRE
9598 ></P
9599 ><P
9600 >where <DIV
9601 CLASS="variablelist"
9602 ><DL
9603 ><DT
9604 ><SPAN
9605 CLASS="bold"
9606 ><B
9607 CLASS="emphasis"
9608 >sa</B
9609 ></SPAN
9610 ></DT
9611 ><DD
9612 ><P
9613 >Is the shortest acceptable abbreviation of <SPAN
9614 CLASS="bold"
9615 ><B
9616 CLASS="emphasis"
9617 >savedb</B
9618 ></SPAN
9619 >.</P
9620 ></DD
9621 ><DT
9622 ><SPAN
9623 CLASS="bold"
9624 ><B
9625 CLASS="emphasis"
9626 >-portoffset</B
9627 ></SPAN
9628 ></DT
9629 ><DD
9630 ><P
9631 >Specifies the port offset number of the Tape Coordinator handling the tape or backup data file for this
9632                   operation. You must provide this argument unless the default value of 0 (zero) is appropriate.</P
9633 ></DD
9634 ></DL
9635 ></DIV
9636 ></P
9637 ></LI
9638 ><LI
9639 ><P
9640 >Exit interactive mode. <PRE
9641 CLASS="programlisting"
9642 >&#13;   backup&#62;  <SPAN
9643 CLASS="bold"
9644 ><B
9645 CLASS="emphasis"
9646 >quit</B
9647 ></SPAN
9648 >  
9649 </PRE
9650 ></P
9651 ></LI
9652 ><LI
9653 ><P
9654 >On each machine in turn, issue the <SPAN
9655 CLASS="bold"
9656 ><B
9657 CLASS="emphasis"
9658 >bos shutdown</B
9659 ></SPAN
9660 > command to shut down the Backup
9661           Server process. Include the <SPAN
9662 CLASS="bold"
9663 ><B
9664 CLASS="emphasis"
9665 >-localauth</B
9666 ></SPAN
9667 > flag because you are logged in as the local
9668           superuser root, but do not necessarily have administrative tokens. For complete command syntax, see <A
9669 HREF="c6449.html#HDRWQ168"
9670 >To stop processes temporarily</A
9671 >. <PRE
9672 CLASS="programlisting"
9673 >&#13;   # <SPAN
9674 CLASS="bold"
9675 ><B
9676 CLASS="emphasis"
9677 >/usr/afs/bin/bos shutdown</B
9678 ></SPAN
9679 > &#60;<SPAN
9680 CLASS="emphasis"
9681 ><I
9682 CLASS="emphasis"
9683 >machine name</I
9684 ></SPAN
9685 >&#62; <SPAN
9686 CLASS="bold"
9687 ><B
9688 CLASS="emphasis"
9689 >buserver  -localauth  -wait</B
9690 ></SPAN
9691 >
9692 </PRE
9693 ></P
9694 ></LI
9695 ><LI
9696 ><P
9697 >On each machine in turn, issue the following commands to remove the Backup Database. <PRE
9698 CLASS="programlisting"
9699 >&#13;   # <SPAN
9700 CLASS="bold"
9701 ><B
9702 CLASS="emphasis"
9703 >cd /usr/afs/db</B
9704 ></SPAN
9705 >
9706    # <SPAN
9707 CLASS="bold"
9708 ><B
9709 CLASS="emphasis"
9710 >rm bdb.DB0</B
9711 ></SPAN
9712 >
9713    # <SPAN
9714 CLASS="bold"
9715 ><B
9716 CLASS="emphasis"
9717 >rm bdb.DBSYS1</B
9718 ></SPAN
9719 >
9720 </PRE
9721 ></P
9722 ></LI
9723 ><LI
9724 ><P
9725 >On each machine in turn, starting with the machine with the lowest IP address, issue the <SPAN
9726 CLASS="bold"
9727 ><B
9728 CLASS="emphasis"
9729 >bos
9730           start</B
9731 ></SPAN
9732 > command to restart the Backup Server process, which creates a zero-length copy of the Backup Database as
9733           it starts. For complete command syntax, see <A
9734 HREF="c6449.html#HDRWQ166"
9735 >To start processes by changing their status flags to
9736           Run</A
9737 >. <PRE
9738 CLASS="programlisting"
9739 >&#13;   # <SPAN
9740 CLASS="bold"
9741 ><B
9742 CLASS="emphasis"
9743 >/usr/afs/bin/bos start</B
9744 ></SPAN
9745 > &#60;<SPAN
9746 CLASS="emphasis"
9747 ><I
9748 CLASS="emphasis"
9749 >machine name</I
9750 ></SPAN
9751 >&#62; <SPAN
9752 CLASS="bold"
9753 ><B
9754 CLASS="emphasis"
9755 >buserver  -localauth</B
9756 ></SPAN
9757 >
9758 </PRE
9759 ></P
9760 ></LI
9761 ><LI
9762 ><P
9763 >Working on one of the machines, issue the <SPAN
9764 CLASS="bold"
9765 ><B
9766 CLASS="emphasis"
9767 >backup</B
9768 ></SPAN
9769 > command to enter interactive mode.
9770           <PRE
9771 CLASS="programlisting"
9772 >&#13;   # <SPAN
9773 CLASS="bold"
9774 ><B
9775 CLASS="emphasis"
9776 >backup -localauth</B
9777 ></SPAN
9778 >
9779 </PRE
9780 ></P
9781 ><P
9782 >where <SPAN
9783 CLASS="bold"
9784 ><B
9785 CLASS="emphasis"
9786 >-localauth</B
9787 ></SPAN
9788 > constructs a server ticket from the local <SPAN
9789 CLASS="bold"
9790 ><B
9791 CLASS="emphasis"
9792 >/usr/afs/etc/KeyFile</B
9793 ></SPAN
9794 > file.</P
9795 ></LI
9796 ><LI
9797 ><P
9798 >Issue the <SPAN
9799 CLASS="bold"
9800 ><B
9801 CLASS="emphasis"
9802 >(backup) addhost</B
9803 ></SPAN
9804 > command to create an entry in the new, empty database
9805           for the Tape Coordinator process handling the tape or file from which you are reading the repaired copy of the database
9806           (presumably the process you started in Step <A
9807 HREF="c15383.html#LISAVEDB-STARTTC"
9808 >2</A
9809 > and which performed the <SPAN
9810 CLASS="bold"
9811 ><B
9812 CLASS="emphasis"
9813 >backup savedb</B
9814 ></SPAN
9815 > operation in Step <A
9816 HREF="c15383.html#LISAVEDB-CMD"
9817 >6</A
9818 >). For complete syntax, see
9819           Step <A
9820 HREF="c12776.html#LICONFTC-ADDHOST"
9821 >8</A
9822 > in <A
9823 HREF="c12776.html#HDRWQ262"
9824 >To configure a Tape Coordinator machine</A
9825 >.
9826           <PRE
9827 CLASS="programlisting"
9828 >&#13;   backup&#62;  <SPAN
9829 CLASS="bold"
9830 ><B
9831 CLASS="emphasis"
9832 >addhost</B
9833 ></SPAN
9834 > &#60;<SPAN
9835 CLASS="emphasis"
9836 ><I
9837 CLASS="emphasis"
9838 >tape machine name</I
9839 ></SPAN
9840 >&#62; [&#60;<SPAN
9841 CLASS="emphasis"
9842 ><I
9843 CLASS="emphasis"
9844 >TC port offset</I
9845 ></SPAN
9846 >&#62;]
9847 </PRE
9848 ></P
9849 ></LI
9850 ><LI
9851 ><P
9852 >Issue the <SPAN
9853 CLASS="bold"
9854 ><B
9855 CLASS="emphasis"
9856 >(backup) restoredb</B
9857 ></SPAN
9858 > command to copy the repaired database to the database
9859           server machines. <PRE
9860 CLASS="programlisting"
9861 >&#13;   backup&#62; <SPAN
9862 CLASS="bold"
9863 ><B
9864 CLASS="emphasis"
9865 >restoredb</B
9866 ></SPAN
9867 >  [<SPAN
9868 CLASS="bold"
9869 ><B
9870 CLASS="emphasis"
9871 >-portoffset</B
9872 ></SPAN
9873 > &#60;<SPAN
9874 CLASS="emphasis"
9875 ><I
9876 CLASS="emphasis"
9877 >TC port offset</I
9878 ></SPAN
9879 >&#62;]
9880 </PRE
9881 ></P
9882 ><P
9883 >where <DIV
9884 CLASS="variablelist"
9885 ><DL
9886 ><DT
9887 ><SPAN
9888 CLASS="bold"
9889 ><B
9890 CLASS="emphasis"
9891 >res</B
9892 ></SPAN
9893 ></DT
9894 ><DD
9895 ><P
9896 >Is the shortest acceptable abbreviation of <SPAN
9897 CLASS="bold"
9898 ><B
9899 CLASS="emphasis"
9900 >restoredb</B
9901 ></SPAN
9902 >.</P
9903 ></DD
9904 ><DT
9905 ><SPAN
9906 CLASS="bold"
9907 ><B
9908 CLASS="emphasis"
9909 >-portoffset</B
9910 ></SPAN
9911 ></DT
9912 ><DD
9913 ><P
9914 >Specifies the port offset number of the Tape Coordinator handling the tape or backup data file for this
9915                   operation. You must provide this argument unless the default value of <SPAN
9916 CLASS="bold"
9917 ><B
9918 CLASS="emphasis"
9919 >0</B
9920 ></SPAN
9921 > (zero) is
9922                   appropriate.</P
9923 ></DD
9924 ></DL
9925 ></DIV
9926 ></P
9927 ></LI
9928 ><LI
9929 ><P
9930 ><SPAN
9931 CLASS="bold"
9932 ><B
9933 CLASS="emphasis"
9934 >(Optional)</B
9935 ></SPAN
9936 > Exit interactive mode if you do not plan to issue any additional
9937           <SPAN
9938 CLASS="bold"
9939 ><B
9940 CLASS="emphasis"
9941 >backup</B
9942 ></SPAN
9943 > commands. <PRE
9944 CLASS="programlisting"
9945 >&#13;   backup&#62; <SPAN
9946 CLASS="bold"
9947 ><B
9948 CLASS="emphasis"
9949 >quit</B
9950 ></SPAN
9951 >
9952 </PRE
9953 ></P
9954 ></LI
9955 ><LI
9956 ><P
9957 ><SPAN
9958 CLASS="bold"
9959 ><B
9960 CLASS="emphasis"
9961 >(Optional)</B
9962 ></SPAN
9963 > If desired, enter <SPAN
9964 CLASS="bold"
9965 ><B
9966 CLASS="emphasis"
9967 >Ctrl-d</B
9968 ></SPAN
9969 > or another
9970           interrupt signal to exit the <SPAN
9971 CLASS="bold"
9972 ><B
9973 CLASS="emphasis"
9974 >root</B
9975 ></SPAN
9976 > shell on each database server machine. You can also
9977           issue the <SPAN
9978 CLASS="bold"
9979 ><B
9980 CLASS="emphasis"
9981 >Ctrl-c</B
9982 ></SPAN
9983 > signal on the Tape Coordinator machine to stop the process.</P
9984 ></LI
9985 ></OL
9986 ></DIV
9987 ><DIV
9988 CLASS="sect2"
9989 ><H2
9990 CLASS="sect2"
9991 ><A
9992 NAME="HDRWQ321"
9993 >Removing Obsolete Records from the Backup Database</A
9994 ></H2
9995 ><P
9996 >Whenever you recycle or relabel a tape using the <SPAN
9997 CLASS="bold"
9998 ><B
9999 CLASS="emphasis"
10000 >backup dump</B
10001 ></SPAN
10002 > or <SPAN
10003 CLASS="bold"
10004 ><B
10005 CLASS="emphasis"
10006 >backup labeltape</B
10007 ></SPAN
10008 > command, the Backup System automatically removes all of the dump records for the dumps
10009       contained on the tape and all other tapes in the dump set. However, obsolete records can still accumulate in the Backup
10010       Database over time. For example, when you discard a backup tape after using it the maximum number of times recommended by the
10011       manufacturer, the records for dumps on it remain in the database. Similarly, the Backup System does not automatically remove a
10012       dump's record when the dump reaches its expiration date, but only if you then recycle or relabel the tape that contains the
10013       dump. Finally, if a backup operation halts in the middle, the records for any volumes successfully written to tape before the
10014       halt remain in the database.</P
10015 ><P
10016 >A very large Backup Database can make backup operations less efficient because the Backup Server has to navigate through
10017       a large number of records to find the ones it needs. To remove obsolete records, use the <SPAN
10018 CLASS="bold"
10019 ><B
10020 CLASS="emphasis"
10021 >backup
10022       deletedump</B
10023 ></SPAN
10024 > command. Either identify individual dumps by dump ID number, or specify the removal of all dumps created
10025       during a certain time period. Keep in mind that you cannot remove the record of an appended dump except by removing the record
10026       of its initial dump, which removes the records of all associated appended dumps. Removing records of a dump makes it
10027       impossible to restore data from the corresponding tapes or from any dump that refers to the deleted dump as its parent,
10028       directly or indirectly. That is, restore operations must begin with the full dump and continue with each incremental dump in
10029       order. If you have removed the records for a specific dump, you cannot restore any data from later incremental dumps.</P
10030 ><P
10031 >Another way to truncate the Backup Database is to include the <SPAN
10032 CLASS="bold"
10033 ><B
10034 CLASS="emphasis"
10035 >-archive</B
10036 ></SPAN
10037 > argument to the
10038       <SPAN
10039 CLASS="bold"
10040 ><B
10041 CLASS="emphasis"
10042 >backup savedb</B
10043 ></SPAN
10044 > command. After a copy of the database is written to tape or to a backup data
10045       file, the Backup Server deletes the dump records for all dump operations with timestamps prior to the date and time you
10046       specify. However, issuing the <SPAN
10047 CLASS="bold"
10048 ><B
10049 CLASS="emphasis"
10050 >backup deletedump</B
10051 ></SPAN
10052 > command with only the <SPAN
10053 CLASS="bold"
10054 ><B
10055 CLASS="emphasis"
10056 >-to</B
10057 ></SPAN
10058 > argument is equivalent in effect and is simpler because it does not require starting a Tape
10059       Coordinator process as the <SPAN
10060 CLASS="bold"
10061 ><B
10062 CLASS="emphasis"
10063 >backup savedb</B
10064 ></SPAN
10065 > command does. For further information on the
10066       <SPAN
10067 CLASS="bold"
10068 ><B
10069 CLASS="emphasis"
10070 >-archive</B
10071 ></SPAN
10072 > argument to the <SPAN
10073 CLASS="bold"
10074 ><B
10075 CLASS="emphasis"
10076 >backup savedb</B
10077 ></SPAN
10078 > command, see the
10079       command's reference page in the <SPAN
10080 CLASS="emphasis"
10081 ><I
10082 CLASS="emphasis"
10083 >IBM AFS Administration Reference</I
10084 ></SPAN
10085 >.</P
10086 ><P
10087 >If you later need to access deleted dump records, and the corresponding tapes still exist, you can use the <SPAN
10088 CLASS="bold"
10089 ><B
10090 CLASS="emphasis"
10091 >-dbadd</B
10092 ></SPAN
10093 > argument to the <SPAN
10094 CLASS="bold"
10095 ><B
10096 CLASS="emphasis"
10097 >backup scantape</B
10098 ></SPAN
10099 > command to scan their contents
10100       into the database, as instructed in <A
10101 HREF="c15383.html#HDRWQ305"
10102 >To scan the contents of a tape</A
10103 >.</P
10104 ></DIV
10105 ><DIV
10106 CLASS="sect2"
10107 ><H2
10108 CLASS="sect2"
10109 ><A
10110 NAME="HDRWQ322"
10111 >To delete dump records from the Backup Database</A
10112 ></H2
10113 ><OL
10114 TYPE="1"
10115 ><LI
10116 ><P
10117 >Verify that you are authenticated as a user listed in the <SPAN
10118 CLASS="bold"
10119 ><B
10120 CLASS="emphasis"
10121 >/usr/afs/etc/UserList</B
10122 ></SPAN
10123 >
10124           file. If necessary, issue the <SPAN
10125 CLASS="bold"
10126 ><B
10127 CLASS="emphasis"
10128 >bos listusers</B
10129 ></SPAN
10130 > command, which is fully described in <A
10131 HREF="c32432.html#HDRWQ593"
10132 >To display the users in the UserList file</A
10133 >. <PRE
10134 CLASS="programlisting"
10135 >&#13;   % <SPAN
10136 CLASS="bold"
10137 ><B
10138 CLASS="emphasis"
10139 >bos listusers</B
10140 ></SPAN
10141 > &#60;<SPAN
10142 CLASS="emphasis"
10143 ><I
10144 CLASS="emphasis"
10145 >machine name</I
10146 ></SPAN
10147 >&#62;
10148 </PRE
10149 ></P
10150 ></LI
10151 ><LI
10152 ><P
10153 ><SPAN
10154 CLASS="bold"
10155 ><B
10156 CLASS="emphasis"
10157 >(Optional)</B
10158 ></SPAN
10159 > Issue the <SPAN
10160 CLASS="bold"
10161 ><B
10162 CLASS="emphasis"
10163 >backup</B
10164 ></SPAN
10165 > command to enter
10166           interactive mode, if you want to delete multiple records or issue additional commands. The interactive prompt appears in
10167           the following step. <PRE
10168 CLASS="programlisting"
10169 >&#13;   % <SPAN
10170 CLASS="bold"
10171 ><B
10172 CLASS="emphasis"
10173 >backup</B
10174 ></SPAN
10175 >
10176 </PRE
10177 ></P
10178 ></LI
10179 ><LI
10180 ><P
10181 ><SPAN
10182 CLASS="bold"
10183 ><B
10184 CLASS="emphasis"
10185 >(Optional)</B
10186 ></SPAN
10187 > Issue the <SPAN
10188 CLASS="bold"
10189 ><B
10190 CLASS="emphasis"
10191 >backup dumpinfo</B
10192 ></SPAN
10193 > command to
10194           list information from the Backup Database that can help you decide which records to delete. For detailed instructions, see
10195           <A
10196 HREF="c15383.html#HDRWQ303"
10197 >To display dump records</A
10198 >. <PRE
10199 CLASS="programlisting"
10200 >&#13;   backup&#62; <SPAN
10201 CLASS="bold"
10202 ><B
10203 CLASS="emphasis"
10204 >dumpinfo</B
10205 ></SPAN
10206 > [&#60;<SPAN
10207 CLASS="emphasis"
10208 ><I
10209 CLASS="emphasis"
10210 >no. of dumps</I
10211 ></SPAN
10212 >&#62;]  [<SPAN
10213 CLASS="bold"
10214 ><B
10215 CLASS="emphasis"
10216 >-id</B
10217 ></SPAN
10218 > &#60;<SPAN
10219 CLASS="emphasis"
10220 ><I
10221 CLASS="emphasis"
10222 >dump id</I
10223 ></SPAN
10224 >&#62;]  [<SPAN
10225 CLASS="bold"
10226 ><B
10227 CLASS="emphasis"
10228 >-verbose</B
10229 ></SPAN
10230 >]
10231 </PRE
10232 ></P
10233 ></LI
10234 ><LI
10235 ><P
10236 >Issue the <SPAN
10237 CLASS="bold"
10238 ><B
10239 CLASS="emphasis"
10240 >backup deletedump</B
10241 ></SPAN
10242 > command to delete one or more dump sets.
10243           <PRE
10244 CLASS="programlisting"
10245 >&#13;   backup&#62; <SPAN
10246 CLASS="bold"
10247 ><B
10248 CLASS="emphasis"
10249 >deletedump</B
10250 ></SPAN
10251 > [<SPAN
10252 CLASS="bold"
10253 ><B
10254 CLASS="emphasis"
10255 >-dumpid</B
10256 ></SPAN
10257 > &#60;<SPAN
10258 CLASS="emphasis"
10259 ><I
10260 CLASS="emphasis"
10261 >dumpid</I
10262 ></SPAN
10263 >&#62;+] [<SPAN
10264 CLASS="bold"
10265 ><B
10266 CLASS="emphasis"
10267 >-from</B
10268 ></SPAN
10269 > &#60;<SPAN
10270 CLASS="emphasis"
10271 ><I
10272 CLASS="emphasis"
10273 >date time</I
10274 ></SPAN
10275 >&#62;]  \
10276                       [<SPAN
10277 CLASS="bold"
10278 ><B
10279 CLASS="emphasis"
10280 >-to</B
10281 ></SPAN
10282 > &#60;<SPAN
10283 CLASS="emphasis"
10284 ><I
10285 CLASS="emphasis"
10286 >date time</I
10287 ></SPAN
10288 >&#62;] 
10289 </PRE
10290 ></P
10291 ><P
10292 >where <DIV
10293 CLASS="variablelist"
10294 ><DL
10295 ><DT
10296 ><SPAN
10297 CLASS="bold"
10298 ><B
10299 CLASS="emphasis"
10300 >dele</B
10301 ></SPAN
10302 ></DT
10303 ><DD
10304 ><P
10305 >Is the shortest acceptable abbreviation of <SPAN
10306 CLASS="bold"
10307 ><B
10308 CLASS="emphasis"
10309 >deletedump</B
10310 ></SPAN
10311 >.</P
10312 ></DD
10313 ><DT
10314 ><SPAN
10315 CLASS="bold"
10316 ><B
10317 CLASS="emphasis"
10318 >-dumpid</B
10319 ></SPAN
10320 ></DT
10321 ><DD
10322 ><P
10323 >Specifies the dump ID of each initial dump to delete from the Backup Database. The records for all
10324                   associated appended dumps are also deleted. Provide either this argument or the <SPAN
10325 CLASS="bold"
10326 ><B
10327 CLASS="emphasis"
10328 >-to</B
10329 ></SPAN
10330 > (and optionally, <SPAN
10331 CLASS="bold"
10332 ><B
10333 CLASS="emphasis"
10334 >-from</B
10335 ></SPAN
10336 >) argument.</P
10337 ></DD
10338 ><DT
10339 ><SPAN
10340 CLASS="bold"
10341 ><B
10342 CLASS="emphasis"
10343 >-from</B
10344 ></SPAN
10345 ></DT
10346 ><DD
10347 ><P
10348 >Specifies the beginning of a range of dates; the record for any dump created during the indicated period of
10349                   time is deleted.</P
10350 ><P
10351 >To omit all records before the time indicated with the <SPAN
10352 CLASS="bold"
10353 ><B
10354 CLASS="emphasis"
10355 >-to</B
10356 ></SPAN
10357 > argument, omit
10358                   this argument. Otherwise provide a value in the following format</P
10359 ><P
10360 >mm/dd/yyyy [hh:MM]</P
10361 ><P
10362 >where the month (mm), day (dd), and year (yyyy) are required. You can omit the hour and minutes (hh:MM) to
10363                   indicate the default of midnight (00:00 hours). If you provide them, use 24-hour format (for example, the value
10364                   <SPAN
10365 CLASS="bold"
10366 ><B
10367 CLASS="emphasis"
10368 >14:36</B
10369 ></SPAN
10370 > represents 2:36 p.m.).</P
10371 ><P
10372 >You must provide the <SPAN
10373 CLASS="bold"
10374 ><B
10375 CLASS="emphasis"
10376 >-to</B
10377 ></SPAN
10378 > argument along with this one.</P
10379 ><DIV
10380 CLASS="note"
10381 ><BLOCKQUOTE
10382 CLASS="note"
10383 ><P
10384 ><B
10385 >Note: </B
10386 >A plus sign follows this argument in the command's syntax statement because it accepts a multiword value
10387                     which does not need to be enclosed in double quotes or other delimiters, not because it accepts multiple dates.
10388                     Provide only one date (and optionally, time) definition.</P
10389 ></BLOCKQUOTE
10390 ></DIV
10391 ></DD
10392 ><DT
10393 ><SPAN
10394 CLASS="bold"
10395 ><B
10396 CLASS="emphasis"
10397 >-to</B
10398 ></SPAN
10399 ></DT
10400 ><DD
10401 ><P
10402 >Specifies the end of a range of dates; the record of any dump created during the range is deleted from the
10403                   Backup Database.</P
10404 ><P
10405 >To delete all records created after the date you specify with the <SPAN
10406 CLASS="bold"
10407 ><B
10408 CLASS="emphasis"
10409 >-from</B
10410 ></SPAN
10411 >
10412                   argument, specify the value <SPAN
10413 CLASS="bold"
10414 ><B
10415 CLASS="emphasis"
10416 >NOW</B
10417 ></SPAN
10418 >. To delete every dump record in the Backup
10419                   Database, provide the value <SPAN
10420 CLASS="bold"
10421 ><B
10422 CLASS="emphasis"
10423 >NOW</B
10424 ></SPAN
10425 > and omit the <SPAN
10426 CLASS="bold"
10427 ><B
10428 CLASS="emphasis"
10429 >-from</B
10430 ></SPAN
10431 > argument. Otherwise, provide a date value in the same format as described for the
10432                   <SPAN
10433 CLASS="bold"
10434 ><B
10435 CLASS="emphasis"
10436 >-from</B
10437 ></SPAN
10438 > argument. Valid values for the year (yyyy) range from <SPAN
10439 CLASS="bold"
10440 ><B
10441 CLASS="emphasis"
10442 >1970</B
10443 ></SPAN
10444 > to <SPAN
10445 CLASS="bold"
10446 ><B
10447 CLASS="emphasis"
10448 >2037</B
10449 ></SPAN
10450 >; higher values are not valid because the
10451                   latest possible date in the standard UNIX representation is in early 2038. The command interpreter automatically
10452                   reduces any later date to the maximum value in 2038.</P
10453 ><P
10454 >If you omit the time portion (hh:MM), it defaults to 59 seconds after midnight (00:00:59 hours). Similarly,
10455                   the <SPAN
10456 CLASS="bold"
10457 ><B
10458 CLASS="emphasis"
10459 >backup</B
10460 ></SPAN
10461 > command interpreter automatically adds 59 seconds to any time value
10462                   you provide. In both cases, adding 59 seconds compensates for how the Backup Database and <SPAN
10463 CLASS="bold"
10464 ><B
10465 CLASS="emphasis"
10466 >backup dumpinfo</B
10467 ></SPAN
10468 > command represent dump creation times in hours and minutes only. For
10469                   example, the Database records a creation timestamp of <SAMP
10470 CLASS="computeroutput"
10471 >20:55</SAMP
10472 > for any dump
10473                   operation that begins between 20:55:00 and 20:55:59. Automatically adding 59 seconds to a time thus includes the
10474                   records for all dumps created during that minute.</P
10475 ><P
10476 >Provide either this argument, or the <SPAN
10477 CLASS="bold"
10478 ><B
10479 CLASS="emphasis"
10480 >-dumpid</B
10481 ></SPAN
10482 > argument. This argument is
10483                   required if the <SPAN
10484 CLASS="bold"
10485 ><B
10486 CLASS="emphasis"
10487 >-from</B
10488 ></SPAN
10489 > argument is provided.</P
10490 ><DIV
10491 CLASS="note"
10492 ><BLOCKQUOTE
10493 CLASS="note"
10494 ><P
10495 ><B
10496 >Note: </B
10497 >A plus sign follows this argument in the command's syntax statement because it accepts a multiword value
10498                     which does not need to be enclosed in double quotes or other delimiters, not because it accepts multiple dates.
10499                     Provide only one date (and optionally, time) definition.</P
10500 ></BLOCKQUOTE
10501 ></DIV
10502 ></DD
10503 ></DL
10504 ></DIV
10505 ></P
10506 ></LI
10507 ></OL
10508 ></DIV
10509 ></DIV
10510 ></DIV
10511 ><DIV
10512 CLASS="NAVFOOTER"
10513 ><HR
10514 ALIGN="LEFT"
10515 WIDTH="100%"><TABLE
10516 SUMMARY="Footer navigation table"
10517 WIDTH="100%"
10518 BORDER="0"
10519 CELLPADDING="0"
10520 CELLSPACING="0"
10521 ><TR
10522 ><TD
10523 WIDTH="33%"
10524 ALIGN="left"
10525 VALIGN="top"
10526 ><A
10527 HREF="c12776.html"
10528 ACCESSKEY="P"
10529 >Prev</A
10530 ></TD
10531 ><TD
10532 WIDTH="34%"
10533 ALIGN="center"
10534 VALIGN="top"
10535 ><A
10536 HREF="book1.html"
10537 ACCESSKEY="H"
10538 >Home</A
10539 ></TD
10540 ><TD
10541 WIDTH="33%"
10542 ALIGN="right"
10543 VALIGN="top"
10544 ><A
10545 HREF="c18360.html"
10546 ACCESSKEY="N"
10547 >Next</A
10548 ></TD
10549 ></TR
10550 ><TR
10551 ><TD
10552 WIDTH="33%"
10553 ALIGN="left"
10554 VALIGN="top"
10555 >Configuring the AFS Backup System</TD
10556 ><TD
10557 WIDTH="34%"
10558 ALIGN="center"
10559 VALIGN="top"
10560 ><A
10561 HREF="p3023.html"
10562 ACCESSKEY="U"
10563 >Up</A
10564 ></TD
10565 ><TD
10566 WIDTH="33%"
10567 ALIGN="right"
10568 VALIGN="top"
10569 >Monitoring and Auditing AFS Performance</TD
10570 ></TR
10571 ></TABLE
10572 ></DIV
10573 ></BODY
10574 ></HTML
10575 >