1#
2# Default Bareos 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#  You might also want to change the default email address
9#   from root to your address.  See the "mail" and "operator"
10#   directives in the Messages resource.
11#
12
13Director {                            # define myself
14  Name = @hostname@-dir
15  DIRPort = @dirport@                # where we listen for UA connections
16  QueryFile = "@scriptdir@/query.sql"
17  WorkingDirectory = "@working_dir@"
18  PidDirectory = "@piddir@"
19  Maximum Concurrent Jobs = 4
20  Password = "pNvX1WiXnwv2C/F7E52LGvw6rKjbbPvu2kyuPa9pVaL3"
21  Messages = Daemon
22}
23
24#
25# Define the main nightly save backup job
26#   By default, this job will back up to disk in @tmpdir@
27Job {
28  Name = "NightlySave"
29  Type = Backup
30  Client=@hostname@-fd
31  FileSet="Full Set"
32  Storage = File
33  Messages = Standard
34  Pool = Default
35  Write Bootstrap = "@working_dir@/NightlySave.bsr"
36  Maximum Concurrent Jobs = 4
37  SpoolData = yes
38# Allow Duplicate Jobs = No
39# Prefer Mounted Volumes = no
40}
41
42Job {
43  Name = "migrate-job"
44  Type = Migrate
45  Level = Full
46  Messages = Standard
47  Storage = DiskChanger
48  Write Bootstrap = "@working_dir@/migratejob.bsr"
49  Pool = Default
50  Maximum Concurrent Jobs = 4
51  Selection Type = Job
52  Selection Pattern = ".*Save"
53# Allow Duplicate Jobs = No
54}
55
56Job {
57  Name = "migrate-volume"
58  Type = Migrate
59  Level = Full
60  Messages = Standard
61  Storage = DiskChanger
62  Write Bootstrap = "@working_dir@/migratevol.bsr"
63  Pool = Default
64  Maximum Concurrent Jobs = 4
65  Selection Type = Volume
66  Selection Pattern = "File*"
67# Allow Duplicate Jobs = No
68}
69
70Job {
71  Name = "copy-uncopied"
72  Type = Copy
73  Level = Full
74  Messages = Standard
75  Storage = DiskChanger
76  Write Bootstrap = "@working_dir@/migratevol.bsr"
77  Pool = Default
78  Maximum Concurrent Jobs = 4
79  Selection Type = PoolUncopiedJobs
80# Allow Duplicate Jobs = No
81}
82
83Job {
84  Name = "migrate-occupancy"
85  Type = Migrate
86  Level = Full
87  Messages = Standard
88  Storage = DiskChanger
89  Write Bootstrap = "@working_dir@/migratejob.bsr"
90  Pool = Default
91  Maximum Concurrent Jobs = 4
92  Selection Type = PoolOccupancy
93# Allow Duplicate Jobs = No
94}
95
96Job {
97  Name = "migrate-time"
98  Type = Migrate
99  Level = Full
100  Messages = Standard
101  Storage = DiskChanger
102  Write Bootstrap = "@working_dir@/migratejob.bsr"
103  Pool = Default
104  Maximum Concurrent Jobs = 4
105  Selection Type = PoolTime
106# Allow Duplicate Jobs = No
107}
108
109
110
111
112# Standard Restore template, to be changed by Console program
113Job {
114  Name = "RestoreFiles"
115  Type = Restore
116  Client=@hostname@-fd
117  FileSet="Full Set"
118  Storage = File
119  Messages = Standard
120  Pool = Default
121  Where = @tmpdir@/bareos-restores
122}
123
124
125# List of files to be backed up
126FileSet {
127  Name = "Full Set"
128  Include { Options { signature=MD5 }
129    File =  <@tmpdir@/file-list
130  }
131}
132
133
134#
135# When to do the backups, full backup on first sunday of the month,
136#  differential (i.e. incremental since full) every other sunday,
137#  and incremental backups other days
138Schedule {
139  Name = "WeeklyCycle"
140  Run = Full 1st sun at 1:05
141  Run = Differential 2nd-5th sun at 1:05
142  Run = Incremental mon-sat at 1:05
143}
144
145# Client (File Services) to backup
146Client {
147  Name = @hostname@-fd
148  Address = @hostname@
149  FDPort = @fdport@
150  Catalog = MyCatalog
151  Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
152  File Retention = 30d                # 30 days
153  Job Retention = 180d                # six months
154  AutoPrune = yes                     # Prune expired Jobs/Files
155  Maximum Concurrent Jobs = 4
156}
157
158# Definition of DDS Virtual tape disk storage device
159Storage {
160  Name = DiskChanger
161  Address = @hostname@                # N.B. Use a fully qualified name here
162  SDPort = @sdport@
163  Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
164  Device = DiskChanger                      # must be same as Device in Storage daemon
165  Media Type = DiskChangerMedia             # must be same as MediaType in Storage daemon
166  Maximum Concurrent Jobs = 4
167  Autochanger = yes
168}
169
170# Definition of file storage device
171Storage {
172  Name = File
173  Address = @hostname@
174  SDPort = @sdport@
175  Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
176  Device = FileStorage
177  Media Type = File
178  Maximum Concurrent Jobs = 5
179}
180
181
182# Generic catalog service
183Catalog {
184  Name = MyCatalog
185  @libdbi@
186  dbdriver = "@db_type@"
187  dbname = @db_name@
188  user = @db_user@
189  password = "@db_password@"
190}
191
192# Reasonable message delivery -- send most everything to email address
193#  and to the console
194Messages {
195  Name = Standard
196  mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bareos regression Job %j\) %r\" -s \"Regression: %t %e of %c %l\" %r"
197  operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bareos regression Job %j\) %r\" -s \"Regression: Intervention needed for %j\" %r"
198# MailOnError = @job_email@ = all, !terminate
199# operator = @job_email@ = mount
200  console = all, !skipped, !terminate, !restored, !audit
201#
202# WARNING! the following will create a file that you must cycle from
203#          time to time as it will grow indefinitely. However, it will
204#          also keep all your messages if the scroll off the console.
205#
206  append = "@working_dir@/log" = all, !skipped, !audit
207  catalog = all, !skipped, !audit
208}
209
210#
211# Message delivery for daemon messages (no job).
212Messages {
213  Name = Daemon
214  mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bareos regression\) %r\" -s \"Regression daemon message\" %r"
215# mail = @job_email@ = all, !skipped, !audit
216  console = all, !skipped, !saved, !audit
217  append = "@working_dir@/log" = all, !skipped, !audit
218  catalog = all, !skipped, !audit
219}
220
221
222# Default pool definition
223Pool {
224  Name = Default
225  Pool Type = Backup
226  Recycle = yes                       # Bareos can automatically recycle Volumes
227  AutoPrune = yes                     # Prune expired volumes
228  Volume Retention = 365d             # one year
229  NextPool = Full
230  Storage = File
231  Migration High Bytes = 40M
232  Migration Low Bytes = 20M
233  Migration Time = 1
234}
235
236Pool {
237  Name = Special
238  Pool Type = Backup
239  Recycle = yes                       # Bareos can automatically recycle Volumes
240  AutoPrune = yes                     # Prune expired volumes
241  Volume Retention = 365d             # one year
242  NextPool = Full
243  Storage = File
244  Migration High Bytes = 40M
245  Migration Low Bytes = 20M
246  Migration Time = 5h
247}
248
249Pool {
250  Name = Full
251  Pool Type = Backup
252  Recycle = yes                       # Bareos can automatically recycle Volumes
253  AutoPrune = yes                     # Prune expired volumes
254  Volume Retention = 365d             # one year
255  Storage = DiskChanger
256}
257
258Pool {
259  Name = Scratch
260  Recycle = yes
261  AutoPrune = yes
262  Pool Type = Scratch
263  RecyclePool = Scratch
264}
265