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#  For Bareos release 1.39.27 (24 October 2006) -- debian testing/unstable
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 = @hostname@-dir
17  DIRPort = @dirport@                # where we listen for UA connections
18  QueryFile = "@scriptdir@/query.sql"
19  WorkingDirectory = "@working_dir@"
20  PidDirectory = "@piddir@"
21  Maximum Concurrent Jobs = 4
22  Password = "pNvX1WiXnwv2C/F7E52LGvw6rKjbbPvu2kyuPa9pVaL3"         # Console password
23  Messages = Standard
24}
25
26JobDefs {
27  Name = "DefaultJob"
28  Type = Backup
29  Level = Incremental
30  Client = @hostname@-fd
31  FileSet = FS_TESTJOB
32  Storage = File
33  Messages = Standard
34  Pool = Default
35  Priority = 10
36  Maximum Concurrent Jobs = 16
37}
38
39FileSet {
40 Name = FS_TESTJOB
41 Include {
42   Options {
43    Signature = MD5
44    Verify = mc
45    Accurate = mcs5
46   }
47   File=<@tmpdir@/file-list
48 }
49}
50
51FileSet {
52 Name = FS_TESTJOB2
53 Include {
54   Options {
55    Signature = MD5
56    Verify = mc
57    strippath=1
58   }
59   File=<@tmpdir@/file-list
60 }
61}
62
63FileSet {
64 Name = FS_TESTJOB_ADVANCE
65 Include {
66   Options {
67    Signature = MD5
68    Verify = mcpgu
69   }
70   File=<@tmpdir@/file-list
71 }
72}
73
74Job {
75  Accurate = yes
76  Name = backup
77  JobDefs = DefaultJob
78  FileSet = FS_TESTJOB
79}
80
81Job {
82  Accurate = yes
83  Name = backup_advance
84  JobDefs = DefaultJob
85  FileSet = FS_TESTJOB_ADVANCE
86}
87
88
89# Standard Restore template, to be changed by Console program
90Job {
91  Name = "RestoreFiles"
92  Type = Restore
93  Client=@hostname@-fd
94  FileSet= FS_TESTJOB
95  Storage = File
96  Messages = Standard
97  Pool = Default
98  Where = @tmpdir@/bareos-restores
99}
100
101# Client (File Services) to backup
102Client {
103  Name = @hostname@-fd
104  Address = @hostname@
105  FDPort = @fdport@
106  Catalog = MyCatalog
107  Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
108  File Retention = 30d                # 30 days
109  Job Retention = 180d                # six months
110  AutoPrune = yes                     # Prune expired Jobs/Files
111  Maximum Concurrent Jobs = 4
112}
113
114# Definiton of file storage device
115Storage {
116  Name = File
117  Address = @hostname@                # N.B. Use a fully qualified name here
118  SDPort = @sdport@
119  Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
120  Device = FileStorage
121  Media Type = File
122  Maximum Concurrent Jobs = 4
123}
124
125# Generic catalog service
126Catalog {
127  Name = MyCatalog
128  @libdbi@
129  dbdriver = "@db_type@"
130  dbname = @db_name@
131  user = @db_user@
132  password = "@db_password@"
133}
134
135
136Messages {
137  Name = Standard
138  console = all, !skipped, saved, !audit
139  catalog = all, !skipped, !audit
140}
141
142# Default pool definition
143Pool {
144  Name = Default
145  Pool Type = Backup
146  Recycle = yes                       # Bareos can automatically recycle Volumes
147  AutoPrune = yes                     # Prune expired volumes
148  Volume Retention = 365d             # one year
149}
150Pool {
151  Name = Other
152  Pool Type = Backup
153  Recycle = yes                       # Bareos can automatically recycle Volumes
154  AutoPrune = yes                     # Prune expired volumes
155  Volume Retention = 365d             # one year
156}
157