1# Configuration for the director for testing for the broken media bug.
2# Test written by Graham Keeling
3
4Director {                            # define myself
5  Name = @hostname@-dir
6  DIRPort = @dirport@                # where we listen for UA connections
7  QueryFile = "@scriptdir@/query.sql"
8  WorkingDirectory = "@working_dir@"
9  PidDirectory = "@piddir@"
10  PluginDirectory = "@plugindir@"
11  Maximum Concurrent Jobs = 4
12  Password = "pNvX1WiXnwv2C/F7E52LGvw6rKjbbPvu2kyuPa9pVaL3"         # Console password
13  Messages = Standard
14}
15
16Job {
17  Name = "First"
18  Type = Backup
19  Client=@hostname@-fd
20  FileSet="Set1"
21  Storage = File
22  Messages = Standard
23  Pool = Pool1
24  Write Bootstrap = "@working_dir@/NightlySave.bsr"
25  Maximum Concurrent Jobs = 4
26}
27
28Job {
29  Name = "Second"
30  Type = Backup
31  Client=@hostname@-fd
32  FileSet="Set2"
33  Storage = File
34  Messages = Standard
35  Pool = Pool2
36  Write Bootstrap = "@working_dir@/NightlySave.bsr"
37  Maximum Concurrent Jobs = 4
38}
39
40# Standard Restore template, to be changed by Console program
41Job {
42  Name = "RestoreFiles"
43  Type = Restore
44  Client=@hostname@-fd
45  FileSet="Set1"
46  Storage = File
47  Messages = Standard
48  Pool = Pool1
49  Where = @tmpdir@/bareos-restores
50}
51
52
53# List of files to be backed up
54FileSet {
55  Name = "Set1"
56  Include {
57     Options { signature=MD5; }
58     File =  <@tmpdir@/file-list
59  }
60}
61
62FileSet {
63  Name = "Set2"
64  Include {
65     Options { signature=MD5; }
66     File =  <@tmpdir@/file-list
67  }
68}
69
70
71# Client (File Services) to backup
72Client {
73  Name = @hostname@-fd
74  Address = @hostname@
75  FDPort = @fdport@
76  Catalog = MyCatalog
77  Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
78  File Retention = 30d                # 30 days
79  Job Retention = 180d                # six months
80  AutoPrune = yes                     # Prune expired Jobs/Files
81  Maximum Concurrent Jobs = 4
82}
83
84# Definiton of file storage device
85Storage {
86  Name = File
87  Address = @hostname@                # N.B. Use a fully qualified name here
88  SDPort = @sdport@
89  Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
90  Device = FileStorage
91  Device = FileStorage1
92  Media Type = File
93  Maximum Concurrent Jobs = 4
94}
95
96# Generic catalog service
97Catalog {
98  Name = MyCatalog
99  dbdriver = "@db_type@"
100  dbname = @db_name@
101  user = @db_user@
102  password = "@db_password@"
103}
104
105# Reasonable message delivery -- send most everything to email address
106#  and to the console
107Messages {
108  Name = Standard
109  mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bareos regression\) %r\"
110-s \"Regression: %t %e of %c %l\" %r"
111  operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bareos regression\) %
112r\" -s \"Regression: Intervention needed for %j\" %r"
113# MailOnError = @job_email@ = all
114# operator = @job_email@ = mount
115
116  console = all, !skipped, !terminate, !restored, !audit
117#
118# WARNING! the following will create a file that you must cycle from
119#          time to time as it will grow indefinitely. However, it will
120#          also keep all your messages if the scroll off the console.
121#
122  append = "@working_dir@/log" = all, !skipped, !audit
123  catalog = all, !skipped, !audit
124}
125
126Pool {
127  Name = "Scratch"
128  Pool Type = Scratch
129  Recycle = yes           # automatically recycle Volumes
130  AutoPrune = yes         # Prune expired volumes
131  Volume Retention = 0
132  Maximum Volume Jobs = 1
133  Label Format = backup-
134  Maximum Volumes = 0     # unlimited
135  RecyclePool = Scratch
136}
137
138# Pool definitions
139Pool {
140  Name = Pool1
141  Pool Type = Backup
142  Recycle = yes                       # Bareos can automatically recycle Volumes
143  AutoPrune = yes                     # Prune expired volumes
144  Volume Retention = 365d             # one year
145  Maximum Volume Jobs = 1
146  Label Format = TestVolume
147  Maximum Volumes = 0
148  RecyclePool = Scratch
149}
150
151Pool {
152  Name = Pool2
153  Pool Type = Backup
154  Recycle = yes                       # Bareos can automatically recycle Volumes
155  AutoPrune = yes                     # Prune expired volumes
156  Volume Retention = 365d             # one year
157  Maximum Volume Jobs = 1
158  Label Format = TestVolume
159  Maximum Volumes = 0
160  RecyclePool = Scratch
161}
162