Imported Upstream version 2.5.1p3
[debian/amanda] / man / amanda.8
1 .\"     Title: amanda
2 .\"    Author: 
3 .\" Generator: DocBook XSL Stylesheets v1.72.0 <http://docbook.sf.net/>
4 .\"      Date: 02/07/2007
5 .\"    Manual: 
6 .\"    Source: 
7 .\"
8 .TH "AMANDA" "8" "02/07/2007" "" ""
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 9
101 \fBamverify\fR \fIconfig\fR
102 .br
103
104 .HP 12
105 \fBamverifyrun\fR \fIconfig\fR
106 .SH "DESCRIPTION"
107 .PP
108 \fIAmanda\fR
109 is the "Advanced Maryland Automatic Network Disk Archiver". This manual page gives an overview of the
110 \fIAmanda\fR
111 commands and configuration files for quick reference.
112 .PP
113 Here are all the
114 \fIAmanda\fR
115 commands. Each one has its own manual page. See them for all the gory details.
116 .PP
117 \fBamdump\fR
118 .RS 4
119 Take care of automatic
120 \fIAmanda\fR
121 backups. This is normally executed by
122 \fBcron\fR
123 on a computer called the
124 \fItape server host\fR
125 and requests backups of file systems located on
126 \fIbackup\fR
127 \fIclients\fR.
128 \fBAmdump\fR
129 backs up all disks in the
130 \fIdisklist\fR
131 file (discussed below) to tape or, if there is a problem, to a special
132 \fIholding\fR
133 \fIdisk\fR. After all backups are done,
134 \fBamdump\fR
135 sends mail reporting failures and successes.
136 .RE
137 .PP
138 \fBamflush\fR
139 .RS 4
140 Flush backups from the holding disk to tape.
141 \fBAmflush\fR
142 is used after
143 \fBamdump\fR
144 has reported it could not write backups to tape for some reason. When this happens, backups stay in the holding disk. Run
145 \fBamflush\fR
146 after the tape problem is corrected to write backups from the holding disk to tape.
147 .RE
148 .PP
149 \fBamcleanup\fR
150 .RS 4
151 Clean up after an interrupted
152 \fBamdump\fR. This command is only needed if
153 \fBamdump\fR
154 was unable to complete for some reason, usually because the tape server host crashed while
155 \fBamdump\fR
156 was running.
157 .RE
158 .PP
159 \fBamrecover\fR
160 .RS 4
161 Provides an interactive interface to browse the
162 \fIAmanda\fR
163 index files (backup image catalogues) and select which tapes to recover files from. It can also run
164 \fBamrestore\fR
165 and a restore program (e.g.
166 \fBtar\fR) to actually recover the files.
167 .RE
168 .PP
169 \fBamrestore\fR
170 .RS 4
171 Read an
172 \fIAmanda\fR
173 tape, searching for requested backups.
174 \fBAmrestore\fR
175 is suitable for everything from interactive restores of single files to a full restore of all partitions on a failed disk.
176 .RE
177 .PP
178 \fBamfetchdump\fR
179 .RS 4
180 Performs
181 \fIAmanda\fR
182 tape restoration, similar to
183 \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.
184 .RE
185 .PP
186 \fBamlabel\fR
187 .RS 4
188 Write an
189 \fIAmanda\fR
190 format label onto a tape. All
191 \fIAmanda\fR
192 tapes must be labeled with
193 \fBamlabel\fR.
194 \fBAmdump\fR
195 and
196 \fBamflush\fR
197 will not write to an unlabeled tape (see TAPE MANAGEMENT below).
198 .RE
199 .PP
200 \fBamcheck\fR
201 .RS 4
202 Verify the correct tape is mounted and all file systems on all backup client systems are ready to be backed up. Often run by
203 \fBcron\fR
204 before
205 \fBamdump\fR
206 to generate a mail warning that backups might fail unless corrective action is taken.
207 .RE
208 .PP
209 \fBamadmin\fR
210 .RS 4
211 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.
212 .RE
213 .PP
214 \fBamtape\fR
215 .RS 4
216 Take care of tape changer control operations like loading particular tapes, ejecting tapes and scanning the tape storage slots.
217 .RE
218 .PP
219 \fBamverify\fR
220 .RS 4
221 Check
222 \fIAmanda\fR
223 backup tapes for errors.
224 .RE
225 .PP
226 \fBamrmtape\fR
227 .RS 4
228 Delete a tape from the
229 \fIAmanda\fR
230 databases.
231 .RE
232 .PP
233 \fBamstatus\fR
234 .RS 4
235 Report the status of a running or completed
236 \fBamdump\fR.
237 .RE
238 .PP
239 \fBamoverview\fR
240 .RS 4
241 Display a chart of hosts and file systems backed up every run.
242 .RE
243 .PP
244 \fBamplot\fR
245 .RS 4
246 Generate utilization plots of
247 \fIAmanda\fR
248 runs for performance tuning.
249 .RE
250 .PP
251 \fBamreport\fR
252 .RS 4
253 Generate an
254 \fIAmanda\fR
255 summary E\-mail report.
256 .RE
257 .PP
258 \fBamtoc\fR
259 .RS 4
260 Generate table of content files for
261 \fIAmanda\fR
262 tapes.
263 .RE
264 .PP
265 \fBamcheckdb\fR
266 .RS 4
267 Verify every tape
268 \fIAmanda\fR
269 knows about is consistent in the database.
270 .RE
271 .PP
272 \fBamgetconf\fR
273 .RS 4
274 Look up parameters in the
275 \fIAmanda\fR
276 configuration file.
277 .RE
278 .PP
279 \fBamtapetype\fR
280 .RS 4
281 Generate a tapetype definition.
282 .RE
283 .PP
284 \fBamaespipe\fR
285 .RS 4
286 Wrapper program from aespipe (data encryption utility)
287 .RE
288 .PP
289 \fBamcrypt\fR
290 .RS 4
291 Reference encryption program for Amanda symmetric data encryption
292 .RE
293 .SH "CONFIGURATION"
294 .PP
295 There are three user\-editable files that control the behavior of
296 \fIAmanda\fR.
297 .PP
298 The first is
299 \fBamanda.conf\fR, the main configuration file. It contains parameters to customize
300 \fIAmanda\fR
301 for the site. Refer to the
302 \fBamanda.conf\fR(5), manpage for details on
303 \fIAmanda\fR
304 configuration parameters.
305 .PP
306 Second is the
307 \fIdisklist\fR
308 file, which lists hosts and disk partitions to back up.
309 .PP
310 Third is the
311 \fItapelist\fR
312 file, which lists tapes that are currently active. These files are described in more detail in the following sections.
313 .PP
314 All files are stored in individual configuration directories under
315 \fI/usr/local/etc/amanda/\fR. A site will often have more than one configuration. For example, it might have a
316 \fInormal\fR
317 configuration for everyday backups and an
318 \fIarchive\fR
319 configuration for infrequent full archival backups. The configuration files would be stored under directories
320 \fI/usr/local/etc/amanda/normal/\fR
321 and
322 \fI/usr/local/etc/amanda/archive/\fR, respectively. Part of the job of an
323 \fIAmanda\fR
324 administrator is to create, populate and maintain these directories.
325 .PP
326 All log and database files generated by
327 \fIAmanda\fR
328 go in corresponding directories somewhere. The exact location is controlled by entries in
329 \fBamanda.conf\fR. A typical location would be under
330 \fI/var/adm/amanda\fR. For the above example, the files might go in
331 \fI/var/adm/amanda/normal/\fR
332 and
333 \fI/var/adm/amanda/archive/\fR.
334 .PP
335 As log files are no longer needed (no longer contain relevant information),
336 \fIAmanda\fR
337 cycles them out in various ways, depending on the type of file.
338 .PP
339 Detailed information about
340 \fBamdump\fR
341 runs are stored in files named
342 \fBamdump.\fR\fINN\fR
343 where
344 \fINN\fR
345 is a sequence number, with 1 being the most recent file.
346 \fBAmdump\fR
347 rotates these files each run, keeping roughly the last
348 \fBtapecycle\fR
349 (see below) worth of them.
350 .PP
351 The file used by
352 \fBamreport\fR
353 to generate the mail summary is named
354 \fBlog.\fR\fIYYYYMMDD.NN\fR
355 where
356 \fIYYYYMMDD\fR
357 is the datestamp of the start of the
358 \fBamdump\fR
359 run and
360 \fINN\fR
361 is a sequence number started at 0. At the end of each
362 \fBamdump\fR
363 run, log files for runs whose tapes have been reused are renamed into a subdirectory of the main log directory (see the
364 \fBlogdir\fR
365 parameter below) named
366 \fBoldlog\fR. It is up to the
367 \fIAmanda\fR
368 administrator to remove them from this directory when desired.
369 .PP
370 Index (backup image catalogue) files older than the full dump matching the oldest backup image for a given client and disk are removed by
371 \fBamdump\fR
372 at the end of each run.
373 .SH "DISKLIST FILE"
374 .PP
375 The
376 \fIdisklist\fR
377 file determines which disks will be backed up by
378 \fIAmanda\fR. The file usually contains one line per disk:
379 .sp
380 .RS 4
381 .nf
382 \fIhostname diskname\fR [\fIdiskdevice\fR] \fIdumptype\fR [\fIspindle\fR [\fIinterface\fR] ]
383 .fi
384 .RE
385 .PP
386 All pairs [
387 \fIhostname diskname\fR
388 ] must be unique.
389 .PP
390 Lines starting with # are ignored, as are blank lines. The fields have the following meanings:
391 .PP
392 \fIhostname\fR
393 .RS 4
394 The name of the host to be backed up. If
395 \fBdiskdevice\fR
396 refers to a PC share, this is the host
397 \fIAmanda\fR
398 will run the Samba
399 \fBsmbclient\fR
400 program on to back up the share.
401 .RE
402 .PP
403 \fIdiskname\fR
404 .RS 4
405 The name of the disk (a label). In most case, you set your
406 \fBdiskname\fR
407 to the
408 \fBdiskdevice\fR
409 and you don't set the
410 \fBdiskdevice.\fR
411 If you want multiple entries with the same
412 \fBdiskdevice\fR, you must set a different
413 \fBdiskname\fR
414 for each entry. It's the
415 \fBdiskname\fR
416 that you use on the commandline for any
417 \fIAmanda\fR
418 command. Look at the example/disklist file for example.
419 .RE
420 .PP
421 \fIdiskdevice\fR
422 .RS 4
423 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
424 \fI/dev/\fR
425 prefix, e.g.
426 \fIsd0a\fR, or a mount point such as
427 \fI/usr\fR.
428 .sp
429 It may also refer to a PC share by starting the name with two (forward) slashes, e.g.
430 \fI//some\-pc/home\fR. In this case, the
431 \fBprogram\fR
432 option in the associated
433 \fBdumptype\fR
434 must be entered as
435 \fBGNUTAR\fR. It is the combination of the double slash disk name and
436 \fBprogram GNUTAR\fR
437 in the
438 \fBdumptype\fR
439 that triggers the use of Samba.
440 .RE
441 .PP
442 \fIdumptype\fR
443 .RS 4
444 Refers to a
445 \fBdumptype\fR
446 defined in the
447 \fBamanda.conf\fR
448 file.
449 \fIDumptype\fRs specify backup related parameters, such as whether to compress the backups, whether to record backup results in
450 \fI/etc/dumpdates\fR, the disk's relative priority, etc.
451 .RE
452 .PP
453 \fIspindle\fR
454 .RS 4
455 Default:
456 \fB\-1\fR. A number used to balance backup load on a host.
457 \fIAmanda\fR
458 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.
459 .RE
460 .PP
461 \fIinterface\fR
462 .RS 4
463 Default:
464 \fIlocal\fR. The name of a network interface definition in the
465 \fBamanda.conf\fR
466 file, used to balance network load.
467 .RE
468 .PP
469 Instead of naming a
470 \fBdumptype\fR, it is possible to define one in\-line, enclosing
471 \fBdumptype\fR
472 options within curly braces, one per line, just like a
473 \fBdumptype\fR
474 definition in
475 \fBamanda.conf\fR. Since pre\-existing
476 \fBdumptype\fRs are valid option names, this syntax may be used to customize
477 \fBdumptype\fRs for particular disks.
478 .PP
479 A line break
480 \fBmust\fR
481 follow the left curly bracket.
482 .PP
483 For instance, if a
484 \fBdumptype\fR
485 named
486 \fInormal\fR
487 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:
488 .sp
489 .RS 4
490 .nf
491 \fIhostname diskname\fR [ \fIdiskdevice\fR ] {
492   normal
493   holdingdisk never
494 } [ \fIspindle\fR [ \fIinterface\fR ] ]
495 .fi
496 .RE
497 .SH "TAPE MANAGEMENT"
498 .PP
499 The
500 \fItapelist\fR
501 file contains the list of tapes in active use. This file is maintained entirely by
502 \fIAmanda\fR
503 and should not be created or edited during normal operation. It contains lines of the form:
504 .PP
505 .RS 4
506 .nf
507 YYYYMMDD label flags
508 .fi
509 .RE
510 .PP
511 Where
512 \fIYYYYMMDD\fR
513 is the date the tape was written,
514 \fIlabel\fR
515 is a label for the tape as written by
516 \fBamlabel\fR
517 and
518 \fIflags\fR
519 tell
520 \fIAmanda\fR
521 whether the tape may be reused, etc (see the
522 \fBreuse\fR
523 options of
524 \fBamadmin\fR).
525 .PP
526 \fBAmdump\fR
527 and
528 \fBamflush\fR
529 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
530 \fBtapecycle\fR
531 option) than there are runs in the backup cycle (see the
532 \fBdumpcycle\fR
533 option) to prevent overwriting a backup image that would be needed to do a full recovery.
534 .SH "OUTPUT DRIVERS"
535 .PP
536 The normal value for the
537 \fBtapedev\fR
538 parameter, or for what a tape changer returns, is a full path name to a non\-rewinding tape device, such as
539 \fI/dev/nst0\fR
540 or
541 \fI/dev/rmt/0mn\fR
542 or
543 \fI/dev/nst0.1\fR
544 or whatever conventions the operating system uses.
545 \fIAmanda\fR
546 provides additional application level drivers that support non\-traditional tape\-simulations or features. To access a specific output driver, set
547 \fBtapedev\fR
548 (or configure your changer to return) a string of the form
549 \fIdriver\fR:\fIdriver\-info\fR
550 where
551 \fIdriver\fR
552 is one of the supported drivers and
553 \fIdriver\-info\fR
554 is optional additional information needed by the driver.
555 .PP
556 The supported drivers are:
557 .PP
558 \fItape\fR
559 .RS 4
560 This is the default driver. The
561 \fIdriver\-info\fR
562 is the tape device name. Entering
563 .sp
564 .RS 4
565 .nf
566 tapedev /dev/rmt/0mn
567 .fi
568 .RE
569 .sp
570 is really a short hand for
571 .sp
572 .RS 4
573 .nf
574 tapedev tape:/dev/rmt/0mn
575 .fi
576 .RE
577 .RE
578 .PP
579 \fInull\fR
580 .RS 4
581 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
582 \fIAmanda\fR
583 checks for and allows through regardless of what you have set in
584 \fBlabelstr\fR. The
585 \fIdriver\-info\fR
586 field is not used and may be left blank:
587 .sp
588 .sp
589 .RS 4
590 .nf
591 tapedev null:
592 .fi
593 .RE
594 .sp
595 The
596 \fIlength\fR
597 value from the associated
598 \fBtapetype\fR
599 is used to limit the amount of data written. When the limit is reached, the driver will simulate end of tape.
600 .sp
601 .it 1 an-trap
602 .nr an-no-space-flag 1
603 .nr an-break-flag 1
604 .br
605 \fBNote\fR
606 This driver should only be used for debugging and testing, and probably only with the
607 \fBrecord\fR
608 option set to
609 \fIno\fR.
610 .RE
611 .PP
612 \fIrait\fR
613 .RS 4
614 \fIR\fRedundant
615 \fIA\fRrray of
616 \fII\fRnexpensive (?)
617 \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.
618 .sp
619 The
620 \fIdriver\-info\fR
621 field describes the devices to use. Curly braces indicate multiple replacements in the string. For instance:
622 .sp
623 .sp
624 .RS 4
625 .nf
626 tapedev rait:/dev/rmt/tps0d{4,5,6}n
627 .fi
628 .RE
629 .sp
630 would use the following devices:
631 .sp
632 \fI/dev/rmt/tps0d4n\fR
633 \fI/dev/rmt/tps0d5n\fR
634 \fI/dev/rmt/tps0d6n\fR
635 .RE
636 .PP
637 \fIfile\fR
638 .RS 4
639 This driver emulates a tape device with a set of files in a directory. The
640 \fIdriver\-info\fR
641 field must be the name of an existing directory. The driver will test for a subdirectory of that named
642 \fIdata\fR
643 and return
644 \fBoffline\fR
645 until it is present. When present, the driver uses two files in the
646 \fIdata\fR
647 subdirectory for each tape file. One contains the actual data. The other contains record length information.
648 .sp
649 The driver uses a file named
650 \fIstatus\fR
651 in the
652 \fBfile\fR
653 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.
654 .sp
655 The
656 \fIlength\fR
657 value from the associated
658 \fBtapetype\fR
659 is used to limit the amount of data written. When the limit is reached, the driver will simulate end of tape.
660 .sp
661 One way to use this driver with a real device such as a CD\-writer is to create a directory for the
662 \fBfile\fR
663 device and one or more other directories for the actual data. Create a symlink named
664 \fIdata\fR
665 in the
666 \fBfile\fR
667 directory to one of the data directories. Set the
668 \fBtapetype\fR
669 length to whatever the medium will hold.
670 .sp
671 When
672 \fIAmanda\fR
673 fills the
674 \fBfile\fR
675 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.
676 .sp
677 To read the CD, mount it and create the
678 \fIdata\fR
679 symlink in the
680 \fBfile\fR
681 device directory.
682 .RE
683 .SH "AUTHORIZATION"
684 .PP
685 \fIAmanda\fR
686 processes on the tape server host run as the
687 \fBdumpuser\fR
688 user listed in
689 \fBamanda.conf\fR. When they connect to a backup client, they do so with an
690 \fIAmanda\fR\-specific protocol. They do not, for instance, use
691 \fBrsh\fR
692 or
693 \fBssh\fR
694 directly.
695 .PP
696 On the client side, the
697 \fBamandad\fR
698 daemon validates the connection using one of several methods, depending on how it was compiled and on options it is passed:
699 .PP
700 \&.rhosts
701 .RS 4
702 Even though
703 \fIAmanda\fR
704 does not use
705 \fBrsh\fR, it can use
706 \fB.rhosts\fR\-style authentication and a
707 \fB.rhosts\fR
708 file.
709 .RE
710 .PP
711 \&.amandahosts
712 .RS 4
713 This is essentially the same as
714 \fB.rhosts\fR
715 authentication except a different file, with almost the same format, is used. This is the default mechanism built into
716 \fIAmanda\fR.
717 .sp
718 The format of the
719 \fI.amandahosts\fR
720 file is:
721 .sp
722 \fIhostname\fR
723 [
724 \fIusername\fR
725 [
726 \fIservice\fR
727 ]*]
728 .sp
729 If
730 \fIusername\fR
731 is ommitted, it defaults to the user running
732 \fBamandad\fR, i.e. the user listed in the
733 \fBinetd\fR
734 or
735 \fBxinetd\fR
736 configuration file.
737 .sp
738 The
739 \fIservice\fR
740 is a list of the service the client is authorized to execute:
741 \fBamdump\fR,
742 \fBnoop\fR,
743 \fBselfcheck\fR,
744 \fBsendsize\fR,
745 \fBsendbackup\fR,
746 \fBamindexd\fR,
747 \fBamidxtaped\fR.
748 \fBamdump\fR
749 is a shortcut for "noop selfcheck sendsize sendbackup"
750 .RE
751 .PP
752 Kerberos
753 .RS 4
754 \fIAmanda\fR
755 may use the Kerberos authentication system. Further information is in the
756 \fBdocs/KERBEROS\fR
757 file that comes with an
758 \fIAmanda\fR
759 distribution.
760 .sp
761 For Samba access,
762 \fIAmanda\fR
763 needs a file on the Samba server (which may or may not also be the tape server) named
764 \fI/etc/amandapass\fR
765 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
766 \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:
767 .sp
768 .RS 4
769 .nf
770   //some\-pc/home normalpw
771   //another\-pc/disk otheruser%otherpw
772 .fi
773 .RE
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 .sp
834 .PP
835 Some examples:
836 .TS
837 tab(:);
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 l l l.
857 T{
858 EXPRESSION
859 T}:T{
860 WILL MATCH
861 T}:T{
862 WILL NOT MATCH
863 T}
864 T{
865
866 T}:T{
867 ho.aina.org
868 T}:T{
869
870 T}
871 T{
872 ^hosta
873 T}:T{
874 hosta
875 T}:T{
876 foo.hosta.org
877 T}
878 T{
879 sda*
880 T}:T{
881 /dev/sda1
882 T}:T{
883
884 T}
885 T{
886
887 T}:T{
888 /dev/sda12
889 T}:T{
890
891 T}
892 T{
893 /opt
894 T}:T{
895 opt (disk)
896 T}:T{
897 opt (host)
898 T}
899 T{
900 \&.opt.
901 T}:T{
902 opt (host)
903 T}:T{
904 opt (disk)
905 T}
906 T{
907 /
908 T}:T{
909 /
910 T}:T{
911 any other disk
912 T}
913 T{
914 /usr
915 T}:T{
916 /usr
917 T}:T{
918
919 T}
920 T{
921
922 T}:T{
923 /usr/opt
924 T}:T{
925
926 T}
927 T{
928 /usr$
929 T}:T{
930 /usr
931 T}:T{
932 /usr/opt
933 T}
934 T{
935 hosta
936 T}:T{
937 hosta
938 T}:T{
939 hostb
940 T}
941 T{
942
943 T}:T{
944 hoSTA.dOMAIna.ORG
945 T}:T{
946
947 T}
948 T{
949
950 T}:T{
951 foo.hosta.org
952 T}:T{
953
954 T}
955 T{
956 host
957 T}:T{
958 host
959 T}:T{
960 hosta
961 T}
962 T{
963 host?
964 T}:T{
965 hosta
966 T}:T{
967 host
968 T}
969 T{
970
971 T}:T{
972 hostb
973 T}:T{
974
975 T}
976 T{
977 ho*na
978 T}:T{
979 hoina
980 T}:T{
981 ho.aina.org
982 T}
983 T{
984 ho**na
985 T}:T{
986 hoina
987 T}:T{
988
989 T}
990 .TE
991 .sp
992 .SH "DATESTAMP EXPRESSION"
993 .PP
994 A
995 \fIdatestamp\fR
996 expression is a range expression where we only match the prefix. Leading ^ is removed. Trailing $ forces an exact match.
997 .TS
998 allbox tab(:);
999 l l
1000 l l
1001 l l
1002 l l
1003 l l
1004 l l
1005 l l.
1006 T{
1007 20001212\-14
1008 T}:T{
1009 match all dates beginning with 20001212, 20001213 or 20001214
1010 T}
1011 T{
1012 20001212\-4
1013 T}:T{
1014 same as previous
1015 T}
1016 T{
1017 20001212\-24
1018 T}:T{
1019 match all dates between 20001212 and 20001224
1020 T}
1021 T{
1022 2000121
1023 T}:T{
1024 match all dates that start with 2000121 (20001210\-20001219)
1025 T}
1026 T{
1027 2
1028 T}:T{
1029 match all dates that start with 2 (20000101\-29991231)
1030 T}
1031 T{
1032 2000\-10
1033 T}:T{
1034 match all dates between 20000101\-20101231
1035 T}
1036 T{
1037 200010$
1038 T}:T{
1039 match only 200010
1040 T}
1041 .TE
1042 .sp
1043 .PP
1044 .SH "CONFIGURATION OVERWRITE"
1045 .PP
1046 Most command allow to overwrite any configuration parameter on the command line with the \-o option.
1047 .PP
1048 \-o NAME=value
1049 .PP
1050 eg. \-o runtapes=2
1051 .PP
1052 eg. \-o DUMPTYPE:no\-compress:compress="server fast"
1053 .PP
1054 eg. \-o TAPETYPE:HP\-DAT:length=2000m
1055 .PP
1056 eg. \-o INTERFACE:local:use="2000 kbps"
1057 .SH "AUTHOR"
1058 .PP
1059 James da Silva,
1060 <jds@amanda.org>
1061 : Original text
1062 .PP
1063 Stefan G. Weichinger,
1064 <sgw@amanda.org>, maintainer of the
1065 \fIAmanda\fR\-documentation: XML\-conversion, major update
1066 .SH "SEE ALSO"
1067 .PP
1068
1069 \fBamadmin\fR(8),
1070 \fBamanda.conf\fR(5),
1071 \fBamanda\-client.conf\fR(5),
1072 \fBamcheck\fR(8),
1073 \fBamcheckdb\fR(8),
1074 \fBamcleanup\fR(8),
1075 \fBamdd\fR(8),
1076 \fBamdump\fR(8),
1077 \fBamfetchdump\fR(8)
1078 \fBamflush\fR(8),
1079 \fBamgetconf\fR(8),
1080 \fBamlabel\fR(8),
1081 \fBammt\fR(8),
1082 \fBamoverview\fR(8),
1083 \fBamplot\fR(8),
1084 \fBamrecover\fR(8),
1085 \fBamreport\fR(8),
1086 \fBamrestore\fR(8),
1087 \fBamrmtape\fR(8),
1088 \fBamstatus\fR(8),
1089 \fBamtape\fR(8),
1090 \fBamtapetype\fR(8),
1091 \fBamtoc\fR(8),
1092 \fBamverify\fR(8),
1093 \fBamverifyrun\fR(8)