Imported Upstream version 2.4.4p3
[debian/amanda] / man / amanda.8.in
1 .\"
2 .de EX
3 .if t .ft C
4 .nf
5 ..
6 .de EE
7 .fi
8 .if t .ft
9 ..
10 .de P1
11 \fB\\$1\fP \\$2 \fI\\$3\fP \\$4 \fI\\$5\fP \\$6 "\fI\\$7\fP" \\$8
12 ..
13 .TH AMANDA 8
14 .SH NAME
15 amanda \- Advanced Maryland Automatic Network Disk Archiver
16 .SH SYNOPSIS
17 .B amdump
18 .I config
19 .br
20 .B amflush
21 [
22 .B \-f
23 ]
24 .I config
25 .br
26 .B amcleanup
27 .I config
28 .br
29 .B amrecover
30 [
31 .I config
32 ] [
33 .I options
34 ]
35 .br
36 .B amrestore
37 [
38 .I options
39 ]
40 .I tapedevice
41 [
42 .I hostname
43 [
44 .I diskname
45 ]]
46 .br
47 .B amlabel
48 .I config label
49 [
50 .B slot
51 .I slot
52 ]
53 .br
54 .B amcheck
55 [
56 .I options
57 ]
58 .I config
59 .br
60 .B amadmin
61 .I config
62 .I command
63 [
64 .I options
65 ]
66 .br
67 .B amtape
68 .I config
69 .I command
70 [
71 .I options
72 ]
73 .br
74 .B amverify
75 .I config
76 .br
77 .B amrmtape
78 [
79 .I options
80 ]
81 .I config label
82 .br
83 .B amstatus
84 .I config
85 [
86 .I options
87 ]
88 .br
89 .B amoverview
90 .I config
91 [
92 .I options
93 ]
94 .br
95 .B amplot
96 [
97 .I options
98 ]
99 .I amdump-files
100 .br
101 .B amreport
102 [
103 .I config
104 ]
105 [
106 .I options
107 ]
108 .br
109 .B amtoc
110 [
111 .I options
112 ]
113 .I logfile
114 .br
115 .B amcheckdb
116 .I config
117 .br
118 .B amgetconf
119 [
120 .I config
121 ]
122 .I parameter
123 .br
124 .SH DESCRIPTION
125 Amanda is the "Advanced Maryland Automatic Network Disk Archiver".
126 This manual page gives an overview of the Amanda commands and
127 configuration files for quick reference.
128 .LP
129 Here are all the Amanda commands.
130 Each one has its own manual page.
131 See them for all the gory details.
132 .TP
133 .B amdump
134 Take care of automatic Amanda backups.
135 This is normally executed by
136 .B cron
137 on a computer called the
138 .I tape server host
139 and requests backups of file systems located on
140 .I backup
141 .IR clients .
142 .B Amdump
143 backs up all disks in the
144 .I disklist
145 file (discussed below) to tape or, if there is a problem, to a special
146 .I holding
147 .IR disk .
148 After all backups are done,
149 .B amdump
150 sends mail reporting failures and successes.
151 .TP
152 .B amflush
153 Flush backups from the holding disk to tape.
154 .B Amflush
155 is used after
156 .B amdump
157 has reported it could not write backups to tape for some reason.
158 When this happens, backups stay in the holding disk.
159 Run
160 .B amflush
161 after the tape problem is corrected
162 to write backups from the holding disk to tape.
163 .TP
164 .B amcleanup
165 Clean up after an interrupted
166 .BR amdump .
167 This command is only needed if
168 .B amdump
169 was unable to complete for some reason, usually because the
170 tape server host crashed while
171 .B amdump
172 was running.
173 .TP
174 .B amrecover
175 Provides an interactive interface to browse the Amanda index files
176 (backup image catalogues)
177 and select which tapes to recover files from.
178 It can also run
179 .B amrestore
180 and a restore program (e.g.\&
181 .BR tar )
182 to actually recover the files.
183 .TP
184 .B amrestore
185 Read an Amanda tape, searching for requested backups.
186 .B Amrestore
187 is suitable for everything from interactive restores of single files
188 to a full restore of all partitions on a failed disk.
189 .TP
190 .B amlabel
191 Write an Amanda format label onto a tape.
192 All Amanda tapes must be labeled with
193 .BR amlabel .
194 .B Amdump
195 and
196 .B amflush
197 will not write to an unlabeled tape (see TAPE MANAGEMENT below).
198 .TP
199 .B amcheck
200 Verify the correct tape is mounted
201 and all file systems on all backup client systems
202 are ready to be backed up.
203 Often run by
204 .B cron
205 before
206 .B amdump
207 to generate a mail warning that backups might fail
208 unless corrective action is taken.
209 .TP
210 .B amadmin
211 Take care of administrative tasks like finding out which
212 tapes are needed to restore a filesystem,
213 forcing hosts to do full backups of selected disks
214 and looking at schedule balance information.
215 .TP
216 .B amtape
217 Take care of tape changer control operations like loading particular tapes,
218 ejecting tapes
219 and scanning the tape storage slots.
220 .TP
221 .B amverify
222 Check Amanda backup tapes for errors.
223 .TP
224 .B amrmtape
225 Delete a tape from the Amanda databases.
226 .TP
227 .B amstatus
228 Report the status of a running or completed
229 .BR amdump .
230 .TP
231 .B amoverview
232 Display a chart of hosts and file systems backed up every run.
233 .TP
234 .B amplot
235 Generate utilization plots of Amanda runs for performance tuning.
236 .TP
237 .B amreport
238 Generate an Amanda summary E-mail report.
239 .TP
240 .B amtoc
241 Generate table of content files for Amanda tapes.
242 .TP
243 .B amcheckdb
244 Verify every tape Amanda knows about is consistent in the database.
245 .TP
246 .B amgetconf
247 Look up parameters in the Amanda configuration file.
248 .SH CONFIGURATION
249 There are three user\-editable files that control the behavior of Amanda.
250 The first is
251 .B amanda.conf,
252 the main configuration file.
253 It contains parameters to customize Amanda for the site.
254 Second is the
255 .I disklist
256 file, which lists hosts and disk partitions to back up.
257 Third is the
258 .I tapelist
259 file, which lists tapes that are currently active.
260 These files are described in more detail in the following sections.
261 .LP
262 All files are stored in individual configuration
263 directories under @CONFIG_DIR@.
264 A site will often have more than
265 one configuration.
266 For example, it might have a
267 .I normal
268 configuration for everyday backups and an
269 .I archive
270 configuration for infrequent full archival backups.
271 The configuration files would be stored under directories
272 @CONFIG_DIR@/normal/ and
273 @CONFIG_DIR@/archive/, respectively.
274 Part of the job of an Amanda administrator is to create,
275 populate and maintain these directories.
276 .LP
277 All log and database files generated by Amanda go in corresponding
278 directories somewhere.
279 The exact location is controlled by entries in
280 .BR amanda.conf .
281 A typical location would be under /var/adm/amanda.
282 For the above example, the files might go in
283 /var/adm/amanda/normal/ and /var/adm/amanda/archive/.
284 .LP
285 As log files are no longer needed (no longer contain relevant information),
286 Amanda cycles them out in various ways, depending on the type of file.
287 .LP
288 Detailed information about
289 .B amdump
290 runs are stored in files named
291 .BI amdump. NN
292 where
293 .I NN
294 is a sequence number, with 1 being the most recent file.
295 .B Amdump
296 rotates these files each run, keeping roughly the last
297 .B tapecycle
298 (see below)
299 worth of them.
300 .LP
301 The file used by
302 .B amreport
303 to generate the mail summary is named
304 .BI log. YYYYMMDD.NN
305 where
306 .I YYYYMMDD
307 is the datestamp of the start of the
308 .B amdump
309 run and
310 .I NN
311 is a sequence number started at 0.
312 At the end of each
313 .B amdump
314 run,
315 log files for runs whose tapes have been reused are renamed
316 into a subdirectory of the main log directory (see the
317 .B logdir
318 parameter below)
319 named
320 .BR oldlog .
321 It is up to the Amanda administrator to remove them from this
322 directory when desired.
323 .LP
324 Index (backup image catalogue) files older than the full dump
325 matching the oldest backup image for a given client and disk
326 are removed by
327 .B amdump
328 at the end of each run.
329 .SH CONFIG FILE PARAMETERS
330 .de BS
331 \fB\\$1\fP\ \fI"\\$2"\fP
332 ..
333 .de BN
334 \fB\\$1\fP\ \fI\\$2\fP
335 ..
336 There are a number of configuration parameters that control the
337 behavior of the Amanda programs.
338 All have default values,
339 so you need not specify the parameter in
340 .B amanda.conf
341 if the default is suitable.
342 .LP
343 Lines starting with # are ignored, as are blank lines.
344 Comments may be placed on a line with a directive by starting
345 the comment with a #.
346 The remainder of the line is ignored.
347 .LP
348 Keywords are case insensitive, i.e.\&
349 .B mailto
350 and
351 .B MailTo
352 are treated the same.
353 .LP
354 Integer arguments may have one of the following (case insensitive) suffixes,
355 some of which have a multiplier effect:
356 .RS
357 .TP
358 .B "b byte bytes"
359 Some number of bytes.
360 .TP
361 .B "bps"
362 Some number of bytes per second.
363 .TP
364 .B "k kb kbyte kbytes kilobyte kilobytes"
365 Some number of kilobytes (bytes*1024).
366 .TP
367 .B "kps kbps"
368 Some number of kilobytes per second (bytes*1024).
369 .TP
370 .B "m mb meg mbyte mbytes megabyte megabytes"
371 Some number of megabytes (bytes*1024*1024).
372 .TP
373 .B "mps mbps"
374 Some number of megabytes per second (bytes*1024*1024).
375 .TP
376 .B "g gb gbyte gbytes gigabyte gigabytes"
377 Some number of gigabytes (bytes*1024*1024*1024).
378 .TP
379 .B "tape tapes"
380 Some number of tapes.
381 .TP
382 .B "day days"
383 Some number of days.
384 .TP
385 .B "week weeks"
386 Some number of weeks (days*7).
387 .RE
388 .LP
389 The value
390 .B inf
391 may be used in most places where an integer is expected
392 to mean an infinite amount.
393 .LP
394 Boolean arguments may have any of the values
395 .BR y ,
396 .BR yes ,
397 .BR t ,
398 .B true
399 or
400 .B on
401 to indicate a true state, or
402 .BR n ,
403 .BR no ,
404 .BR f ,
405 .BR false
406 or
407 .B off
408 to indicate a false state.
409 If no argument is given,
410 .B true
411 is assumed.
412 .LP
413 .TP
414 .BS org string
415 Default:
416 .IR @DEFAULT_CONFIG@ .
417 A descriptive name for the configuration.
418 This string appears in the Subject line of mail reports.
419 Each Amanda configuration should have a different string to keep
420 mail reports distinct.
421 .TP
422 .BS mailto string
423 Default:
424 .IR operators .
425 A space separated list of recipients for mail reports.
426 .TP
427 .BN dumpcycle int
428 Default:
429 .IR "10 days" .
430 The number of days in the backup cycle.
431 Each disk will get a full backup at least this often.
432 Setting this to zero tries to do a full backup each run.
433 .IP
434 Note that this parameter may also be set in a specific
435 .B dumptype
436 (see below).
437 This value sets the default for all
438 .BR dumptype s
439 so must appear in
440 .B amanda.conf
441 before any
442 .BR dumptype s
443 are defined.
444 .TP
445 .BN runspercycle int
446 Default:
447 .IR "same as dumpcycle" .
448 The number of amdump runs in 
449 .B dumpcycle
450 days.
451 A value of 0 means the same value as 
452 .BR dumpcycle .
453 A value of -1 means guess the number of runs from the
454 .I tapelist
455 file, 
456 which is the number of tapes used in the last 
457 .B dumpcycle
458 days / 
459 .BR runtapes .
460 .TP
461 .BN tapecycle int
462 Default:
463 .IR "15 tapes" .
464 The mininum number of tapes in the active tape cycle.
465 You can have more tapes in your active tape cycle.
466 It means that you must write at least
467 .B tapecycle
468 tape before a tape
469 is overwritten.
470 A tape marked as 
471 .B no-reuse
472 is not in the active tape cycle.
473 .IP
474 Amanda will accept any tape for writting if it is not in the last
475 .B tapecycle
476 tapes used.
477 .IP
478 This must be at least one larger than the
479 number of Amanda runs done during a dump cycle
480 (see the
481 .B dumpcycle
482 parameter)
483 times the number of tapes used per run
484 (see the
485 .B runtapes
486 parameter).
487 .IP
488 For instance, if
489 .B dumpcycle
490 is set to 14 days,
491 one Amanda run is done every day (Sunday through Saturday),
492 and
493 .B runtapes
494 is set to one,
495 then
496 .B tapecycle
497 must be at least 15 (14 days * one run/day * one tape/run + one tape).
498 .IP
499 In practice, there should be several extra tapes
500 to allow for schedule adjustments or disaster recovery.
501 .TP
502 .BS dumpuser string
503 Default:
504 .IR @CLIENT_LOGIN@ .
505 The login name Amanda uses to run the backups.
506 The backup client hosts must allow access
507 from the tape server host as this user via
508 .I .rhosts
509 or
510 .IR .amandahosts ,
511 depending on how the Amanda software was built.
512 .TP
513 .BS printer string
514 Printer to use when doing tape labels.
515 See the
516 .B lbl-templ
517 .B tapetype
518 option.
519 .TP
520 .BS tapedev string
521 Default:
522 .IR @DEFAULT_TAPE_DEVICE@ .
523 The path name of the non-rewinding tape device.
524 Non-rewinding tape device names often have an 'n' in the name,
525 e.g.
526 .IR /dev/rmt/0mn ,
527 however this is operating system specific and you should consult
528 that documentation for detailed naming information.
529 .IP
530 If a tape changer is configured
531 (see the
532 .B tpchanger
533 option), this option might not be used.
534 .IP
535 If the
536 .B null
537 output driver is selected
538 (see the
539 .B OUTPUT DRIVERS
540 section later for more information),
541 programs such as
542 .B amdump
543 will run normally but all images will be thrown away.
544 This should only be used for debugging and testing,
545 and probably only with the
546 .B record
547 option set to
548 .IR no .
549 .TP
550 .BS rawtapedev string
551 Default:
552 .IR @DEFAULT_RAW_TAPE_DEVICE@ .
553 The path name of the raw tape device.
554 This is only used if Amanda is compiled for Linux machines with floppy tapes
555 and is needed for QIC volume table operations.
556 .TP
557 .BS tpchanger string
558 Default:
559 .IR none .
560 The name of the tape changer.
561 If a tape changer is not configured, this option is not used
562 and should be commented out of the configuration file.
563 .IP
564 If a tape changer is configured, choose one of the changer scripts
565 (e.g.\&
566 .BR chg-scsi )
567 and enter that here.
568 .TP
569 .BS changerdev string
570 Default:
571 .IR @DEFAULT_CHANGER_DEVICE@ .
572 A tape changer configuration parameter.
573 Usage depends on the particular changer defined with the
574 .B tpchanger
575 option.
576 .TP
577 .BS changerfile string
578 Default:
579 .IR /usr/adm/amanda/log/changer\-status .
580 A tape changer configuration parameter.
581 Usage depends on the particular changer defined with the
582 .B tpchanger
583 option.
584 .TP
585 .BN runtapes int
586 Default:
587 .IR 1 .
588 The maximum number of tapes used in a single run.
589 If a tape changer is not configured, this option is not used
590 and should be commented out of the configuration file.
591 .IP
592 If a tape changer is configured, this may be set larger than one to
593 let Amanda write to more than one tape.
594 .IP
595 Note that this is an upper bound on the number of tapes,
596 and Amanda may use less.
597 .IP
598 Also note that as of this release, Amanda does not support true tape overflow.
599 When it reaches the end of one tape,
600 the backup image Amanda was processing starts over again on the next tape.
601 .TP
602 .BN maxdumpsize int
603 Default:
604 .IR runtapes * tape_length .
605 Maximum number of bytes the planner will schedule for a run.
606 .TP
607 .BN taperalgo [first|firstfit|largest|largestfit|smallest|last]
608 Default:
609 .IR first .
610 The algorithm use to choose which dump image to send to the taper.
611 .RS
612 .TP
613 .B first
614 First in first out.
615 .TP
616 .B firstfit
617 The first dump image that will fit on the current tape.
618 .TP
619 .B largest
620 The largest dump image.
621 .TP
622 .B largestfit
623 The largest dump image that will fit on the current tape.
624 .TP
625 .B smallest
626 The smallest dump image.
627 .TP
628 .B last
629 Last in first out.
630 .RE
631 .LP
632 .BS labelstr string
633 Default:
634 .IR .* .
635 The tape label constraint regular expression.
636 All tape labels
637 generated (see
638 .BR amlabel(8) )
639 and used by this configuration must match the regular expression.
640 If multiple configurations are run from the same tape server host,
641 it is helpful to set their labels to different strings
642 (for example, "DAILY[0\-9][0\-9]*" vs.\& "ARCHIVE[0\-9][0\-9]*")
643 to avoid overwriting each other's tapes.
644 .TP
645 .BS tapetype string
646 Default:
647 .IR EXABYTE .
648 The type of tape drive associated with
649 .B tapedev
650 or
651 .BR tpchanger .
652 This refers to one of the defined
653 .BR tapetype s
654 in the config file (see below),
655 which specify various tape parameters,
656 like the
657 .BR length ,
658 .B filemark
659 size, and
660 .B speed
661 of the tape media and device.
662 .TP
663 .BN ctimeout int
664 Default:
665 .IR "30 seconds" .
666 Maximum amount of time that
667 .B amcheck 
668 will wait for each client host.
669 .TP
670 .BN dtimeout int
671 Default:
672 .IR "1800 seconds" .
673 Amount of idle time per disk on a given client that a
674 .B dumper
675 running from within
676 .B amdump
677 will wait before it fails with a data timeout error.
678 .TP
679 .BN etimeout int
680 Default:
681 .IR "300 seconds" .
682 Amount of time per disk on a given client that the
683 .B planner
684 step of
685 .B amdump
686 will wait to get the dump size estimates.
687 For instance, with the default of 300 seconds and four disks on client A, 
688 .B planner
689 will wait up to 20 minutes for that machine.
690 A negative value will be interpreted as a total amount of time to wait
691 per client instead of per disk.
692 .TP
693 .BN netusage int
694 Default:
695 .IR "300 Kbps" .
696 The maximum network bandwidth allocated to Amanda, in Kbytes per second.
697 See also the
698 .B interface
699 section.
700 .TP
701 .BN inparallel int
702 Default:
703 .IR 10 .
704 The maximum number of backups that Amanda will attempt to run in parallel.
705 Amanda will stay within the constraints of network bandwidth and
706 holding disk space available, so it doesn't hurt to set
707 this number a bit high.
708 Some contention can occur with larger numbers
709 of backups, but this effect is relatively small on most systems.
710 .TP
711 .BS dumporder string
712 Default:
713 .IR "tttTTTTTTT" .
714 The priority order of each dumper:
715 .RS
716 .RS
717 .nf
718 s: smallest size
719 S: largest size
720 t: smallest time
721 T: largest time
722 b: smallest bandwidth
723 B: largest bandwidth
724 .fi
725 .RE
726 .RE
727 .TP
728 .BN maxdumps int
729 Default:
730 .IR 1 .
731 The maximum number of backups from a single host that Amanda will
732 attempt to run in parallel.
733 See also the
734 .B inparallel
735 option.
736 .IP
737 Note that this parameter may also be set in a specific
738 .B dumptype
739 (see below).
740 This value sets the default for all
741 .BR dumptype s
742 so must appear in
743 .B amanda.conf
744 before any
745 .BR dumptype s
746 are defined.
747 .TP
748 .BN bumpsize int
749 Default:
750 .IR "10 Mbytes" .
751 The minimum savings required to trigger an automatic
752 bump from one incremental level to the next.
753 If Amanda determines that the next higher backup level
754 will be this much smaller than the current level,
755 it will do the next level.
756 See also the
757 .B bumpmult
758 option.
759 .TP
760 .BN bumpmult float
761 Default:
762 .IR 1.5 .
763 The bump size multiplier.
764 Amanda multiplies
765 .B bumpsize
766 by this factor for each level.
767 This prevents active filesystems from
768 bumping too much by making it harder to bump to the next level.
769 For example, with the default
770 .B bumpsize
771 and
772 .BR bumpmult
773 set to 2.0, the bump threshold will be 10 Mbytes for level one, 20
774 Mbytes for level two, 40 Mbytes for level three, and so on.
775 .TP
776 .BN bumpdays int
777 Default:
778 .IR "2 days" .
779 To insure redundancy in the dumps, Amanda keeps filesystems at the
780 same incremental level for at least
781 .B bumpdays
782 days, even if the other bump threshold criteria are met.
783 .TP
784 .BS diskfile string
785 Default:
786 .IR disklist .
787 The file name for the
788 .I disklist
789 file holding client hosts, disks and other client dumping information.
790 .TP
791 .BS infofile string
792 Default:
793 .IR /usr/adm/amanda/curinfo .
794 The file or directory name for the historical information database.
795 If Amanda was configured to use DBM databases, this is the base file
796 name for them.
797 If it was configured to use text formated databases (the default),
798 this is the base directory and within here will be a directory per
799 client, then a directory per disk, then a text file of data.
800 .TP
801 .BS logdir string
802 Default:
803 .IR /usr/adm/amanda .
804 The directory for the
805 .B amdump
806 and
807 .B log
808 files.
809 .TP
810 .BS indexdir string
811 Default
812 .IR /usr/adm/amanda/index .
813 The directory where index files (backup image catalogues) are stored.
814 Index files are
815 only generated for filesystems whose
816 .B dumptype
817 has the
818 .B index
819 option enabled.
820 .TP
821 .BS tapelist string
822 Default:
823 .IR tapelist .
824 The file name for the active
825 .I tapelist
826 file.
827 Amanda maintains this file with information about the active set of tapes.
828 .TP
829 .BN tapebufs int
830 Default:
831 .IR 20 .
832 The number of buffers used by the
833 .B taper
834 process run by
835 .B amdump
836 and
837 .B amflush
838 to hold data as it
839 is read from the network or disk before it is written to tape.
840 Each buffer is a little larger than 32 KBytes and is held in
841 a shared memory region.
842 .TP
843 .BN reserve number
844 Default:
845 .IR 100 (percent).
846 The amount of holding-disk space that should not be used for full
847 backups if no tape is available.
848 By default, when there is no tape to write to,
849 degraded mode (incremental) backups will be performed to the holding disk.
850 If full backups should also be allowed in this case,
851 the amount of holding disk space reserved for incrementals should be lowered.
852 .TP
853 .BN autoflush bool
854 Default:
855 .IR off .
856 Whether an amdump run will flush the dump already on holding disk to tape.
857 .TP
858 .BN amrecover_do_fsf bool
859 Default:
860 .IR off .
861 Amrecover will call amrestore with the -f flag for faster positioning of the tape.
862 .TP
863 .BN amrecover_check_label bool
864 Default:
865 .IR off .
866 Amrecover will call amrestore with the -l flag to check the label.
867 .TP
868 .BS amrecover_changer string
869 Default: ''.
870 Amrecover will use the changer if you use 'settape <STRING>' and that string
871 is the same as the amrecover_changer setting.
872 .TP
873 .BS columnspec string
874 Defines the width of columns
875 .B amreport
876 should use.
877 .I String
878 is a comma (',') separated list of triples.
879 Each triple consists
880 of three parts which are separated by a equal sign ('=') and a colon
881 (':') (see the example).
882 These three parts specify:
883 .RS
884 .IP + 2
885 the name of the column, which may be:
886 .LP
887 .RS
888 .nf
889 Compress (compression ratio)
890 Disk (client disk name)
891 DumpRate (dump rate in KBytes/sec)
892 DumpTime (total dump time in hours:minutes)
893 HostName (client host name)
894 Level (dump level)
895 OrigKB (original image size in KBytes)
896 OutKB (output image size in KBytes)
897 TapeRate (tape writing rate in KBytes/sec)
898 TapeTime (total tape time in hours:minutes)
899 .fi
900 .RE
901 .IP + 2
902 the amount of space to display before the column (used to get whitespace
903 between columns).
904 .IP + 2
905 the width of the column itself.
906 If set to a negative value,
907 the width will be calculated on demand to fit the largest entry in
908 this column.
909 .RE
910 .LP
911 .RS
912 Here is an example:
913 .LP
914 .EX
915      columnspec "Disk=1:18,HostName=0:10,OutKB=1:7"
916 .EE
917 .LP
918 The above will display the disk information in 18 characters
919 and put one space before it.
920 The hostname column will be 10 characters wide with
921 no space to the left.
922 The output KBytes column is seven characters wide
923 with one space before it.
924 .RE
925 .TP
926 .BS includefile string
927 Default:
928 .IR none .
929 The name of an amanda configuration file to include within
930 the current file.
931 Useful for sharing dumptypes, tapetypes and
932 interface definitions among several configurations.
933 .SH "HOLDINGDISK SECTION"
934 The
935 .B amanda.conf
936 file may define one or more holding disks used as buffers to hold
937 backup images before they are written to tape.
938 The syntax is:
939 .LP
940 .RS
941 .EX
942 holdingdisk \fIname\fP {
943     \fIholdingdisk\-option\fP \fIholdingdisk\-value\fP
944     \fI...\fP
945 }
946 .EE
947 .RE
948 .LP
949 .I Name
950 is a logical name for this holding disk.
951 .LP
952 The options and values are:
953 .LP
954 .TP
955 .BS comment string
956 Default:
957 .IR none .
958 A comment string describing this holding disk.
959 .TP
960 .BS directory disk
961 Default:
962 .IR /dumps/amanda .
963 The path to this holding area.
964 .TP
965 .BN use int
966 Default:
967 .IR "0 Gb" .
968 Amount of space that can be used in this holding disk area.
969 If the value is zero, all available space on the file system is used.
970 If the value is negative,
971 Amanda will use all available space minus that value.
972 .TP
973 .BN chunksize int
974 Default:
975 .IR "1 Gb" .
976 Holding disk chunk size.
977 Dumps larger than the specified size will be stored in multiple
978 holding disk files.
979 The size of each chunk will not exceed the
980 specified value.
981 However, even though dump images are split in the
982 holding disk, they are concatenated as they are written to tape, so
983 each dump image still corresponds to a single continuous tape section.
984 .IP
985 If 0 is specified, Amanda will create holding disk chunks as large as
986 ((INT_MAX/1024)-64) Kbytes.
987 .IP
988 Each holding disk chunk includes a 32 Kbyte header, so the minimum
989 chunk size is 64 Kbytes (but that would be really silly).
990 .IP
991 Operating systems that are limited to a maximum file size of 2 Gbytes
992 actually cannot handle files that large.
993 They must be at least one byte less than 2 Gbytes.
994 Since Amanda works with 32 Kbyte blocks, and
995 to handle the final read at the end of the chunk, the chunk size
996 should be at least 64 Kbytes (2 * 32 Kbytes) smaller than the maximum
997 file size, e.g.\& 2047 Mbytes.
998 .SH "DUMPTYPE SECTION"
999 The
1000 .B amanda.conf
1001 file may define multiple sets of backup options and
1002 refer to them by name from the
1003 .B disklist
1004 file.
1005 For instance, one set of options might be defined for file systems
1006 that can benefit from high compression,
1007 another set that does not compress well,
1008 another set for file systems that should always get a full backup
1009 and so on.
1010 .LP
1011 A set of backup options are entered in a
1012 .B dumptype
1013 section, which looks like this:
1014 .LP
1015 .RS
1016 .EX
1017 define dumptype \fIname\fP {
1018     \fIdumptype\-option\fP \fIdumptype\-value\fP
1019     \fI...\fP
1020 }
1021 .EE
1022 .RE
1023 .LP
1024 .I Name
1025 is the name of this set of backup options.
1026 It is referenced from the
1027 .I disklist
1028 file.
1029 .LP
1030 Some of the options in a
1031 .B dumptype
1032 section are the same as those in the main part of
1033 .BR amanda.conf .
1034 The main option value is used to set the default for all
1035 .B dumptype
1036 sections.
1037 For instance, setting
1038 .B dumpcycle
1039 to 50 in the main part of the config file causes all following
1040 .B dumptype
1041 sections to start with that value,
1042 but the value may be changed on a section by section basis.
1043 Changes to variables in the main part of the config file must be
1044 done before (earlier in the file) any
1045 .BR dumptype s
1046 are defined.
1047 .LP
1048 The dumptype options and values are:
1049 .LP
1050 .TP
1051 .BS auth string
1052 Default:
1053 .IR bsd .
1054 Type of authorization to perform between tape server and backup client hosts.
1055 May be
1056 .B krb4
1057 to use Kerberos\-IV authorization.
1058 .TP
1059 .BS comment string
1060 Default:
1061 .IR none .
1062 A comment string describing this set of backup options.
1063 .TP
1064 \fBcomprate\fP \fIfloat\fP [, \fIfloat\fP ]
1065 Default:
1066 .IR 0.50 ,
1067 .IR 0.50 .
1068 The expected full and incremental compression factor for dumps.
1069 It is only used if Amanda does not have any history information on
1070 compression rates for a filesystem, so should not usually need to
1071 be set.
1072 However, it may be useful for the first time a
1073 very large filesystem that compresses very little is backed up.
1074 .TP
1075 .BS "compress [client|server]" string
1076 Default:
1077 .IR "client fast" .
1078 If Amanda does compression of the backup images,
1079 it can do so either on the backup client host before it crosses the network
1080 or on the tape server host as it goes from the
1081 network into the holding disk or to tape.
1082 Which place to do compression (if at all) depends on how well the
1083 dump image usually compresses, the speed and load on the client or
1084 server, network capacity, holding disk capacity,
1085 availability of tape hardware compression, etc.
1086 .IP
1087 For either type of compression, Amanda also allows the selection
1088 of two styles of compression.
1089 .B Best
1090 is the best compression available, often at the expense of CPU overhead.
1091 .B Fast
1092 is often not as good a compression as
1093 .BR best ,
1094 but usually less CPU overhead.
1095 .IP
1096 So the
1097 .B compress
1098 options line may be one of:
1099 .LP
1100 .RS
1101 .RS
1102 .nf
1103 compress none
1104 compress [client] fast
1105 compress [client] best
1106 compress server fast
1107 compress server best
1108 .fi
1109 .RE
1110 .RE
1111 .IP
1112 Note that some tape devices do compression and this option has nothing
1113 to do with whether that is used.
1114 If hardware compression is used (usually via a particular tape device name
1115 or
1116 .B mt
1117 option),
1118 Amanda (software) compression should be disabled.
1119 .TP
1120 .BN dumpcycle int
1121 Default:
1122 .IR "10 days" .
1123 The number of days in the backup cycle.
1124 Each disk using this set of options
1125 will get a full backup at least this often.
1126 Setting this to zero tries to do a full backup each run.
1127 .TP
1128 .P1 exclude [ list|file ][[optional][ append ][ "string" ]+]
1129 Default:
1130 .IR file .
1131 There is two exclude list
1132 .B exclude file
1133 and
1134 .B exclude list.
1135 With
1136 .B exclude file
1137 , the
1138 .I string
1139 is a gnutar exclude expression. With
1140 .B exclude list
1141 , the
1142 .I string
1143 is a file name on the client containing gnutar exclude expression.
1144 .IP
1145 All exclude expression are concatenated in one file and passed to gnutar as a
1146 .B \-\-exclude\-from
1147 argument.
1148 .IP
1149 With the
1150 .B append
1151 keyword, the
1152 .I string
1153 are appended to the current value of the list, without it, the
1154 .I string
1155 overwrite the list.
1156 .IP
1157 If
1158 .B optional
1159 is specified for
1160 .B exclude list,
1161 then amcheck will not complain if the file doesn't exist or is not readable.
1162 .IP
1163 For
1164 .B exclude list,
1165 If the file name is relative,
1166 the disk name being backed up is prepended.
1167 So if this is entered:
1168 .LP
1169 .EX
1170     exclude list ".amanda.excludes"
1171 .EE
1172 .IP
1173 the actual file use would be
1174 .I /var/.amanda.excludes
1175 for a backup of
1176 .IR /var ,
1177 .I /usr/local/.amanda.excludes
1178 for a backup of
1179 .IR /usr/local ,
1180 and so on.
1181 .TP
1182 .BS holdingdisk boolean
1183 Default:
1184 .IR yes .
1185 Whether a holding disk should be used for these backups or whether
1186 they should go directly to tape.
1187 If the holding disk is a portion of another file system that Amanda
1188 is backing up, that file system should refer to a dumptype with
1189 .B holdingdisk
1190 set to
1191 .I no
1192 to avoid backing up the holding disk into itself.
1193 .TP
1194 .BS ignore boolean
1195 Default:
1196 .IR no .
1197 Whether disks associated with this backup type should be backed up or not.
1198 This option is useful when the
1199 .I disklist
1200 file is shared among several configurations,
1201 some of which should not back up all the listed file systems.
1202 .TP
1203 .P1 include [ list|file ][[optional][ append ][ "string" ]+]
1204 Default:
1205 .I file
1206 ".".
1207 There is two include list
1208 .B include file
1209 and
1210 .B include list.
1211 With
1212 .B include file
1213 , the
1214 .I string
1215 is a glob expression. With
1216 .B include list
1217 , the
1218 .I string
1219 is a file name on the client containing glob expression.
1220 .IP
1221 All include expression are expanded by amanda and concatenated in one file and passed to gnutar as a
1222 .B \-\-files\-from
1223 argument. They must start with "./" and containing no other "/".
1224 .IP
1225 With the
1226 .B append
1227 keyword, the
1228 .I string
1229 are appended to the current value of the list, without it, the
1230 .I string
1231 overwrite the list.
1232 .IP
1233 If
1234 .B optional
1235 is specified for
1236 .B include list,
1237 then amcheck will not complain if the file doesn't exist or is not readable.
1238 .IP
1239 For
1240 .B include list,
1241 If the file name is relative,
1242 the disk name being backed up is prepended.
1243 .TP
1244 .BS index boolean
1245 Default:
1246 .IR no .
1247 Whether an index (catalogue) of the backup should be generated and
1248 saved in
1249 .BR indexdir .
1250 These catalogues are used by the
1251 .B amrecover
1252 utility.
1253 .TP
1254 .BS kencrypt boolean
1255 Default:
1256 .IR no .
1257 Whether the backup image should be encrypted by Kerberos as it is sent
1258 across the network from the backup client host to the tape server host.
1259 .TP
1260 .BS maxdumps int
1261 Default:
1262 .IR 1 .
1263 The maximum number of backups from a single host that Amanda will
1264 attempt to run in parallel.
1265 See also the main section
1266 .B inparallel
1267 option.
1268 .TP
1269 .BS maxpromoteday int
1270 Default:
1271 .IR 10000 .
1272 The Maximum number of day for a promotion, set it 0 if you don't want
1273 promotion, set it to 1 or 2 if your disk get overpromoted.
1274 .TP
1275 .BS priority string
1276 Default:
1277 .IR medium .
1278 When there is no tape to write to, Amanda will do incremental backups
1279 in priority order to the holding disk.
1280 The priority may be
1281 .BR high (2),
1282 .BR medium (1),
1283 .BR low (0)
1284 or a number of your choice.
1285 .TP
1286 .BS program string
1287 Default:
1288 .IR DUMP .
1289 The type of backup to perform.
1290 Valid values are
1291 .B DUMP
1292 for the native operating system backup program, and
1293 .B GNUTAR
1294 to use GNU tar or to do Samba PC backups.
1295 .TP
1296 .BS record boolean
1297 Default:
1298 .IR yes .
1299 Whether to ask the backup program to update its
1300 database (e.g.\&
1301 .IR /etc/dumpdates
1302 for DUMP or 
1303 .IR @GNUTAR_LISTED_INCREMENTAL_DIRX@
1304 for GNUTAR) of time stamps.
1305 This is normally enabled for daily backups and turned off
1306 for periodic archival runs.
1307 .TP
1308 .BS skip\-full boolean
1309 Default:
1310 .IR no .
1311 If
1312 .I true
1313 and
1314 .B planner
1315 has scheduled a full backup, these disks will be skipped, and
1316 full backups should be run off-line on these days.
1317 It was reported that
1318 Amanda only schedules level 1 incrementals in this configuration; this
1319 is probably a bug.
1320 .TP
1321 .BS skip\-incr boolean
1322 Default:
1323 .IR no .
1324 If
1325 .I true
1326 and
1327 .B planner
1328 has scheduled an incremental backup, these disks will be skipped.
1329 .TP
1330 .BS starttime int
1331 Default:
1332 .IR none .
1333 Backups will not start until after this time of day.
1334 The value should be hh*100+mm, e.g.\& 6:30PM (18:30) would be entered as
1335 .BR 1830 .
1336 .TP
1337 .BS strategy string
1338 Default:
1339 .IR standard .
1340 Strategy to use when planning what level of backup to run next.
1341 Values are:
1342 .LP
1343 .RS
1344 .TP
1345 .B standard
1346 The standard Amanda schedule.
1347 .TP
1348 .B nofull
1349 Never do full backups, only level 1 incrementals.
1350 .TP
1351 .B noinc
1352 Never do incremental backups, only full dumps.
1353 .TP
1354 .B skip
1355 Never do backups (useful when sharing the
1356 .I disklist
1357 file).
1358 .TP
1359 .B incronly
1360 Only do incremental dumps.
1361 `amadmin force' should be used to tell
1362 Amanda that a full dump has been performed off-line, so that it resets
1363 to level 1.
1364 It is similar to skip-full, but with incronly
1365 full dumps may be scheduled manually.
1366 Unfortunately, it appears that Amanda
1367 will perform full backups with this configuration, which is probably a
1368 bug.
1369 .RE
1370 .LP
1371 The following
1372 .B dumptype
1373 entries are predefined by Amanda:
1374 .LP
1375 .RS
1376 .EX
1377 define dumptype no-compress {
1378     compress none
1379 }
1380 define dumptype compress-fast {
1381     compress client fast
1382 }
1383 define dumptype compress-best {
1384     compress client best
1385 }
1386 define dumptype srvcompress {
1387     compress server fast
1388 }
1389 define dumptype bsd-auth {
1390     auth bsd
1391 }
1392 define dumptype krb4-auth {
1393     auth krb4
1394 }
1395 define dumptype no-record {
1396     record no
1397 }
1398 define dumptype no-hold {
1399     holdingdisk no
1400 }
1401 define dumptype no-full {
1402     skip-full yes
1403 }
1404 .EE
1405 .RE
1406 .LP
1407 In addition to options in a
1408 .B dumptype
1409 section, one or more other
1410 .B dumptype
1411 names may be entered, which make this
1412 .B dumptype
1413 inherit options from other
1414 previously defined
1415 .BR dumptype s.
1416 For instance, two sections might be the same except for the
1417 .B record
1418 option:
1419 .LP
1420 .RS
1421 .EX
1422 define dumptype normal {
1423     comment "Normal backup, no compression, do indexing"
1424     no-compress
1425     index yes
1426     maxdumps 2
1427 }
1428 define dumptype testing {
1429     comment "Test backup, no compression, do indexing, no recording"
1430     normal
1431     record no
1432 }
1433 .EE
1434 .RE
1435 .LP
1436 Amanda provides a
1437 .B dumptype
1438 named
1439 .I global
1440 in the sample
1441 .B amanda.conf
1442 file that all
1443 .BR dumptype s
1444 should reference.
1445 This provides an easy place to make changes that will affect
1446 every
1447 .BR dumptype .
1448 .SH "TAPETYPE SECTION"
1449 The
1450 .B amanda.conf
1451 file may define multiple types of tape media and devices.
1452 The information is entered in a
1453 .B tapetype
1454 section, which looks like this in the config file:
1455 .LP
1456 .RS
1457 .EX
1458 define tapetype \fIname\fP {
1459     \fItapetype\-option\fP \fItapetype\-value\fP
1460     \fI...\fP
1461 }
1462 .EE
1463 .RE
1464 .LP
1465 .I Name
1466 is the name of this type of tape medium/device.
1467 It is referenced from the
1468 .B tapetype
1469 option in the main part of the config file.
1470 .LP
1471 The tapetype options and values are:
1472 .TP
1473 .BS comment string
1474 Default:
1475 .IR none .
1476 A comment string describing this set of tape information.
1477 .TP
1478 .BS filemark int
1479 Default:
1480 .IR "1000 bytes" .
1481 How large a file mark (tape mark) is, measured in bytes.
1482 If the size is only known in some linear measurement (e.g.\& inches),
1483 convert it to bytes using the device density.
1484 .TP
1485 .BS length int
1486 Default:
1487 .IR "2000 kbytes" .
1488 How much data will fit on a tape.
1489 .IP
1490 Note that this value is only used by Amanda to schedule which backups
1491 will be run.
1492 Once the backups start, Amanda will continue to write to a tape until
1493 it gets an error, regardless of what value is entered for
1494 .B length
1495 (but see the
1496 .B OUTPUT DRIVERS
1497 section later for exceptions).
1498 .TP
1499 .BS blocksize int
1500 Default:
1501 .IR "32 kbytes" .
1502 How much data will be written in each tape record.
1503 The minimum blocksize value is 32 KBytes.
1504 The maximum blocksize value is @MAXTAPEBLOCKSIZE@ KBytes.
1505 The maximum is set during configure with --with-maxtapeblocksize.
1506 .TP
1507 .BS file-pad boolean
1508 Default:
1509 .IR "true" .
1510 If true, every record, including the last one in the
1511 file, will have the same length.
1512 This matches the way Amanda wrote tapes prior to the availability
1513 of this parameter.
1514 It may also be useful on devices that only support a fixed blocksize.
1515 .IP
1516 Note that the last record on the tape probably includes trailing
1517 null byte padding, which will be passed back to
1518 .BR gzip ,
1519 .B compress
1520 or the restore program.
1521 Most programs just ignore this (although possibly with a warning).
1522 .IP
1523 If this parameter is false, the last record in a file may be shorter
1524 than the block size.
1525 The file will contain the same amount of data the dump program generated,
1526 without trailing null byte padding.
1527 When read, the same amount of data that was written will be returned.
1528 .TP
1529 .BS speed int
1530 Default:
1531 .IR "200 bps" .
1532 How fast the drive will accept data, in bytes per second.
1533 This parameter is not currently used by Amanda.
1534 .TP
1535 .BS lbl-templ string
1536 A PostScript template file used by
1537 .B amreport
1538 to generate labels.
1539 Several sample files are provided with the Amanda sources in the
1540 .I example
1541 directory.
1542 See the
1543 .IR amreport (8)
1544 man page for more information.
1545 .LP
1546 In addition to options, another
1547 .B tapetype
1548 name may be entered, which makes this
1549 .B tapetype
1550 inherit options from another
1551 .BR tapetype .
1552 For instance, the only difference between a DLT4000 tape drive using
1553 Compact\-III tapes and one using Compact\-IV tapes is the length of
1554 the tape.
1555 So they could be entered as:
1556 .LP
1557 .RS
1558 .EX
1559 define tapetype DLT4000\-III {
1560     comment "DLT4000 tape drives with Compact\-III tapes"
1561     length 12500 mbytes         # 10 Gig tapes with some compression
1562     filemark 2000 kbytes
1563     speed 1536 kps
1564 }
1565 define tapetype DLT4000\-IV {
1566     DLT4000\-III
1567     comment "DLT4000 tape drives with Compact\-IV tapes"
1568     length 25000 mbytes         # 20 Gig tapes with some compression
1569 }
1570 .EE
1571 .RE
1572 .SH "INTERFACE SECTION"
1573 The
1574 .B amanda.conf
1575 file may define multiple types of network interfaces.
1576 The information is entered in an
1577 .B interface
1578 section, which looks like this:
1579 .LP
1580 .RS
1581 .EX
1582 define interface \fIname\fP {
1583     \fIinterface\-option\fP \fIinterface\-value\fP
1584     \fI...\fP
1585 }
1586 .EE
1587 .RE
1588 .LP
1589 .I Name
1590 is the name of this type of network interface.
1591 It is referenced from the
1592 .I disklist
1593 file.
1594 .LP
1595 Note that these sections define network interface characteristics,
1596 not the actual interface that will be used.
1597 Nor do they impose limits on the bandwidth that will actually be
1598 taken up by Amanda.
1599 Amanda computes the estimated bandwidth each file system backup will take
1600 based on the estimated size and time,
1601 then compares that plus any other running
1602 backups with the limit as another of the criteria when deciding whether
1603 to start the backup.
1604 Once a backup starts, Amanda will use as much of the network as it can
1605 leaving throttling up to the operating system and network hardware.
1606 .LP
1607 The interface options and values are:
1608 .TP
1609 .BS comment string
1610 Default:
1611 .IR none .
1612 A comment string describing this set of network information.
1613 .TP
1614 .BS use int
1615 Default:
1616 .IR "300 Kbps" .
1617 The speed of the interface in Kbytes per second.
1618 .LP
1619 In addition to options, another
1620 .B interface
1621 name may be entered, which makes this
1622 .B interface
1623 inherit options from another
1624 .BR interface .
1625 At the moment, this is of little use.
1626 .SH "DISKLIST FILE"
1627 The
1628 .I disklist
1629 file determines which disks will be backed up by Amanda.
1630 The file usually contains one line per disk:
1631 .LP
1632 .RS
1633 .I hostname diskname
1634 [
1635 .I diskdevice
1636 ]
1637 .I dumptype
1638 [
1639 .I spindle
1640 [
1641 .I interface
1642 ] ]
1643 .RE
1644 .LP
1645 All pair [
1646 .B hostname diskname
1647 ] must be unique.
1648 .LP
1649 Lines starting with # are ignored, as are blank lines.
1650 The fields have the following meanings:
1651 .TP
1652 .I hostname
1653 The name of the host to be backed up.
1654 If
1655 .B diskdevice
1656 refers to a PC share, this is the host Amanda will
1657 run the Samba
1658 .B smbclient
1659 program on to back up the share.
1660 .TP
1661 .I diskname
1662 The name of the disk (a label).
1663 In most case, you set your
1664 .B diskname
1665 to the
1666 .B diskdevice
1667 and you don't set the
1668 .B diskdevice.
1669 If you want multiple entry with the same
1670 .B diskdevice,
1671 you must set a different
1672 .B diskname
1673 for each entry. It's the
1674 .B diskname
1675 that you use on command line for any amanda command.
1676 Look at the example/disklist file for example.
1677 .TP
1678 .I diskdevice
1679 Default: same as diskname.
1680 The name of the disk device to be backed up.
1681 It may be a full device name,
1682 a device name without the
1683 .I /dev/
1684 prefix, e.g.\&
1685 .IR sd0a ,
1686 or a mount point such as
1687 .IR /usr .
1688 .IP
1689 It may also refer to a PC share by starting the name with two (forward)
1690 slashes, e.g.\&
1691 .IR //some-pc/home .
1692 In this case, the
1693 .B program
1694 option in the associated
1695 .B dumptype
1696 must be entered as
1697 .BR GNUTAR .
1698 It is the combination of the double slash disk name and
1699 .B program GNUTAR
1700 in the
1701 .B dumptype
1702 that triggers the use of Samba.
1703 .TP
1704 .I dumptype
1705 Refers to a
1706 .B dumptype
1707 defined in the
1708 .B amanda.conf
1709 file.
1710 .IR Dumptype s
1711 specify backup related parameters,
1712 such as whether to compress the backups,
1713 whether to record backup results in
1714 .IR /etc/dumpdates ,
1715 the disk's relative priority,
1716 etc.
1717 .TP
1718 .I spindle
1719 Default:
1720 .IR \-1 .
1721 A number used to balance backup load on a host.
1722 Amanda will not run multiple backups at the same time
1723 on the same spindle, unless the spindle number is -1,
1724 which means there is no spindle restriction.
1725 .TP
1726 .I interface
1727 Default:
1728 .IR local .
1729 The name of a network interface definition in the
1730 .B amanda.conf
1731 file, used to balance network load.
1732 .LP
1733 Instead of naming a
1734 .BR dumptype ,
1735 it is possible to define one in-line, enclosing
1736 .B dumptype
1737 options within curly braces, one per line, just like a
1738 .B dumptype
1739 definition in
1740 .BR amanda.conf .
1741 Since pre-existing
1742 .BR dumptype s
1743 are valid option names, this syntax may be used to customize
1744 .BR dumptype s
1745 for particular disks.
1746 .LP
1747 A line break
1748 .B must
1749 follow the left curly bracket.
1750 .LP
1751 For instance, if a
1752 .B dumptype
1753 named
1754 .I normal
1755 is used for most disks, but use of the holding disk needs to be disabled
1756 for the file system that holds it, this would work instead of defining
1757 a new dumptype:
1758 .RS
1759 .EX
1760 \fIhostname diskname\fP [ \fIdiskdevice\fP ] {
1761   normal
1762   holdingdisk no
1763 } [ \fIspindle\fP [ \fIinterface\fP ] ]
1764 .EE
1765 .RE
1766 .LP
1767 .SH "TAPE MANAGEMENT"
1768 The
1769 .I tapelist
1770 file contains the list of tapes in active use.
1771 This file is maintained entirely by Amanda and should not be created
1772 or edited during normal operation.
1773 It contains lines of the form:
1774 .LP
1775 .RS
1776 .I YYYYMMDD label flags
1777 .RE
1778 .LP
1779 Where
1780 .I YYYYMMDD
1781 is the date the tape was written,
1782 .I label
1783 is a label for the tape as written by
1784 .B amlabel
1785 and
1786 .I flags
1787 tell Amanda whether the tape may be reused, etc (see
1788 the
1789 .B reuse
1790 options of
1791 .BR amadmin ).
1792 .LP
1793 .B Amdump
1794 and
1795 .B amflush
1796 will refuse to write to an unlabeled tape,
1797 or to a labeled tape that is considered active.
1798 There must be more tapes in active rotation
1799 (see the
1800 .B tapecycle
1801 option)
1802 than there are runs in the backup cycle
1803 (see the
1804 .B dumpcycle
1805 option)
1806 to prevent overwriting a backup image that would be needed to
1807 do a full recovery.
1808 .SH "OUTPUT DRIVERS"
1809 The normal value for the
1810 .B tapedev
1811 parameter,
1812 or for what a tape changer returns,
1813 is a full path name to a non-rewinding tape device,
1814 such as
1815 .I /dev/nst0
1816 or
1817 .I /dev/rmt/0mn
1818 or
1819 .I /dev/nst0.1
1820 or whatever conventions the operating system uses.
1821 Amanda provides additional application level drivers that
1822 support non-tradition tape simulatation or features.
1823 To access a specific output driver, set
1824 .B tapedev
1825 (or configure your changer to return)
1826 a string of the form
1827 .I driver\fR:\fIdriver-info
1828 where
1829 .I driver
1830 is one of the supported drivers and
1831 .I driver-info
1832 is optional additional information needed by the driver.
1833 .LP
1834 The supported drivers are:
1835 .TP 10
1836 .I tape
1837 This is the default driver.
1838 The
1839 .I driver-info
1840 is the tape device name.
1841 Entering
1842 .I /dev/rmt/0mn
1843 is really a short hand for
1844 .IR tape:/dev/rmt/0mn .
1845 .TP
1846 .I null
1847 This driver throws away anything written to it and returns EOF
1848 for any reads except a special case is made for reading a label,
1849 in which case a "fake" value is returned that Amanda checks for
1850 and allows through regardless of what you have set in
1851 .BR labelstr .
1852 The
1853 .I driver-info
1854 field is not used and may be left blank:
1855 .RS
1856 .IP
1857 .BS tapedev null:
1858 .RE
1859 .IP
1860 The
1861 .I length
1862 value from the associated
1863 .B tapetype
1864 is used to limit the amount of data written.
1865 When the limit is reached, the driver will simulate end of tape.
1866 .IP
1867 NOTE: this driver should only be used for debugging and testing,
1868 and probably only with the
1869 .B record
1870 option set to
1871 .IR no .
1872 .TP
1873 .I rait
1874 \fIR\fRedundant
1875 \fIA\fRrray
1876 of
1877 \fII\fRnexpensive (?)
1878 \fIT\fRapes.
1879 Reads and writes tapes mounted on multiple drives by spreading
1880 the data across N-1 drives and using the last drive for a checksum.
1881 See docs/RAIT for more information.
1882 .IP
1883 The
1884 .I driver-info
1885 field describes the devices to use.
1886 Curly braces indicate multiple replacements in the string.
1887 For instance:
1888 .RS
1889 .IP
1890 .BS tapedev rait:/dev/rmt/tps0d{4,5,6}n
1891 .RE
1892 .IP
1893 would use the following devices:
1894 .RS
1895 .IP
1896 /dev/rmt/tps0d4n
1897 .br
1898 /dev/rmt/tps0d5n
1899 .br
1900 /dev/rmt/tps0d6n
1901 .RE
1902 .TP
1903 .I file
1904 This driver emulates a tape device with a set of files in a directory.
1905 The
1906 .I driver-info
1907 field must be the name of an existing directory.
1908 The driver will test for a subdirectory of that named
1909 .I data
1910 and return
1911 .B offline
1912 until it is present.
1913 When present, the driver uses two files in the
1914 .I data
1915 subdirectory for each tape file.
1916 One contains the actual data.
1917 The other contains record length information.
1918 .IP
1919 The driver uses a file named
1920 .I status
1921 in the
1922 .B file
1923 device directory to hold driver status information,
1924 such as tape position.
1925 If not present, the driver will create it as though the device is rewound.
1926 .IP
1927 The
1928 .I length
1929 value from the associated
1930 .B tapetype
1931 is used to limit the amount of data written.
1932 When the limit is reached, the driver will simulate end of tape.
1933 .IP
1934 One way to use this driver with a real device such as a CD is to
1935 create a directory for the
1936 .B file
1937 device and one or more other directories
1938 for the actual data.
1939 Create a symlink named
1940 .I data
1941 in the
1942 .B file
1943 directory to one of the data directories.
1944 Set the
1945 .B tapetype
1946 length to whatever the medium will hold.
1947 .IP
1948 When Amanda fills the
1949 .B file
1950 device,
1951 remove the symlink and (optionally) create a new symlink to another
1952 data area.
1953 Use a CD writer software package to burn the image from the first data area.
1954 .IP
1955 To read the CD,
1956 mount it and create the
1957 .I data
1958 symlink in the
1959 .B file
1960 device directory.
1961 .SH AUTHORIZATION
1962 Amanda processes on the tape server host run as the
1963 .B dumpuser
1964 user listed in
1965 .BR amanda.conf .
1966 When they connect to a backup client, they do so with an Amanda-specific
1967 protocol.
1968 They do not, for instance, use
1969 .B rsh
1970 or
1971 .B ssh
1972 directly.
1973 .LP
1974 On the client side, the
1975 .B amandad
1976 daemon validates the connection using one of several methods,
1977 depending on how it was compiled and on options it is passed:
1978 .LP
1979 .IP .rhosts
1980 Even though Amanda does not use
1981 .BR rsh ,
1982 it can use
1983 .BR .rhosts -style
1984 authentication and a
1985 .B .rhosts
1986 file.
1987 .IP .amandahosts
1988 This is essentially the same as
1989 .B .rhosts
1990 authentication except a different file, with almost the same format, is used.
1991 This is the default mechanism built into Amanda.
1992 .IP
1993 The format of the
1994 .B .amandahosts
1995 file is:
1996 .RS
1997 .IP
1998 .I hostname
1999 [
2000 .I username
2001 ]
2002 .RE
2003 .IP
2004 If
2005 .I username
2006 is ommitted, it defaults to the user running
2007 .BR amandad ,
2008 i.e. the user listed in the
2009 .B inetd
2010 or
2011 .B xinetd
2012 configuration file.
2013 .IP Kerberos
2014 Amanda may use the Kerberos authentication system.
2015 Further information is in the
2016 .B docs/KERBEROS
2017 file that comes with an Amanda distribution.
2018 .LP
2019 For Samba access,
2020 Amanda needs a file on the Samba server (which may
2021 or may not also be the tape server) named
2022 .B /etc/amandapass
2023 with share names, (clear text) passwords and (optional) domain names,
2024 in that order, one per line, whitespace separated.
2025 By default, the user used to connect to the PC is the same for all
2026 PC's and is compiled into Amanda.
2027 It may be changed on a host by host basis
2028 by listing it first in the password field followed
2029 by a percent sign and then the password.
2030 For instance:
2031 .LP
2032 .EX
2033   //some-pc/home        normalpw
2034   //another-pc/disk     otheruser%otherpw
2035 .EE
2036 .LP
2037 With clear text passwords, this file should obviously be tightly protected.
2038 It only needs to be readable by the Amanda user on the Samba server.
2039 .LP
2040 Further information is in the
2041 .B docs/SAMBA
2042 file that comes with an Amanda distribution.
2043 .SH HOST & DISK EXPRESSION
2044 All host and disk arguments to programs are special expression.
2045 The command apply to all disk that match your arguments.
2046 This section describe the matcher.
2047 .LP
2048 The matcher match by word, each word is a glob expression, word
2049 are separated by the separator '.' for host and '/' for disk. You
2050 can anchor the expression at left with a '^'. You can
2051 anchor the expression at right with a '$'. The matcher
2052 is case insensitive for host but is case sensitive for disk. A match
2053 succeed if all word in your expression match contiguous word in 
2054 the host or disk.
2055 .LP
2056 .EX
2057  .   word separator for a host
2058  /   word separator for a disk
2059  ^   anchor at left
2060  $   anchor at right
2061  ?   match exactly one character except the separator
2062  *   match zero or more characters except the separator
2063  **  match zero or more characters including the separator
2064 .EE
2065 .LP
2066 .LP
2067 Some examples:
2068 .LP
2069 .EX
2070   EXPRESSION      WILL MATCH              WILL NOT MATCH
2071   hosta           hosta                   hostb
2072                   hoSTA.dOMAIna.ORG
2073                   foo.hosta.org
2074   host            host                    hosta
2075   host?           hosta                   host
2076                   hostb
2077   ho*na           hoina                   ho.aina.org
2078   ho**na          hoina
2079                   ho.aina.org
2080   ^hosta          hosta                   foo.hosta.org
2081   sda*            /dev/sda1
2082                   /dev/sda12
2083   /opt/           opt (disk)              opt (host)
2084   .opt.           opt (host)              opt (disk)
2085   /               /                       any other disk
2086   /usr            /usr
2087                   /usr/opt
2088   /usr$           /usr                    /usr/opt
2089
2090 .EE
2091 .SH DATESTAMP EXPRESSION
2092 A
2093 .I datestamp
2094 expression is a range expression where we only match the prefix.
2095 Leading ^ is removed. Trailing $ force an exact match.
2096 .LP
2097 .EX
2098   20001212-14  match all dates beginning with 20001212, 20001213 or 20001214
2099   20001212-4   same as previous
2100   20001212-24  match all dates between 20001212 and 20001224
2101   2000121      match all dates that start with 2000121 (20001210-20001219)
2102   2            match all dates that start with 2 (20000101-29991231)
2103   2000-10      match all dates between 20000101-20101231
2104   200010$      match only 200010
2105 .EE
2106 .SH AUTHOR
2107 James da Silva <jds@cs.umd.edu>
2108 .br
2109 University of Maryland, College Park
2110 .SH "SEE ALSO"
2111 amadmin(8),
2112 amcheck(8),
2113 amcheckdb(8),
2114 amcleanup(8),
2115 amdd(8),
2116 amdump(8),
2117 amflush(8),
2118 amgetconf(8),
2119 amlabel(8),
2120 ammt(8),
2121 amoverview(8),
2122 amplot(8),
2123 amrecover(8),
2124 amreport(8),
2125 amrestore(8),
2126 amrmtape(8),
2127 amstatus(8),
2128 amtape(8),
2129 amtoc(8),
2130 amverify(8),
2131 amverifyrun(8)