ef16e72828242ee6367e09560e46f69def53ff07
[debian/amanda] / man / amanda.8
1 .\"     Title: amanda
2 .\"    Author: 
3 .\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>
4 .\"      Date: 08/22/2008
5 .\"    Manual: 
6 .\"    Source: 
7 .\"
8 .TH "AMANDA" "8" "08/22/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 .nf
400 \fIhostname diskname\fR [\fIdiskdevice\fR] \fIdumptype\fR [\fIspindle\fR [\fIinterface\fR] ]
401 .fi
402 .PP
403 All pairs [
404 \fIhostname diskname\fR
405 ] must be unique\.
406 .PP
407 Lines starting with # are ignored, as are blank lines\. The fields have the following meanings:
408 .PP
409 \fIhostname\fR
410 .RS 4
411 The name of the host to be backed up\. If
412 \fBdiskdevice\fR
413 refers to a PC share, this is the host
414 \fIAmanda\fR
415 will run the Samba
416 \fBsmbclient\fR
417 program on to back up the share\.
418 .RE
419 .PP
420 \fIdiskname\fR
421 .RS 4
422 The name of the disk (a label)\. In most case, you set your
423 \fBdiskname\fR
424 to the
425 \fBdiskdevice\fR
426 and you don\'t set the
427 \fBdiskdevice\.\fR
428 If you want multiple entries with the same
429 \fBdiskdevice\fR, you must set a different
430 \fBdiskname\fR
431 for each entry\. It\'s the
432 \fBdiskname\fR
433 that you use on the commandline for any
434 \fIAmanda\fR
435 command\. Look at the example/disklist file for example\.
436 .RE
437 .PP
438 \fIdiskdevice\fR
439 .RS 4
440 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
441 \fI/dev/\fR
442 prefix, e\.g\.
443 \fIsd0a\fR, or a mount point such as
444 \fI/usr\fR\.
445 .sp
446 It may also refer to a PC share by starting the name with two (forward) slashes, e\.g\.
447 \fI//some\-pc/home\fR\. In this case, the
448 \fBprogram\fR
449 option in the associated
450 \fBdumptype\fR
451 must be entered as
452 \fBGNUTAR\fR\. It is the combination of the double slash disk name and
453 \fBprogram GNUTAR\fR
454 in the
455 \fBdumptype\fR
456 that triggers the use of Samba\.
457 .RE
458 .PP
459 \fIdumptype\fR
460 .RS 4
461 Refers to a
462 \fBdumptype\fR
463 defined in the
464 \fBamanda\.conf\fR
465 file\.
466 \fIDumptype\fRs specify backup related parameters, such as whether to compress the backups, whether to record backup results in
467 \fI/etc/dumpdates\fR, the disk\'s relative priority, etc\.
468 .RE
469 .PP
470 \fIspindle\fR
471 .RS 4
472 Default:
473 \fB\-1\fR\. A number used to balance backup load on a host\.
474 \fIAmanda\fR
475 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\.
476 .RE
477 .PP
478 \fIinterface\fR
479 .RS 4
480 Default:
481 \fIlocal\fR\. The name of a network interface definition in the
482 \fBamanda\.conf\fR
483 file, used to balance network load\.
484 .RE
485 .PP
486 Instead of naming a
487 \fBdumptype\fR, it is possible to define one in\-line, enclosing
488 \fBdumptype\fR
489 options within curly braces, one per line, just like a
490 \fBdumptype\fR
491 definition in
492 \fBamanda\.conf\fR\. Since pre\-existing
493 \fBdumptype\fRs are valid option names, this syntax may be used to customize
494 \fBdumptype\fRs for particular disks\.
495 .PP
496 A line break
497 \fBmust\fR
498 follow the left curly bracket\.
499 .PP
500 For instance, if a
501 \fBdumptype\fR
502 named
503 \fInormal\fR
504 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:
505 .nf
506 \fIhostname diskname\fR [ \fIdiskdevice\fR ] {
507   normal
508   holdingdisk never
509 } [ \fIspindle\fR [ \fIinterface\fR ] ]
510 .fi
511 .SH "TAPE MANAGEMENT"
512 .PP
513 The
514 \fItapelist\fR
515 file contains the list of tapes in active use\. This file is maintained entirely by
516 \fIAmanda\fR
517 and should not be created or edited during normal operation\. It contains lines of the form:
518 .PP
519 .nf
520 YYYYMMDD label flags
521 .fi
522 .PP
523 Where
524 \fIYYYYMMDD\fR
525 is the date the tape was written,
526 \fIlabel\fR
527 is a label for the tape as written by
528 \fBamlabel\fR
529 and
530 \fIflags\fR
531 tell
532 \fIAmanda\fR
533 whether the tape may be reused, etc (see the
534 \fBreuse\fR
535 options of
536 \fBamadmin\fR)\.
537 .PP
538 \fBAmdump\fR
539 and
540 \fBamflush\fR
541 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
542 \fBtapecycle\fR
543 option) than there are runs in the backup cycle (see the
544 \fBdumpcycle\fR
545 option) to prevent overwriting a backup image that would be needed to do a full recovery\.
546 .SH "OUTPUT DRIVERS"
547 .PP
548 The normal value for the
549 \fBtapedev\fR
550 parameter, or for what a tape changer returns, is a full path name to a non\-rewinding tape device, such as
551 \fI/dev/nst0\fR
552 or
553 \fI/dev/rmt/0mn\fR
554 or
555 \fI/dev/nst0\.1\fR
556 or whatever conventions the operating system uses\.
557 \fIAmanda\fR
558 provides additional application level drivers that support non\-traditional tape\-simulations or features\. To access a specific output driver, set
559 \fBtapedev\fR
560 (or configure your changer to return) a string of the form
561 \fIdriver\fR:\fIdriver\-info\fR
562 where
563 \fIdriver\fR
564 is one of the supported drivers and
565 \fIdriver\-info\fR
566 is optional additional information needed by the driver\.
567 .PP
568 The supported drivers are:
569 .PP
570 \fItape\fR
571 .RS 4
572 This is the default driver\. The
573 \fIdriver\-info\fR
574 is the tape device name\. Entering
575 .sp
576 .nf
577 tapedev /dev/rmt/0mn
578 .fi
579 is really a short hand for
580 .sp
581 .nf
582 tapedev tape:/dev/rmt/0mn
583 .fi
584 .RE
585 .PP
586 \fInull\fR
587 .RS 4
588 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
589 \fIAmanda\fR
590 checks for and allows through regardless of what you have set in
591 \fBlabelstr\fR\. The
592 \fIdriver\-info\fR
593 field is not used and may be left blank:
594 .sp
595 .sp
596 .nf
597 tapedev null:
598 .fi
599 .sp
600 The
601 \fIlength\fR
602 value from the associated
603 \fBtapetype\fR
604 is used to limit the amount of data written\. When the limit is reached, the driver will simulate end of tape\.
605 .sp
606 .it 1 an-trap
607 .nr an-no-space-flag 1
608 .nr an-break-flag 1
609 .br
610 Note
611 This driver should only be used for debugging and testing, and probably only with the
612 \fBrecord\fR
613 option set to
614 \fIno\fR\.
615 .RE
616 .PP
617 \fIrait\fR
618 .RS 4
619 \fIR\fRedundant
620 \fIA\fRrray of
621 \fII\fRnexpensive (?)
622 \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\.
623 .sp
624 The
625 \fIdriver\-info\fR
626 field describes the devices to use\. Curly braces indicate multiple replacements in the string\. For instance:
627 .sp
628 .sp
629 .nf
630 tapedev rait:/dev/rmt/tps0d{4,5,6}n
631 .fi
632 .sp
633 would use the following devices:
634 .sp
635 \fI/dev/rmt/tps0d4n\fR
636 \fI/dev/rmt/tps0d5n\fR
637 \fI/dev/rmt/tps0d6n\fR
638 .RE
639 .PP
640 \fIfile\fR
641 .RS 4
642 This driver emulates a tape device with a set of files in a directory\. The
643 \fIdriver\-info\fR
644 field must be the name of an existing directory\. The driver will test for a subdirectory of that named
645 \fIdata\fR
646 and return
647 \fBoffline\fR
648 until it is present\. When present, the driver uses two files in the
649 \fIdata\fR
650 subdirectory for each tape file\. One contains the actual data\. The other contains record length information\.
651 .sp
652 The driver uses a file named
653 \fIstatus\fR
654 in the
655 \fBfile\fR
656 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\.
657 .sp
658 The
659 \fIlength\fR
660 value from the associated
661 \fBtapetype\fR
662 is used to limit the amount of data written\. When the limit is reached, the driver will simulate end of tape\.
663 .sp
664 One way to use this driver with a real device such as a CD\-writer is to create a directory for the
665 \fBfile\fR
666 device and one or more other directories for the actual data\. Create a symlink named
667 \fIdata\fR
668 in the
669 \fBfile\fR
670 directory to one of the data directories\. Set the
671 \fBtapetype\fR
672 length to whatever the medium will hold\.
673 .sp
674 When
675 \fIAmanda\fR
676 fills the
677 \fBfile\fR
678 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\.
679 .sp
680 To read the CD, mount it and create the
681 \fIdata\fR
682 symlink in the
683 \fBfile\fR
684 device directory\.
685 .RE
686 .SH "AUTHORIZATION"
687 .PP
688 \fIAmanda\fR
689 processes on the tape server host run as the
690 \fBdumpuser\fR
691 user listed in
692 \fBamanda\.conf\fR\. When they connect to a backup client, they do so with an
693 \fIAmanda\fR\-specific protocol\. They do not, for instance, use
694 \fBrsh\fR
695 or
696 \fBssh\fR
697 directly\.
698 .PP
699 On the client side, the
700 \fBamandad\fR
701 daemon validates the connection using one of several methods, depending on how it was compiled and on options it is passed:
702 .PP
703 \.rhosts
704 .RS 4
705 Even though
706 \fIAmanda\fR
707 does not use
708 \fBrsh\fR, it can use
709 \fB\.rhosts\fR\-style authentication and a
710 \fB\.rhosts\fR
711 file\.
712 .RE
713 .PP
714 \.amandahosts
715 .RS 4
716 This is essentially the same as
717 \fB\.rhosts\fR
718 authentication except a different file, with almost the same format, is used\. This is the default mechanism built into
719 \fIAmanda\fR\.
720 .sp
721 The format of the
722 \fI\.amandahosts\fR
723 file is:
724 .sp
725 \fIhostname\fR
726 [
727 \fIusername\fR
728 [
729 \fIservice\fR
730 ]*]
731 .sp
732 If
733 \fIusername\fR
734 is ommitted, it defaults to the user running
735 \fBamandad\fR, i\.e\. the user listed in the
736 \fBinetd\fR
737 or
738 \fBxinetd\fR
739 configuration file\.
740 .sp
741 The
742 \fIservice\fR
743 is a list of the service the client is authorized to execute:
744 \fBamdump\fR,
745 \fBnoop\fR,
746 \fBselfcheck\fR,
747 \fBsendsize\fR,
748 \fBsendbackup\fR,
749 \fBamindexd\fR,
750 \fBamidxtaped\fR\.
751 \fBamdump\fR
752 is a shortcut for "noop selfcheck sendsize sendbackup"
753 .RE
754 .PP
755 Kerberos
756 .RS 4
757 \fIAmanda\fR
758 may use the Kerberos authentication system\. Further information is in the
759 \fBdocs/KERBEROS\fR
760 file that comes with an
761 \fIAmanda\fR
762 distribution\.
763 .sp
764 For Samba access,
765 \fIAmanda\fR
766 needs a file on the Samba server (which may or may not also be the tape server) named
767 \fI/etc/amandapass\fR
768 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
769 \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:
770 .nf
771   //some\-pc/home normalpw
772   //another\-pc/disk otheruser%otherpw
773 .fi
774 With clear text passwords, this file should obviously be tightly protected\. It only needs to be readable by the
775 \fIAmanda\fR\-user on the Samba server\.
776 .sp
777 You can find further information in the
778 \fBdocs/SAMBA\fR
779 file that comes with an
780 \fIAmanda\fR
781 distribution\.
782 .RE
783 .SH "HOST & DISK EXPRESSION"
784 .PP
785 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\.
786 .PP
787 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\.
788 .TS
789 tab(:);
790 l l
791 l l
792 l l
793 l l
794 l l
795 l l
796 l l.
797 T{
798 \.
799 T}:T{
800 word separator for a host
801 T}
802 T{
803 /
804 T}:T{
805 word separator for a disk
806 T}
807 T{
808 ^
809 T}:T{
810 anchor at left
811 T}
812 T{
813 $
814 T}:T{
815 anchor at right
816 T}
817 T{
818 ?
819 T}:T{
820 match exactly one character except the separator
821 T}
822 T{
823 *
824 T}:T{
825 match zero or more characters except the separator
826 T}
827 T{
828 **
829 T}:T{
830 match zero or more characters including the separator
831 T}
832 .TE
833 .PP
834 Some examples:
835 .TS
836 tab(:);
837 l l l
838 l l l
839 l l l
840 l l l
841 l l l
842 l l l
843 l l l
844 l l l
845 l l l
846 l l l
847 l l l
848 l l l
849 l l l
850 l l l
851 l l l
852 l l l
853 l l l
854 l l l
855 l l l.
856 T{
857 EXPRESSION
858 T}:T{
859 WILL MATCH
860 T}:T{
861 WILL NOT MATCH
862 T}
863 T{
864 hosta
865 T}:T{
866 hosta
867 T}:T{
868 hostb
869 T}
870 T{
871
872 T}:T{
873 hoSTA\.dOMAIna\.ORG
874 T}:T{
875
876 T}
877 T{
878
879 T}:T{
880 foo\.hosta\.org
881 T}:T{
882
883 T}
884 T{
885 host
886 T}:T{
887 host
888 T}:T{
889 hosta
890 T}
891 T{
892 host?
893 T}:T{
894 hosta
895 T}:T{
896 host
897 T}
898 T{
899
900 T}:T{
901 hostb
902 T}:T{
903
904 T}
905 T{
906 ho*na
907 T}:T{
908 hoina
909 T}:T{
910 ho\.aina\.org
911 T}
912 T{
913 ho**na
914 T}:T{
915 hoina
916 T}:T{
917
918 T}
919 T{
920
921 T}:T{
922 ho\.aina\.org
923 T}:T{
924
925 T}
926 T{
927 ^hosta
928 T}:T{
929 hosta
930 T}:T{
931 foo\.hosta\.org
932 T}
933 T{
934 sda*
935 T}:T{
936 /dev/sda1
937 T}:T{
938
939 T}
940 T{
941
942 T}:T{
943 /dev/sda12
944 T}:T{
945
946 T}
947 T{
948 /opt
949 T}:T{
950 opt (disk)
951 T}:T{
952 opt (host)
953 T}
954 T{
955 \.opt\.
956 T}:T{
957 opt (host)
958 T}:T{
959 opt (disk)
960 T}
961 T{
962 /
963 T}:T{
964 /
965 T}:T{
966 any other disk
967 T}
968 T{
969 /usr
970 T}:T{
971 /usr
972 T}:T{
973
974 T}
975 T{
976
977 T}:T{
978 /usr/opt
979 T}:T{
980
981 T}
982 T{
983 /usr$
984 T}:T{
985 /usr
986 T}:T{
987 /usr/opt
988 T}
989 .TE
990 .sp
991 .SH "DATESTAMP EXPRESSION"
992 .PP
993 A
994 \fIdatestamp\fR
995 expression is a range expression where we only match the prefix\. Leading ^ is removed\. Trailing $ forces an exact match\.
996 .TS
997 allbox tab(:);
998 l l
999 l l
1000 l l
1001 l l
1002 l l
1003 l l
1004 l l.
1005 T{
1006 20001212\-14
1007 T}:T{
1008 match all dates beginning with 20001212, 20001213 or 20001214
1009 T}
1010 T{
1011 20001212\-4
1012 T}:T{
1013 same as previous
1014 T}
1015 T{
1016 20001212\-24
1017 T}:T{
1018 match all dates between 20001212 and 20001224
1019 T}
1020 T{
1021 2000121
1022 T}:T{
1023 match all dates that start with 2000121 (20001210\-20001219)
1024 T}
1025 T{
1026 2
1027 T}:T{
1028 match all dates that start with 2 (20000101\-29991231)
1029 T}
1030 T{
1031 2000\-10
1032 T}:T{
1033 match all dates between 20000101\-20101231
1034 T}
1035 T{
1036 200010$
1037 T}:T{
1038 match only 200010
1039 T}
1040 .TE
1041 .PP
1042 .SH "DUMP SPECIFICATIONS"
1043 .PP
1044 A dump specification selects one or more dumps\. It has the form
1045 \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\'\.
1046 .PP
1047 Some examples:
1048 .TS
1049 tab(:);
1050 l l
1051 l l
1052 l l
1053 l l
1054 l l
1055 l l.
1056 T{
1057 DUMPSPEC
1058 T}:T{
1059 DESCRIPTION
1060 T}
1061 T{
1062 client17
1063 T}:T{
1064 all dumps of client17
1065 T}
1066 T{
1067 @20080615
1068 T}:T{
1069 All dumps on with datestamps matching 20080615
1070 T}
1071 T{
1072 webserver:/var/www
1073 T}:T{
1074 All dumps of /var/www on host webserver
1075 T}
1076 T{
1077 webserver:/var/www@200806150317
1078 T}:T{
1079 The dump of webserver with datestamp 200806150317
1080 T}
1081 T{
1082 :/var/www
1083 T}:T{
1084 All dumps of /var/www on any host
1085 T}
1086 .TE
1087 .sp
1088 .SH "CONFIGURATION OVERRIDE"
1089 .PP
1090 Most commands allow the override of specific configuration options on the command line, using the
1091 \-o
1092 option\. This option has the form
1093 \-o\fIname\fR=\fIvalue\fR\. An optional space is allowed after the
1094 \-o\. Each configuration option should be specified in a separate command\-line option\.
1095 .PP
1096 For global options,
1097 \fIname\fR
1098 is simply the name of the option, e\.g\.,
1099 .sp
1100 .nf
1101 amdump \-oruntapes=2
1102 .fi
1103 For options in a named section of the configuration,
1104 \fIname\fR
1105 has the form
1106 \fISECTION\fR:\fIsection_name\fR:\fIname\fR, where
1107 \fISECTION\fR
1108 is one of TAPETYPE, DUMPTYPE, HOLDINGDISK, or INTERFACE, and
1109 \fIsection_name\fR
1110 is the name of the tapetype, dumptype, holdingdisk, or interface\. Examples:
1111 .sp
1112 .nf
1113 amdump \-o TAPETYPE:HP\-DAT:length=2000m
1114 amdump \-o DUMPTYPE:no\-compress:compress="server fast"
1115 amdump \-o HOLDINGDISK:hd1:use="\-100 mb"
1116 amdump \-o INTERFACE:local:use="2000 kbps"
1117 .fi
1118 .PP
1119 Note that configuration overrides are not effective for tape changers, which supply a tapedev based on their own configuration\. In order to override
1120 \fItapedev\fR, you must also disable any changer:
1121 .sp
1122 .nf
1123 amdump \-otapedev=/dev/nst1 \-otpchanger=\'\'
1124 .fi
1125 .SH "AUTHOR"
1126 .PP
1127 James da Silva,
1128 <jds@amanda\.org>
1129 : Original text
1130 .PP
1131 Stefan G\. Weichinger,
1132 <sgw@amanda\.org>, maintainer of the
1133 \fIAmanda\fR\-documentation: XML\-conversion, major update
1134 .SH "SEE ALSO"
1135 .PP
1136
1137 \fBamadmin\fR(8),
1138 \fBamanda.conf\fR(5),
1139 \fBamanda-client.conf\fR(5),
1140 \fBamcheck\fR(8),
1141 \fBamcheckdb\fR(8),
1142 \fBamcleanup\fR(8),
1143 \fBamdd\fR(8),
1144 \fBamdump\fR(8),
1145 \fBamfetchdump\fR(8)
1146 \fBamflush\fR(8),
1147 \fBamgetconf\fR(8),
1148 \fBamlabel\fR(8),
1149 \fBammt\fR(8),
1150 \fBamoverview\fR(8),
1151 \fBamplot\fR(8),
1152 \fBamrecover\fR(8),
1153 \fBamreport\fR(8),
1154 \fBamrestore\fR(8),
1155 \fBamrmtape\fR(8),
1156 \fBamstatus\fR(8),
1157 \fBamtape\fR(8),
1158 \fBamtapetype\fR(8),
1159 \fBamtoc\fR(8),
1160 \fBamcheckdump\fR(8),
1161 \fBamserverconfig\fR(8),
1162 \fBamaddclient\fR(8),
1163 : http://wiki.zmanda.com