]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/bacula-dir-2d.conf.in
Copy trunk regress into Branch
[bacula/bacula] / regress / scripts / bacula-dir-2d.conf.in
1 #
2 # Default Bacula Director Configuration file
3 #
4 #  The only thing that MUST be changed is to add one or more
5 #   file or directory names in the Include directive of the
6 #   FileSet resource.
7 #
8 #  For Bacula release 2.1.x
9 #
10 #  Special conf for testing two tape drives with two different
11 #   Media.
12 #
13
14 Director {                            # define myself
15   Name = @hostname@-dir
16   DIRPort = @dirport@                # where we listen for UA connections
17   QueryFile = "@scriptdir@/query.sql"
18   WorkingDirectory = "@working_dir@"
19   PidDirectory = "@piddir@"
20   Maximum Concurrent Jobs = 4
21   Password = "dir-pw"
22   Messages = Daemon
23 }
24
25 #
26 # Define the main nightly save backup job
27 #   By default, this job will back up to disk in @tmpdir@
28 Job {
29   Name = "NightlySave"
30   Type = Backup
31   Client=@hostname@-fd
32   FileSet="Full Set"
33   Storage = DDS-4
34   Messages = Standard
35   Pool = Default
36   Write Bootstrap = "@working_dir@/NightlySave.bsr"
37   Maximum Concurrent Jobs = 4
38   SpoolData = yes
39 # Prefer Mounted Volumes = no
40 }
41
42 # Standard Restore template, to be changed by Console program
43 Job {
44   Name = "RestoreFiles"
45   Type = Restore
46   Client=@hostname@-fd
47   FileSet="Full Set"
48   Storage = DDS-4
49   Messages = Standard
50   Pool = Default
51   Where = @tmpdir@/bacula-restores
52 }
53
54
55 # List of files to be backed up
56 FileSet {
57   Name = "Full Set"
58   Include { Options { signature=MD5 }
59     File =  <@tmpdir@/file-list
60   }
61 }
62
63
64 #
65 # When to do the backups, full backup on first sunday of the month,
66 #  differential (i.e. incremental since full) every other sunday,
67 #  and incremental backups other days
68 Schedule {
69   Name = "WeeklyCycle"
70   Run = Full 1st sun at 1:05
71   Run = Differential 2nd-5th sun at 1:05
72   Run = Incremental mon-sat at 1:05
73 }
74
75 # Client (File Services) to backup
76 Client {
77   Name = @hostname@-fd
78   Address = @hostname@
79   FDPort = @fdport@
80   Catalog = MyCatalog
81   Password = "client-pw"
82   File Retention = 30d                # 30 days
83   Job Retention = 180d                # six months
84   AutoPrune = yes                     # Prune expired Jobs/Files
85   Maximum Concurrent Jobs = 4
86 }
87
88 # Definition of DDS tape storage device
89 Storage {
90   Name = DDS-4
91   Address = @hostname@               # N.B. Use a fully qualified name here
92   SDPort = @sdport@
93   Password = "storage-pw"
94   Device = DDS-4                      # must be same as Device in Storage daemon
95   Media Type = DDS-4                  # must be same as MediaType in Storage daemon
96   Maximum Concurrent Jobs = 4
97   Autochanger = yes
98 }
99
100
101 # Definition of DLT tape storage device
102 Storage {
103   Name = DLT80
104   Address = @hostname@               # N.B. Use a fully qualified name here
105   SDPort = @sdport@
106   Password = "storage-pw"
107   Device = DLT80                      # must be same as Device in Storage daemon
108   Media Type = DLT8000                # must be same as MediaType in Storage daemon
109   Maximum Concurrent Jobs = 4
110 }
111
112
113 # Generic catalog service
114 Catalog {
115   Name = MyCatalog
116   dbname = regress; user = regress; password = ""
117 }
118
119 # Reasonable message delivery -- send most everything to email address
120 #  and to the console
121 Messages {
122   Name = Standard
123   mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression Job %j\) %r\" -s \"Regression: %t %e of %c %l\" %r"
124   operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression Job %j\) %r\" -s \"Regression: Intervention needed for %j\" %r"
125   MailOnError = @job_email@ = all, !terminate
126   operator = @job_email@ = mount
127   console = all, !skipped, !terminate, !restored
128 #
129 # WARNING! the following will create a file that you must cycle from
130 #          time to time as it will grow indefinitely. However, it will
131 #          also keep all your messages if the scroll off the console.
132 #
133   append = "@working_dir@/log" = all, !skipped
134 }
135
136 #
137 # Message delivery for daemon messages (no job).
138 Messages {
139   Name = Daemon
140   mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression daemon message\" %r"
141   mail = @job_email@ = all, !skipped            
142   console = all, !skipped, !saved
143   append = "@working_dir@/log" = all, !skipped
144 }
145
146     
147 # Default pool definition
148 Pool {
149   Name = Default
150   Pool Type = Backup
151   Recycle = yes                       # Bacula can automatically recycle Volumes
152   AutoPrune = yes                     # Prune expired volumes
153   Volume Retention = 365d             # one year
154 }
155
156 Pool {
157   Name = Full
158   Pool Type = Backup
159   Recycle = yes                       # Bacula can automatically recycle Volumes
160   AutoPrune = yes                     # Prune expired volumes
161   Volume Retention = 365d             # one year
162 }
163
164 Pool {
165   Name = Inc
166   Pool Type = Backup
167   Recycle = yes                       # Bacula can automatically recycle Volumes
168   AutoPrune = yes                     # Prune expired volumes
169   Volume Retention = 365d             # one year
170 }
171
172 Pool {
173   Name = Scratch
174   Pool Type = Backup
175   Recycle = yes                       # Bacula can automatically recycle Volumes
176   AutoPrune = yes                     # Prune expired volumes
177   Volume Retention = 365d             # one year
178   Recycle Pool = Scratch              # recycle back here
179 }