Imported Upstream version 2.4.4p3
[debian/amanda] / example / disklist
1 # sample Amanda2 disklist file, derived from CS.UMD.EDU's disklist
2 #
3 # If your configuration is called, say, "csd2", then this file normally goes
4 # in /etc/amanda/csd2/disklist.
5 #
6 # File format is:
7 #
8 #       hostname diskdev dumptype [spindle [interface]]
9 #
10 # where the dumptypes are defined by you in amanda.conf or in-line.
11
12 # At our site, root partitions have a different dumptype because they
13 # are of lower priority; they don't contain user data, and don't change
14 # much from the department prototype.  In a crunch, they can be left for
15 # last or skipped.
16
17 # A SPARCstation 1+
18 salty sd0a comp-root
19 salty sd0g comp-user
20 salty sd1g comp-user
21 salty sd2a comp-root
22 salty sd2g comp-user
23 salty sd3c comp-user
24
25 # A DECstation 3100
26 slithy rz1a comp-root
27 slithy rz1g comp-user
28 slithy rz3a comp-root
29 slithy rz3g comp-user
30
31 # We don't run compression on the master host since it is going to be
32 # busy enough running amanda.
33 master sd0a nocomp-root -1 local
34 master sd0g nocomp-user -1 local
35 # note: -1 is a placeholder for the spindle number
36 # the holding disk can't be dumped to itself, it uses a disktype that
37 # specifies the "no-hold" option (see amanda.conf).
38 master sd1c holding-disk -1 local
39
40 # Compress data from a slow server on the tape server.
41 # Example of inline dumptype specialization
42 slowsrv / { # the line break here is mandatory
43   root-tar # copy properties of root-tar
44   compress server fast # but change the compression mode
45 } # spindle and interface omitted here
46 slowsrv /usr {
47   user-tar
48   exclude list ".exclude"
49   compress server fast
50 } 2 le0 # no line break before spindle and interface
51
52 # The chairman's disk is high priority to make sure it gets done.
53 bigwig  sd0a comp-root
54 bigwig  sd0g comp-high
55 # Likewise the named databases in the root partition on our primary
56 # nameserver.  Also, compression is turned off because we don't want
57 # to create any unnecessary load on this baby (it's only a Sun3).
58 bozo        sd0a nocomp-high
59 bozo        sd0g nocomp-user
60 bozo        sd4c nocomp-user
61
62 # Dump Joe's NetBSD machine, with the mounted MS-DOS partition dumped
63 # using tar.
64 joespc  wd0a comp-root
65 joespc  wd0e comp-user
66 joespc  /msdos comp-user-tar
67
68 # Some really slow machines, like Sun2's and some Vaxstations, take
69 # forever to compress their dumps: it's just not worth it.
70
71 # A Sun2
72 cleo     sd0a nocomp-root
73 cleo     sd0g nocomp-user
74 # A VaxStation
75 susie         rz8a nocomp-root
76 susie         rz8g nocomp-user
77
78 # An example of how to separate a big disk (/diskA) in multiple smaller entry
79 # using GNUTAR.
80 # I suggest to always use the diskdevice in the diskname.
81 # Don't forget to use the same spindle for all entry.
82 hosta /diskA/all /diskA {
83         # all directories except the one that start with [a-u]
84         high-tar
85         exclude "./[a-u]*"
86         } 1
87 hosta /diskA/ag /diskA {
88         # all directories that start with [a-g] except big1 and big2
89         high-tar
90         include "./[a-g]*"
91         exclude "./big1" "./big2"
92         } 1
93 hosta /diskA/big /diskA {
94         # directories big1 and big2
95         high-tar
96         include "./big1" "./big2"
97         } 1
98 hosta /diskA/gm /diskA {
99         # all directories that start with [h-m]
100         high-tar
101         include "./[h-m]*"
102         } 1
103 hosta /diskA/nu /diskA {
104         # all directories that start with [n-u]
105         high-tar
106         include "./[n-u]*"
107         } 1
108
109
110 # and so on ... well, you get the idea