1# TODO
2# Orphaned buffer:  localhost-dir     40 bytes buf=80e9a70 allocated at dird_conf.c:1338
3# bareos-dir: dird.c:656 Hey something is wrong. p=0x135174768
4
5Director {                            # define myself
6  Name = @hostname@-dir
7  DIRPort = @dirport@                # where we listen for UA connections
8  QueryFile = "@scriptdir@/query.sql"
9  WorkingDirectory = "@working_dir@"
10  PidDirectory = "@piddir@"
11  Maximum Concurrent Jobs = 4
12  Password = "pNvX1WiXnwv2C/F7E52LGvw6rKjbbPvu2kyuPa9pVaL3"         # Console password
13  Messages = Standard
14}
15
16Job {
17  Name = "backup"
18  Type = Backup
19  Level = Full
20  Client = @hostname@-fd
21  FileSet = FS_TESTJOB
22  Storage = File
23  Messages = Standard
24  Pool = Default
25  Priority = 10
26  Maximum Concurrent Jobs = 16
27}
28
29FileSet {
30 Name = FS_TESTJOB
31 Include {
32   File=<@tmpdir@/file-list
33 }
34}
35
36JobDefs {
37  Name = "DefaultRestore"
38  Type = Restore
39  Storage = File
40  Client=@hostname@-fd
41  FileSet="FS_TESTJOB"
42  Messages = Standard
43  Pool = Default
44  Replace = Always
45}
46
47Job {
48  Name = JobA
49  JobDefs = DefaultRestore
50  RegexWhere = !po$!old.po!
51}
52
53Job {
54  Name = JobB
55  JobDefs = DefaultRestore
56  add prefix = @tmpdir@/bareos-restore
57  add suffix = .old
58  strip prefix = /build
59}
60
61Job {
62  Name = JobC
63  JobDefs = DefaultRestore
64  Where = @tmpdir@/bareos-restore
65}
66
67Job {
68  Name = JobD
69  JobDefs = DefaultRestore
70  RegexWhere = "doesnt work"
71}
72
73Job {
74  Name = JobE
75  JobDefs = DefaultRestore
76  RegexWhere = "/BUILD/tmp/i,!/po/!/!"
77}
78
79Job {
80  Name = JobF
81  JobDefs = DefaultRestore
82  RegexWhere = "/something witch doesn't match/tmp/i"
83}
84
85Job {
86  Name = JobG
87  JobDefs = DefaultRestore
88  Where = @tmpdir@/bareos-restore
89}
90
91
92# Client (File Services) to backup
93Client {
94  Name = @hostname@-fd
95  Address = @hostname@
96  FDPort = @fdport@
97  Catalog = MyCatalog
98  Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
99  File Retention = 30d                # 30 days
100  Job Retention = 180d                # six months
101  AutoPrune = yes                     # Prune expired Jobs/Files
102  Maximum Concurrent Jobs = 4
103}
104
105# Definiton of file storage device
106Storage {
107  Name = File
108  Address = @hostname@                # N.B. Use a fully qualified name here
109  SDPort = @sdport@
110  Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
111  Device = FileStorage
112  Media Type = File
113  Maximum Concurrent Jobs = 4
114}
115
116# Generic catalog service
117Catalog {
118  Name = MyCatalog
119  @libdbi@
120  dbdriver = "@db_type@"
121  dbname = @db_name@
122  user = @db_user@
123  password = "@db_password@"
124}
125
126
127Messages {
128  Name = Standard
129  console = all, !skipped, !saved, !audit
130  catalog = all, !skipped, !audit
131}
132
133# Default pool definition
134Pool {
135  Name = Default
136  Pool Type = Backup
137  Recycle = yes                       # Bareos can automatically recycle Volumes
138  AutoPrune = yes                     # Prune expired volumes
139  Volume Retention = 365d             # one year
140}
141