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 = Default
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 = Default
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 = Default
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  Media Type = File
92  Maximum Concurrent Jobs = 4
93}
94
95# Generic catalog service
96Catalog {
97  Name = MyCatalog
98  dbdriver = "@db_type@"
99  dbname = @db_name@
100  user = @db_user@
101  password = "@db_password@"
102}
103
104# Reasonable message delivery -- send most everything to email address
105#  and to the console
106Messages {
107  Name = Standard
108  mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bareos regression\) %r\"
109-s \"Regression: %t %e of %c %l\" %r"
110  operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bareos regression\) %
111r\" -s \"Regression: Intervention needed for %j\" %r"
112# MailOnError = @job_email@ = all
113# operator = @job_email@ = mount
114
115  console = all, !skipped, !terminate, !restored, !audit
116#
117# WARNING! the following will create a file that you must cycle from
118#          time to time as it will grow indefinitely. However, it will
119#          also keep all your messages if the scroll off the console.
120#
121  append = "@working_dir@/log" = all, !skipped, !audit
122  catalog = all, !skipped, !audit
123}
124
125# Default pool definition
126Pool {
127  Name = Default
128  Pool Type = Backup
129  Recycle = yes                       # Bareos can automatically recycle Volumes
130  AutoPrune = yes                     # Prune expired volumes
131  Volume Retention = 365d             # one year
132  Maximum Volume Jobs = 1
133  Label Format = TestVolume
134  Maximum Volumes = 0
135}
136