source: npl/overig/bacula_conf/root/etc/bacula/bacula-dir.conf @ b4abfab

perl-5.22
Last change on this file since b4abfab was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 8.8 KB
Line 
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 5.0.3 (04 August 2010) -- slackware Slackware 10.0.0
9#
10#  You might also want to change the default email address
11#   from root to your address.  See the "mail" and "operator"
12#   directives in the Messages resource.
13#
14
15Director {                            # define myself
16  Name = monster-dir
17  DIRport = 9101                # where we listen for UA connections
18  QueryFile = "/usr/bin/query.sql"
19  WorkingDirectory = "/home/system/bacula/working"
20  PidDirectory = "/var/run"
21  Maximum Concurrent Jobs = 1
22  Password = "Q3eO2g2mTlRQ+ySH7hp9BhU2JopBXwzFTtxXfJnpK0ED"         # Console password
23  Messages = Daemon
24}
25
26JobDefs {
27  Name = "DefaultJob"
28  Type = Backup
29  Level = Incremental
30  Client = monster-fd
31  FileSet = "Full Set"
32  Schedule = "WeeklyCycle"
33  Storage = File
34  Messages = Standard
35  Pool = File
36  Priority = 10
37  Write Bootstrap = "/home/system/bacula/working/%c.bsr"
38}
39
40
41#
42# Define the main nightly save backup job
43#   By default, this job will back up to disk in /tmp
44Job {
45  Name = "BackupClient1"
46  JobDefs = "DefaultJob"
47}
48
49#Job {
50#  Name = "BackupClient2"
51#  Client = monster2-fd
52#  JobDefs = "DefaultJob"
53#}
54
55# Backup the catalog database (after the nightly save)
56Job {
57  Name = "BackupCatalog"
58  JobDefs = "DefaultJob"
59  Level = Full
60  FileSet="Catalog"
61  Schedule = "WeeklyCycleAfterBackup"
62  # This creates an ASCII copy of the catalog
63  # Arguments to make_catalog_backup.pl are:
64  #  make_catalog_backup.pl <catalog-name>
65  RunBeforeJob = "/usr/bin/make_catalog_backup.pl MyCatalog"
66  # This deletes the copy of the catalog
67  RunAfterJob  = "/usr/bin/delete_catalog_backup"
68  Write Bootstrap = "/home/system/bacula/working/%n.bsr"
69  Priority = 11                   # run after main backup
70}
71
72#
73# Standard Restore template, to be changed by Console program
74#  Only one such job is needed for all Jobs/Clients/Storage ...
75#
76Job {
77  Name = "RestoreFiles"
78  Type = Restore
79  Client=monster-fd                 
80  FileSet="Full Set"                 
81  Storage = File                     
82  Pool = Default
83  Messages = Standard
84  Where = /tmp/bacula-restores
85}
86
87
88# List of files to be backed up
89FileSet {
90  Name = "Full Set"
91  Include {
92    Options {
93      signature = MD5
94    }
95#   
96#  Put your list of files here, preceded by 'File =', one per line
97#    or include an external list with:
98#
99#    File = <file-name
100#
101#  Note: / backs up everything on the root partition.
102#    if you have other partitions such as /usr or /home
103#    you will probably want to add them too.
104#
105#  By default this is defined to point to the Bacula binary
106#    directory to give a reasonable FileSet to backup to
107#    disk storage during initial testing.
108#
109    File = /
110    File = /home
111  }
112
113#
114# If you backup the root directory, the following two excluded
115#   files can be useful
116#
117  Exclude {
118    File = /home/system/bacula/working
119    File = /tmp
120    File = /proc
121    File = /tmp
122    File = /.journal
123    File = /.fsck
124  }
125}
126
127#
128# When to do the backups, full backup on first sunday of the month,
129#  differential (i.e. incremental since full) every other sunday,
130#  and incremental backups other days
131Schedule {
132  Name = "WeeklyCycle"
133  Run = Full 1st sun at 23:05
134  Run = Differential 2nd-5th sun at 23:05
135  Run = Incremental mon-sat at 23:05
136}
137
138# This schedule does the catalog. It starts after the WeeklyCycle
139Schedule {
140  Name = "WeeklyCycleAfterBackup"
141  Run = Full sun-sat at 23:10
142}
143
144# This is the backup of the catalog
145FileSet {
146  Name = "Catalog"
147  Include {
148    Options {
149      signature = MD5
150    }
151    File = "/home/system/bacula/working/bacula.sql"
152  }
153}
154
155# Client (File Services) to backup
156Client {
157  Name = monster-fd
158  Address = localhost
159  FDPort = 9102
160  Catalog = MyCatalog
161  Password = "ZE6+VCGbHFuzqyB8PUBi6C66vP7b+fdHXYlwe2hSHrZi"          # password for FileDaemon
162  File Retention = 30 days            # 30 days
163  Job Retention = 6 months            # six months
164  AutoPrune = yes                     # Prune expired Jobs/Files
165}
166
167#
168# Second Client (File Services) to backup
169#  You should change Name, Address, and Password before using
170#
171#Client {
172#  Name = monster2-fd               
173#  Address = localhost2
174#  FDPort = 9102
175#  Catalog = MyCatalog
176#  Password = "ZE6+VCGbHFuzqyB8PUBi6C66vP7b+fdHXYlwe2hSHrZi2"         # password for FileDaemon 2
177#  File Retention = 30 days            # 30 days
178#  Job Retention = 6 months            # six months
179#  AutoPrune = yes                     # Prune expired Jobs/Files
180#}
181
182
183# Definition of file storage device
184Storage {
185  Name = File
186# Do not use "localhost" here   
187  Address = localhost                # N.B. Use a fully qualified name here
188  SDPort = 9103
189  Password = "BnKIIf9ENG4T8HvhX85LyBaBM2PVr9ayajjOCV6T4GVz"
190  Device = FileStorage
191  Media Type = File
192}
193
194
195
196# Definition of DDS tape storage device
197#Storage {
198#  Name = DDS-4   
199#  Do not use "localhost" here
200#  Address = localhost                # N.B. Use a fully qualified name here
201#  SDPort = 9103
202#  Password = "BnKIIf9ENG4T8HvhX85LyBaBM2PVr9ayajjOCV6T4GVz"          # password for Storage daemon
203#  Device = DDS-4                      # must be same as Device in Storage daemon
204#  Media Type = DDS-4                  # must be same as MediaType in Storage daemon
205#  Autochanger = yes                   # enable for autochanger device
206#}
207
208# Definition of 8mm tape storage device
209#Storage {
210#  Name = "8mmDrive"
211#  Do not use "localhost" here
212#  Address = localhost                # N.B. Use a fully qualified name here
213#  SDPort = 9103
214#  Password = "BnKIIf9ENG4T8HvhX85LyBaBM2PVr9ayajjOCV6T4GVz"
215#  Device = "Exabyte 8mm"
216#  MediaType = "8mm"
217#}
218
219# Definition of DVD storage device
220#Storage {
221#  Name = "DVD"
222#  Do not use "localhost" here
223#  Address = localhost                # N.B. Use a fully qualified name here
224#  SDPort = 9103
225#  Password = "BnKIIf9ENG4T8HvhX85LyBaBM2PVr9ayajjOCV6T4GVz"
226#  Device = "DVD Writer"
227#  MediaType = "DVD"
228#}
229
230
231# Generic catalog service
232Catalog {
233  Name = MyCatalog
234# Uncomment the following line if you want the dbi driver
235# dbdriver = "dbi:sqlite3"; dbaddress = 127.0.0.1; dbport = 
236  dbname = "bacula"; dbuser = "bacula"; dbpassword = ""
237}
238
239# Reasonable message delivery -- send most everything to email address
240#  and to the console
241Messages {
242  Name = Standard
243#
244# NOTE! If you send to two email or more email addresses, you will need
245#  to replace the %r in the from field (-f part) with a single valid
246#  email address in both the mailcommand and the operatorcommand.
247#  What this does is, it sets the email address that emails would display
248#  in the FROM field, which is by default the same email as they're being
249#  sent to.  However, if you send email to more than one address, then
250#  you'll have to set the FROM address manually, to a single address.
251#  for example, a 'no-reply@mydomain.com', is better since that tends to
252#  tell (most) people that its coming from an automated source.
253
254#
255  mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
256  operatorcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
257  mail = root@localhost = all, !skipped           
258  operator = root@localhost = mount
259  console = all, !skipped, !saved
260#
261# WARNING! the following will create a file that you must cycle from
262#          time to time as it will grow indefinitely. However, it will
263#          also keep all your messages if they scroll off the console.
264#
265  append = "/home/system/bacula/working/log" = all, !skipped
266  catalog = all
267}
268
269
270#
271# Message delivery for daemon messages (no job).
272Messages {
273  Name = Daemon
274  mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
275  mail = root@localhost = all, !skipped           
276  console = all, !skipped, !saved
277  append = "/home/system/bacula/working/log" = all, !skipped
278}
279
280# Default pool definition
281Pool {
282  Name = Default
283  Pool Type = Backup
284  Recycle = yes                       # Bacula can automatically recycle Volumes
285  AutoPrune = yes                     # Prune expired volumes
286  Volume Retention = 365 days         # one year
287}
288
289# File Pool definition
290Pool {
291  Name = File
292  Pool Type = Backup
293  Recycle = yes                       # Bacula can automatically recycle Volumes
294  AutoPrune = yes                     # Prune expired volumes
295  Volume Retention = 365 days         # one year
296  Maximum Volume Bytes = 50G          # Limit Volume size to something reasonable
297  Maximum Volumes = 100               # Limit number of Volumes in Pool
298}
299
300
301# Scratch pool definition
302Pool {
303  Name = Scratch
304  Pool Type = Backup
305}
306
307#
308# Restricted console used by tray-monitor to get the status of the director
309#
310Console {
311  Name = monster-mon
312  Password = "pjIQq6ZPn3sR8cGJrGz6vEbqyk3Pijnx8bP5Z1qFPFm7"
313  CommandACL = status, .status
314}
Note: See TracBrowser for help on using the repository browser.