Imported Upstream version 2.6.0p1
[debian/amanda] / man / amanda.8
1 .\"     Title: amanda
2 .\"    Author: 
3 .\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>
4 .\"      Date: 05/14/2008
5 .\"    Manual: 
6 .\"    Source: 
7 .\"
8 .TH "AMANDA" "8" "05/14/2008" "" ""
9 .\" disable hyphenation
10 .nh
11 .\" disable justification (adjust text to left margin only)
12 .ad l
13 .SH "NAME"
14 amanda - Advanced Maryland Automatic Network Disk Archiver
15 .SH "SYNOPSIS"
16 .HP 8
17 \fBamadmin\fR \fIconfig\fR \fIcommand\fR [\fIoptions\fR]
18 .br
19
20 .HP 8
21 \fBamcheck\fR [\fIoptions\fR] \fIconfig\fR
22 .br
23
24 .HP 10
25 \fBamcheckdb\fR \fIconfig\fR
26 .br
27
28 .HP 10
29 \fBamcleanup\fR \fIconfig\fR
30 .br
31
32 .HP 8
33 \fBamcrypt\fR
34 .br
35
36 .HP 5
37 \fBamdd\fR [\fIoptions\fR]
38 .HP 7
39 \fBamdump\fR \fIconfig\fR
40 .br
41
42 .HP 10
43 \fBamaespipe\fR
44 .br
45
46 .HP 8
47 \fBamflush\fR [\-f] \fIconfig\fR
48 .br
49
50 .HP 10
51 \fBamgetconf\fR [\fIconfig\fR] \fIparameter\fR
52 .br
53
54 .HP 8
55 \fBamlabel\fR \fIconfig\fR \fIlabel\fR [\fIslot\fR\ \fIslot\fR]
56 .br
57
58 .HP 5
59 \fBammt\fR [\fIoptions\fR]
60 .HP 11
61 \fBamoverview\fR \fIconfig\fR [\fIoptions\fR]
62 .br
63
64 .HP 7
65 \fBamplot\fR [\fIoptions\fR] \fIamdump\-files\fR
66 .br
67
68 .HP 10
69 \fBamrecover\fR [\fIconfig\fR] [\fIoptions\fR]
70 .br
71
72 .HP 9
73 \fBamreport\fR [\fIconfig\fR] [\fIoptions\fR]
74 .br
75
76 .HP 10
77 \fBamrestore\fR [\fIoptions\fR] \fItapedevice\fR [\fIhostname\fR\ [\fIdiskname\fR]]
78 .br
79
80 .HP 12
81 \fBamfetchdump\fR [\fIoptions\fR] \fIconfig\fR [\fIhostname\fR\ [\fIdiskname\fR\ [\fIdate\fR\ [level]]]]
82 .HP 9
83 \fBamrmtape\fR [\fIoptions\fR] \fIconfig\fR \fIlabel\fR
84 .br
85
86 .HP 9
87 \fBamstatus\fR \fIconfig\fR [\fIoptions\fR]
88 .br
89
90 .HP 7
91 \fBamtape\fR \fIconfig\fR \fIcommand\fR [\fIoptions\fR]
92 .br
93
94 .HP 11
95 \fBamtapetype\fR [\fIoptions\fR]
96 .HP 6
97 \fBamtoc\fR [\fIoptions\fR] \fIlogfile\fR
98 .br
99
100 .HP 12
101 \fBamcheckdump\fR [\fIoptions\fR] \fIconfig\fR
102 .br
103
104 .HP 15
105 \fBamserverconfig\fR [\fIoptions\fR] \fIconfig\fR
106 .br
107
108 .HP 12
109 \fBamaddclient\fR \fIconfig\fR [\fIoptions\fR]
110 .br
111
112 .SH "DESCRIPTION"
113 .PP
114 \fIAmanda\fR
115 is the "Advanced Maryland Automatic Network Disk Archiver"\. This manual page gives an overview of the
116 \fIAmanda\fR
117 commands and configuration files for quick reference\.
118 .PP
119 Here are all the
120 \fIAmanda\fR
121 commands\. Each one has its own manual page\. See them for all the gory details\.
122 .PP
123 \fBamdump\fR
124 .RS 4
125 Take care of automatic
126 \fIAmanda\fR
127 backups\. This is normally executed by
128 \fBcron\fR
129 on a computer called the
130 \fItape server host\fR
131 and requests backups of file systems located on
132 \fIbackup\fR
133 \fIclients\fR\.
134 \fBAmdump\fR
135 backs up all disks in the
136 \fIdisklist\fR
137 file (discussed below) to tape or, if there is a problem, to a special
138 \fIholding\fR
139 \fIdisk\fR\. After all backups are done,
140 \fBamdump\fR
141 sends mail reporting failures and successes\.
142 .RE
143 .PP
144 \fBamflush\fR
145 .RS 4
146 Flush backups from the holding disk to tape\.
147 \fBAmflush\fR
148 is used after
149 \fBamdump\fR
150 has reported it could not write backups to tape for some reason\. When this happens, backups stay in the holding disk\. Run
151 \fBamflush\fR
152 after the tape problem is corrected to write backups from the holding disk to tape\.
153 .RE
154 .PP
155 \fBamcleanup\fR
156 .RS 4
157 Clean up after an interrupted
158 \fBamdump\fR\. This command is only needed if
159 \fBamdump\fR
160 was unable to complete for some reason, usually because the tape server host crashed while
161 \fBamdump\fR
162 was running\.
163 .RE
164 .PP
165 \fBamrecover\fR
166 .RS 4
167 Provides an interactive interface to browse the
168 \fIAmanda\fR
169 index files (backup image catalogues) and select which tapes to recover files from\. It can also run
170 \fBamrestore\fR
171 and a restore program (e\.g\.
172 \fBtar\fR) to actually recover the files\.
173 .RE
174 .PP
175 \fBamrestore\fR
176 .RS 4
177 Read an
178 \fIAmanda\fR
179 tape, searching for requested backups\.
180 \fBAmrestore\fR
181 is suitable for everything from interactive restores of single files to a full restore of all partitions on a failed disk\.
182 .RE
183 .PP
184 \fBamfetchdump\fR
185 .RS 4
186 Performs
187 \fIAmanda\fR
188 tape restoration, similar to
189 \fBamrestore\fR\. Additional capabilities include "hands\-off" searching of multiple tapes, automatic retrieval of specific dump files based on dump logs, and assembly of tape\-spanning split dump files\.
190 .RE
191 .PP
192 \fBamlabel\fR
193 .RS 4
194 Write an
195 \fIAmanda\fR
196 format label onto a tape\. All
197 \fIAmanda\fR
198 tapes must be labeled with
199 \fBamlabel\fR\.
200 \fBAmdump\fR
201 and
202 \fBamflush\fR
203 will not write to an unlabeled tape (see TAPE MANAGEMENT below)\.
204 .RE
205 .PP
206 \fBamcheck\fR
207 .RS 4
208 Verify the correct tape is mounted and all file systems on all backup client systems are ready to be backed up\. Often run by
209 \fBcron\fR
210 before
211 \fBamdump\fR
212 to generate a mail warning that backups might fail unless corrective action is taken\.
213 .RE
214 .PP
215 \fBamadmin\fR
216 .RS 4
217 Take care of administrative tasks like finding out which tapes are needed to restore a filesystem, forcing hosts to do full backups of selected disks and looking at schedule balance information\.
218 .RE
219 .PP
220 \fBamtape\fR
221 .RS 4
222 Take care of tape changer control operations like loading particular tapes, ejecting tapes and scanning the tape storage slots\.
223 .RE
224 .PP
225 \fBamcheckdump\fR
226 .RS 4
227 Check the results of an
228 \fIAmanda\fR
229 dump\.
230 .RE
231 .PP
232 \fBamserverconfig\fR
233 .RS 4
234 Program to setup initial
235 \fIAmanda\fR
236 configuration\.
237 .RE
238 .PP
239 \fBamaddclient\fR
240 .RS 4
241 Program to add client to an existing
242 \fIAmanda\fR
243 configuration\.
244 .RE
245 .PP
246 \fBamrmtape\fR
247 .RS 4
248 Delete a tape from the
249 \fIAmanda\fR
250 databases\.
251 .RE
252 .PP
253 \fBamstatus\fR
254 .RS 4
255 Report the status of a running or completed
256 \fBamdump\fR\.
257 .RE
258 .PP
259 \fBamoverview\fR
260 .RS 4
261 Display a chart of hosts and file systems backed up every run\.
262 .RE
263 .PP
264 \fBamplot\fR
265 .RS 4
266 Generate utilization plots of
267 \fIAmanda\fR
268 runs for performance tuning\.
269 .RE
270 .PP
271 \fBamreport\fR
272 .RS 4
273 Generate an
274 \fIAmanda\fR
275 summary E\-mail report\.
276 .RE
277 .PP
278 \fBamtoc\fR
279 .RS 4
280 Generate table of content files for
281 \fIAmanda\fR
282 tapes\.
283 .RE
284 .PP
285 \fBamcheckdb\fR
286 .RS 4
287 Verify every tape
288 \fIAmanda\fR
289 knows about is consistent in the database\.
290 .RE
291 .PP
292 \fBamgetconf\fR
293 .RS 4
294 Look up parameters in the
295 \fIAmanda\fR
296 configuration file\.
297 .RE
298 .PP
299 \fBamtapetype\fR
300 .RS 4
301 Generate a tapetype definition\.
302 .RE
303 .PP
304 \fBamaespipe\fR
305 .RS 4
306 Wrapper program from aespipe (data encryption utility)
307 .RE
308 .PP
309 \fBamcrypt\fR
310 .RS 4
311 Reference encryption program for Amanda symmetric data encryption
312 .RE
313 .SH "CONFIGURATION"
314 .PP
315 There are three user\-editable files that control the behavior of
316 \fIAmanda\fR\.
317 .PP
318 The first is
319 \fBamanda\.conf\fR, the main configuration file\. It contains parameters to customize
320 \fIAmanda\fR
321 for the site\. Refer to the
322 \fBamanda.conf\fR(5), manpage for details on
323 \fIAmanda\fR
324 configuration parameters\.
325 .PP
326 Second is the
327 \fIdisklist\fR
328 file, which lists hosts and disk partitions to back up\.
329 .PP
330 Third is the
331 \fItapelist\fR
332 file, which lists tapes that are currently active\. These files are described in more detail in the following sections\.
333 .PP
334 All files are stored in individual configuration directories under
335 \fI/usr/local/etc/amanda/\fR\. A site will often have more than one configuration\. For example, it might have a
336 \fInormal\fR
337 configuration for everyday backups and an
338 \fIarchive\fR
339 configuration for infrequent full archival backups\. The configuration files would be stored under directories
340 \fI/usr/local/etc/amanda/normal/\fR
341 and
342 \fI/usr/local/etc/amanda/archive/\fR, respectively\. Part of the job of an
343 \fIAmanda\fR
344 administrator is to create, populate and maintain these directories\.
345 .PP
346 All log and database files generated by
347 \fIAmanda\fR
348 go in corresponding directories somewhere\. The exact location is controlled by entries in
349 \fBamanda\.conf\fR\. A typical location would be under
350 \fI/var/adm/amanda\fR\. For the above example, the files might go in
351 \fI/var/adm/amanda/normal/\fR
352 and
353 \fI/var/adm/amanda/archive/\fR\.
354 .PP
355 As log files are no longer needed (no longer contain relevant information),
356 \fIAmanda\fR
357 cycles them out in various ways, depending on the type of file\.
358 .PP
359 Detailed information about
360 \fBamdump\fR
361 runs are stored in files named
362 \fBamdump\.\fR\fINN\fR
363 where
364 \fINN\fR
365 is a sequence number, with 1 being the most recent file\.
366 \fBAmdump\fR
367 rotates these files each run, keeping roughly the last
368 \fBtapecycle\fR
369 (see below) worth of them\.
370 .PP
371 The file used by
372 \fBamreport\fR
373 to generate the mail summary is named
374 \fBlog\.\fR\fIYYYYMMDD\.NN\fR
375 where
376 \fIYYYYMMDD\fR
377 is the datestamp of the start of the
378 \fBamdump\fR
379 run and
380 \fINN\fR
381 is a sequence number started at 0\. At the end of each
382 \fBamdump\fR
383 run, log files for runs whose tapes have been reused are renamed into a subdirectory of the main log directory (see the
384 \fBlogdir\fR
385 parameter below) named
386 \fBoldlog\fR\. It is up to the
387 \fIAmanda\fR
388 administrator to remove them from this directory when desired\.
389 .PP
390 Index (backup image catalogue) files older than the full dump matching the oldest backup image for a given client and disk are removed by
391 \fBamdump\fR
392 at the end of each run\.
393 .SH "DISKLIST FILE"
394 .PP
395 The
396 \fIdisklist\fR
397 file determines which disks will be backed up by
398 \fIAmanda\fR\. The file usually contains one line per disk:
399 .sp
400 .RS 4
401 .nf
402 \fIhostname diskname\fR [\fIdiskdevice\fR] \fIdumptype\fR [\fIspindle\fR [\fIinterface\fR] ]
403 .fi
404 .RE
405 .PP
406 All pairs [
407 \fIhostname diskname\fR
408 ] must be unique\.
409 .PP
410 Lines starting with # are ignored, as are blank lines\. The fields have the following meanings:
411 .PP
412 \fIhostname\fR
413 .RS 4
414 The name of the host to be backed up\. If
415 \fBdiskdevice\fR
416 refers to a PC share, this is the host
417 \fIAmanda\fR
418 will run the Samba
419 \fBsmbclient\fR
420 program on to back up the share\.
421 .RE
422 .PP
423 \fIdiskname\fR
424 .RS 4
425 The name of the disk (a label)\. In most case, you set your
426 \fBdiskname\fR
427 to the
428 \fBdiskdevice\fR
429 and you don\'t set the
430 \fBdiskdevice\.\fR
431 If you want multiple entries with the same
432 \fBdiskdevice\fR, you must set a different
433 \fBdiskname\fR
434 for each entry\. It\'s the
435 \fBdiskname\fR
436 that you use on the commandline for any
437 \fIAmanda\fR
438 command\. Look at the example/disklist file for example\.
439 .RE
440 .PP
441 \fIdiskdevice\fR
442 .RS 4
443 Default: same as diskname\. The name of the disk device to be backed up\. It may be a full device name, a device name without the
444 \fI/dev/\fR
445 prefix, e\.g\.
446 \fIsd0a\fR, or a mount point such as
447 \fI/usr\fR\.
448 .sp
449 It may also refer to a PC share by starting the name with two (forward) slashes, e\.g\.
450 \fI//some\-pc/home\fR\. In this case, the
451 \fBprogram\fR
452 option in the associated
453 \fBdumptype\fR
454 must be entered as
455 \fBGNUTAR\fR\. It is the combination of the double slash disk name and
456 \fBprogram GNUTAR\fR
457 in the
458 \fBdumptype\fR
459 that triggers the use of Samba\.
460 .RE
461 .PP
462 \fIdumptype\fR
463 .RS 4
464 Refers to a
465 \fBdumptype\fR
466 defined in the
467 \fBamanda\.conf\fR
468 file\.
469 \fIDumptype\fRs specify backup related parameters, such as whether to compress the backups, whether to record backup results in
470 \fI/etc/dumpdates\fR, the disk\'s relative priority, etc\.
471 .RE
472 .PP
473 \fIspindle\fR
474 .RS 4
475 Default:
476 \fB\-1\fR\. A number used to balance backup load on a host\.
477 \fIAmanda\fR
478 will not run multiple backups at the same time on the same spindle, unless the spindle number is \-1, which means there is no spindle restriction\.
479 .RE
480 .PP
481 \fIinterface\fR
482 .RS 4
483 Default:
484 \fIlocal\fR\. The name of a network interface definition in the
485 \fBamanda\.conf\fR
486 file, used to balance network load\.
487 .RE
488 .PP
489 Instead of naming a
490 \fBdumptype\fR, it is possible to define one in\-line, enclosing
491 \fBdumptype\fR
492 options within curly braces, one per line, just like a
493 \fBdumptype\fR
494 definition in
495 \fBamanda\.conf\fR\. Since pre\-existing
496 \fBdumptype\fRs are valid option names, this syntax may be used to customize
497 \fBdumptype\fRs for particular disks\.
498 .PP
499 A line break
500 \fBmust\fR
501 follow the left curly bracket\.
502 .PP
503 For instance, if a
504 \fBdumptype\fR
505 named
506 \fInormal\fR
507 is used for most disks, but use of the holding disk needs to be disabled for the file system that holds it, this would work instead of defining a new dumptype:
508 .sp
509 .RS 4
510 .nf
511 \fIhostname diskname\fR [ \fIdiskdevice\fR ] {
512   normal
513   holdingdisk never
514 } [ \fIspindle\fR [ \fIinterface\fR ] ]
515 .fi
516 .RE
517 .SH "TAPE MANAGEMENT"
518 .PP
519 The
520 \fItapelist\fR
521 file contains the list of tapes in active use\. This file is maintained entirely by
522 \fIAmanda\fR
523 and should not be created or edited during normal operation\. It contains lines of the form:
524 .PP
525 .RS 4
526 .nf
527 YYYYMMDD label flags
528 .fi
529 .RE
530 .PP
531 Where
532 \fIYYYYMMDD\fR
533 is the date the tape was written,
534 \fIlabel\fR
535 is a label for the tape as written by
536 \fBamlabel\fR
537 and
538 \fIflags\fR
539 tell
540 \fIAmanda\fR
541 whether the tape may be reused, etc (see the
542 \fBreuse\fR
543 options of
544 \fBamadmin\fR)\.
545 .PP
546 \fBAmdump\fR
547 and
548 \fBamflush\fR
549 will refuse to write to an unlabeled tape, or to a labeled tape that is considered active\. There must be more tapes in active rotation (see the
550 \fBtapecycle\fR
551 option) than there are runs in the backup cycle (see the
552 \fBdumpcycle\fR
553 option) to prevent overwriting a backup image that would be needed to do a full recovery\.
554 .SH "OUTPUT DRIVERS"
555 .PP
556 The normal value for the
557 \fBtapedev\fR
558 parameter, or for what a tape changer returns, is a full path name to a non\-rewinding tape device, such as
559 \fI/dev/nst0\fR
560 or
561 \fI/dev/rmt/0mn\fR
562 or
563 \fI/dev/nst0\.1\fR
564 or whatever conventions the operating system uses\.
565 \fIAmanda\fR
566 provides additional application level drivers that support non\-traditional tape\-simulations or features\. To access a specific output driver, set
567 \fBtapedev\fR
568 (or configure your changer to return) a string of the form
569 \fIdriver\fR:\fIdriver\-info\fR
570 where
571 \fIdriver\fR
572 is one of the supported drivers and
573 \fIdriver\-info\fR
574 is optional additional information needed by the driver\.
575 .PP
576 The supported drivers are:
577 .PP
578 \fItape\fR
579 .RS 4
580 This is the default driver\. The
581 \fIdriver\-info\fR
582 is the tape device name\. Entering
583 .sp
584 .RS 4
585 .nf
586 tapedev /dev/rmt/0mn
587 .fi
588 .RE
589 .sp
590 is really a short hand for
591 .sp
592 .RS 4
593 .nf
594 tapedev tape:/dev/rmt/0mn
595 .fi
596 .RE
597 .RE
598 .PP
599 \fInull\fR
600 .RS 4
601 This driver throws away anything written to it and returns EOF for any reads except a special case is made for reading a label, in which case a "fake" value is returned that
602 \fIAmanda\fR
603 checks for and allows through regardless of what you have set in
604 \fBlabelstr\fR\. The
605 \fIdriver\-info\fR
606 field is not used and may be left blank:
607 .sp
608 .sp
609 .RS 4
610 .nf
611 tapedev null:
612 .fi
613 .RE
614 .sp
615 The
616 \fIlength\fR
617 value from the associated
618 \fBtapetype\fR
619 is used to limit the amount of data written\. When the limit is reached, the driver will simulate end of tape\.
620 .sp
621 .it 1 an-trap
622 .nr an-no-space-flag 1
623 .nr an-break-flag 1
624 .br
625 Note
626 This driver should only be used for debugging and testing, and probably only with the
627 \fBrecord\fR
628 option set to
629 \fIno\fR\.
630 .RE
631 .PP
632 \fIrait\fR
633 .RS 4
634 \fIR\fRedundant
635 \fIA\fRrray of
636 \fII\fRnexpensive (?)
637 \fIT\fRapes\. Reads and writes tapes mounted on multiple drives by spreading the data across N\-1 drives and using the last drive for a checksum\. See docs/RAIT for more information\.
638 .sp
639 The
640 \fIdriver\-info\fR
641 field describes the devices to use\. Curly braces indicate multiple replacements in the string\. For instance:
642 .sp
643 .sp
644 .RS 4
645 .nf
646 tapedev rait:/dev/rmt/tps0d{4,5,6}n
647 .fi
648 .RE
649 .sp
650 would use the following devices:
651 .sp
652 \fI/dev/rmt/tps0d4n\fR
653 \fI/dev/rmt/tps0d5n\fR
654 \fI/dev/rmt/tps0d6n\fR
655 .RE
656 .PP
657 \fIfile\fR
658 .RS 4
659 This driver emulates a tape device with a set of files in a directory\. The
660 \fIdriver\-info\fR
661 field must be the name of an existing directory\. The driver will test for a subdirectory of that named
662 \fIdata\fR
663 and return
664 \fBoffline\fR
665 until it is present\. When present, the driver uses two files in the
666 \fIdata\fR
667 subdirectory for each tape file\. One contains the actual data\. The other contains record length information\.
668 .sp
669 The driver uses a file named
670 \fIstatus\fR
671 in the
672 \fBfile\fR
673 device directory to hold driver status information, such as tape position\. If not present, the driver will create it as though the device is rewound\.
674 .sp
675 The
676 \fIlength\fR
677 value from the associated
678 \fBtapetype\fR
679 is used to limit the amount of data written\. When the limit is reached, the driver will simulate end of tape\.
680 .sp
681 One way to use this driver with a real device such as a CD\-writer is to create a directory for the
682 \fBfile\fR
683 device and one or more other directories for the actual data\. Create a symlink named
684 \fIdata\fR
685 in the
686 \fBfile\fR
687 directory to one of the data directories\. Set the
688 \fBtapetype\fR
689 length to whatever the medium will hold\.
690 .sp
691 When
692 \fIAmanda\fR
693 fills the
694 \fBfile\fR
695 device, remove the symlink and (optionally) create a new symlink to another data area\. Use a CD writer software package to burn the image from the first data area\.
696 .sp
697 To read the CD, mount it and create the
698 \fIdata\fR
699 symlink in the
700 \fBfile\fR
701 device directory\.
702 .RE
703 .SH "AUTHORIZATION"
704 .PP
705 \fIAmanda\fR
706 processes on the tape server host run as the
707 \fBdumpuser\fR
708 user listed in
709 \fBamanda\.conf\fR\. When they connect to a backup client, they do so with an
710 \fIAmanda\fR\-specific protocol\. They do not, for instance, use
711 \fBrsh\fR
712 or
713 \fBssh\fR
714 directly\.
715 .PP
716 On the client side, the
717 \fBamandad\fR
718 daemon validates the connection using one of several methods, depending on how it was compiled and on options it is passed:
719 .PP
720 \.rhosts
721 .RS 4
722 Even though
723 \fIAmanda\fR
724 does not use
725 \fBrsh\fR, it can use
726 \fB\.rhosts\fR\-style authentication and a
727 \fB\.rhosts\fR
728 file\.
729 .RE
730 .PP
731 \.amandahosts
732 .RS 4
733 This is essentially the same as
734 \fB\.rhosts\fR
735 authentication except a different file, with almost the same format, is used\. This is the default mechanism built into
736 \fIAmanda\fR\.
737 .sp
738 The format of the
739 \fI\.amandahosts\fR
740 file is:
741 .sp
742 \fIhostname\fR
743 [
744 \fIusername\fR
745 [
746 \fIservice\fR
747 ]*]
748 .sp
749 If
750 \fIusername\fR
751 is ommitted, it defaults to the user running
752 \fBamandad\fR, i\.e\. the user listed in the
753 \fBinetd\fR
754 or
755 \fBxinetd\fR
756 configuration file\.
757 .sp
758 The
759 \fIservice\fR
760 is a list of the service the client is authorized to execute:
761 \fBamdump\fR,
762 \fBnoop\fR,
763 \fBselfcheck\fR,
764 \fBsendsize\fR,
765 \fBsendbackup\fR,
766 \fBamindexd\fR,
767 \fBamidxtaped\fR\.
768 \fBamdump\fR
769 is a shortcut for "noop selfcheck sendsize sendbackup"
770 .RE
771 .PP
772 Kerberos
773 .RS 4
774 \fIAmanda\fR
775 may use the Kerberos authentication system\. Further information is in the
776 \fBdocs/KERBEROS\fR
777 file that comes with an
778 \fIAmanda\fR
779 distribution\.
780 .sp
781 For Samba access,
782 \fIAmanda\fR
783 needs a file on the Samba server (which may or may not also be the tape server) named
784 \fI/etc/amandapass\fR
785 with share names, (clear text) passwords and (optional) domain names, in that order, one per line, whitespace separated\. By default, the user used to connect to the PC is the same for all PC\'s and is compiled into
786 \fIAmanda\fR\. It may be changed on a host by host basis by listing it first in the password field followed by a percent sign and then the password\. For instance:
787 .sp
788 .RS 4
789 .nf
790   //some\-pc/home normalpw
791   //another\-pc/disk otheruser%otherpw
792 .fi
793 .RE
794 With clear text passwords, this file should obviously be tightly protected\. It only needs to be readable by the
795 \fIAmanda\fR\-user on the Samba server\.
796 .sp
797 You can find further information in the
798 \fBdocs/SAMBA\fR
799 file that comes with an
800 \fIAmanda\fR
801 distribution\.
802 .RE
803 .SH "HOST & DISK EXPRESSION"
804 .PP
805 All host and disk arguments to programs are special expressions\. The command applies to all disks that match your arguments\. This section describes the matcher\.
806 .PP
807 The matcher matches by word, each word is a glob expression, words are separated by the separator \'\.\' for host and \'/\' for disk\. You can anchor the expression at left with a \'^\'\. You can anchor the expression at right with a \'$\'\. The matcher is case insensitive for host but is case sensitive for disk\. A match succeeds if all words in your expression match contiguous words in the host or disk\.
808 .TS
809 tab(:);
810 l l
811 l l
812 l l
813 l l
814 l l
815 l l
816 l l.
817 T{
818 \.
819 T}:T{
820 word separator for a host
821 T}
822 T{
823 /
824 T}:T{
825 word separator for a disk
826 T}
827 T{
828 ^
829 T}:T{
830 anchor at left
831 T}
832 T{
833 $
834 T}:T{
835 anchor at right
836 T}
837 T{
838 ?
839 T}:T{
840 match exactly one character except the separator
841 T}
842 T{
843 *
844 T}:T{
845 match zero or more characters except the separator
846 T}
847 T{
848 **
849 T}:T{
850 match zero or more characters including the separator
851 T}
852 .TE
853 .PP
854 Some examples:
855 .TS
856 tab(:);
857 l l l
858 l l l
859 l l l
860 l l l
861 l l l
862 l l l
863 l l l
864 l l l
865 l l l
866 l l l
867 l l l
868 l l l
869 l l l
870 l l l
871 l l l
872 l l l
873 l l l
874 l l l
875 l l l.
876 T{
877 EXPRESSION
878 T}:T{
879 WILL MATCH
880 T}:T{
881 WILL NOT MATCH
882 T}
883 T{
884 hosta
885 T}:T{
886 hosta
887 T}:T{
888 hostb
889 T}
890 T{
891
892 T}:T{
893 hoSTA\.dOMAIna\.ORG
894 T}:T{
895
896 T}
897 T{
898
899 T}:T{
900 foo\.hosta\.org
901 T}:T{
902
903 T}
904 T{
905 host
906 T}:T{
907 host
908 T}:T{
909 hosta
910 T}
911 T{
912 host?
913 T}:T{
914 hosta
915 T}:T{
916 host
917 T}
918 T{
919
920 T}:T{
921 hostb
922 T}:T{
923
924 T}
925 T{
926 ho*na
927 T}:T{
928 hoina
929 T}:T{
930 ho\.aina\.org
931 T}
932 T{
933 ho**na
934 T}:T{
935 hoina
936 T}:T{
937
938 T}
939 T{
940
941 T}:T{
942 ho\.aina\.org
943 T}:T{
944
945 T}
946 T{
947 ^hosta
948 T}:T{
949 hosta
950 T}:T{
951 foo\.hosta\.org
952 T}
953 T{
954 sda*
955 T}:T{
956 /dev/sda1
957 T}:T{
958
959 T}
960 T{
961
962 T}:T{
963 /dev/sda12
964 T}:T{
965
966 T}
967 T{
968 /opt
969 T}:T{
970 opt (disk)
971 T}:T{
972 opt (host)
973 T}
974 T{
975 \.opt\.
976 T}:T{
977 opt (host)
978 T}:T{
979 opt (disk)
980 T}
981 T{
982 /
983 T}:T{
984 /
985 T}:T{
986 any other disk
987 T}
988 T{
989 /usr
990 T}:T{
991 /usr
992 T}:T{
993
994 T}
995 T{
996
997 T}:T{
998 /usr/opt
999 T}:T{
1000
1001 T}
1002 T{
1003 /usr$
1004 T}:T{
1005 /usr
1006 T}:T{
1007 /usr/opt
1008 T}
1009 .TE
1010 .sp
1011 .SH "DATESTAMP EXPRESSION"
1012 .PP
1013 A
1014 \fIdatestamp\fR
1015 expression is a range expression where we only match the prefix\. Leading ^ is removed\. Trailing $ forces an exact match\.
1016 .TS
1017 allbox tab(:);
1018 l l
1019 l l
1020 l l
1021 l l
1022 l l
1023 l l
1024 l l.
1025 T{
1026 20001212\-14
1027 T}:T{
1028 match all dates beginning with 20001212, 20001213 or 20001214
1029 T}
1030 T{
1031 20001212\-4
1032 T}:T{
1033 same as previous
1034 T}
1035 T{
1036 20001212\-24
1037 T}:T{
1038 match all dates between 20001212 and 20001224
1039 T}
1040 T{
1041 2000121
1042 T}:T{
1043 match all dates that start with 2000121 (20001210\-20001219)
1044 T}
1045 T{
1046 2
1047 T}:T{
1048 match all dates that start with 2 (20000101\-29991231)
1049 T}
1050 T{
1051 2000\-10
1052 T}:T{
1053 match all dates between 20000101\-20101231
1054 T}
1055 T{
1056 200010$
1057 T}:T{
1058 match only 200010
1059 T}
1060 .TE
1061 .PP
1062 .SH "DUMP SPECIFICATIONS"
1063 .PP
1064 A dump specification selects one or more dumps\. It has the form
1065 \fI[host][:disk][@datestamp]\fR, where each component is a pattern as described above\. If a component is missing, it is treated as a wildcard\. The characters \':\', \'@\', and \'\e\' may be escaped within any component by preceding them with a \'\e\'\.
1066 .PP
1067 Some examples:
1068 .TS
1069 tab(:);
1070 l l
1071 l l
1072 l l
1073 l l
1074 l l
1075 l l.
1076 T{
1077 DUMPSPEC
1078 T}:T{
1079 DESCRIPTION
1080 T}
1081 T{
1082 client17
1083 T}:T{
1084 all dumps of client17
1085 T}
1086 T{
1087 @20080615
1088 T}:T{
1089 All dumps on with datestamps matching 20080615
1090 T}
1091 T{
1092 webserver:/var/www
1093 T}:T{
1094 All dumps of /var/www on host webserver
1095 T}
1096 T{
1097 webserver:/var/www@200806150317
1098 T}:T{
1099 The dump of webserver with datestamp 200806150317
1100 T}
1101 T{
1102 :/var/www
1103 T}:T{
1104 All dumps of /var/www on any host
1105 T}
1106 .TE
1107 .sp
1108 .SH "CONFIGURATION OVERRIDE"
1109 .PP
1110 Most commands allow the override of specific configuration options on the command line, using the
1111 \-o
1112 option\. This option has the form
1113 \-o\fIname\fR=\fIvalue\fR\. An optional space is allowed after the
1114 \-o\. Each configuration option should be specified in a separate command\-line option\.
1115 .PP
1116 For global options,
1117 \fIname\fR
1118 is simply the name of the option, e\.g\.,
1119 .sp
1120 .RS 4
1121 .nf
1122 amdump \-oruntapes=2
1123 .fi
1124 .RE
1125 .sp
1126 For options in a named section of the configuration,
1127 \fIname\fR
1128 has the form
1129 \fISECTION\fR:\fIsection_name\fR:\fIname\fR, where
1130 \fISECTION\fR
1131 is one of TAPETYPE, DUMPTYPE, HOLDINGDISK, or INTERFACE, and
1132 \fIsection_name\fR
1133 is the name of the tapetype, dumptype, holdingdisk, or interface\. Examples:
1134 .sp
1135 .RS 4
1136 .nf
1137 amdump \-o TAPETYPE:HP\-DAT:length=2000m
1138 amdump \-o DUMPTYPE:no\-compress:compress="server fast"
1139 amdump \-o HOLDINGDISK:hd1:use="\-100 mb"
1140 amdump \-o INTERFACE:local:use="2000 kbps"
1141 .fi
1142 .RE
1143 .PP
1144 Note that configuration overrides are not effective for tape changers, which supply a tapedev based on their own configuration\. In order to override
1145 \fItapedev\fR, you must also disable any changer:
1146 .sp
1147 .RS 4
1148 .nf
1149 amdump \-otapedev=/dev/nst1 \-otpchanger=\'\'
1150 .fi
1151 .RE
1152 .sp
1153 .SH "AUTHOR"
1154 .PP
1155 James da Silva,
1156 <jds@amanda\.org>
1157 : Original text
1158 .PP
1159 Stefan G\. Weichinger,
1160 <sgw@amanda\.org>, maintainer of the
1161 \fIAmanda\fR\-documentation: XML\-conversion, major update
1162 .SH "SEE ALSO"
1163 .PP
1164
1165 \fBamadmin\fR(8),
1166 \fBamanda.conf\fR(5),
1167 \fBamanda-client.conf\fR(5),
1168 \fBamcheck\fR(8),
1169 \fBamcheckdb\fR(8),
1170 \fBamcleanup\fR(8),
1171 \fBamdd\fR(8),
1172 \fBamdump\fR(8),
1173 \fBamfetchdump\fR(8)
1174 \fBamflush\fR(8),
1175 \fBamgetconf\fR(8),
1176 \fBamlabel\fR(8),
1177 \fBammt\fR(8),
1178 \fBamoverview\fR(8),
1179 \fBamplot\fR(8),
1180 \fBamrecover\fR(8),
1181 \fBamreport\fR(8),
1182 \fBamrestore\fR(8),
1183 \fBamrmtape\fR(8),
1184 \fBamstatus\fR(8),
1185 \fBamtape\fR(8),
1186 \fBamtapetype\fR(8),
1187 \fBamtoc\fR(8),
1188 \fBamcheckdump\fR(8),
1189 \fBamserverconfig\fR(8),
1190 \fBamaddclient\fR(8),
1191 \fI\%http://wiki.zmanda.com\fR