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 = 1
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   File=<@tmpdir@/file-list
43 }
44}
45
46FileSet {
47 Name = FS_FIFO
48 Include {
49   Options {
50     read fifo = yes
51   }
52   # wait 60s per fifo
53   File=@tmpdir@/fifo1
54   File=@tmpdir@/fifo2
55   File=@tmpdir@/fifo3
56 }
57}
58
59Job {
60  Name = "RUN_MAXWAITTIME"
61  JobDefs = DefaultJob
62  FileSet = FS_TESTJOB
63  MaxWaitTime = 30sec
64}
65
66Job {
67  Name = "RUN_MAXSTARTDELAY"
68  JobDefs = DefaultJob
69  FileSet = FS_TESTJOB
70  MaxStartDelay = 15sec
71  Pool = PoolA
72  Runbeforejob = "/bin/echo NEVER start this"
73}
74
75Job {
76  Name = "RUN_MAXRUNTIME"
77  JobDefs = DefaultJob
78  FileSet = FS_FIFO
79  MaxRunTime = 30 sec
80}
81
82# Client (File Services) to backup
83Client {
84  Name = @hostname@-fd
85  Address = @hostname@
86  FDPort = @fdport@
87  Catalog = MyCatalog
88  Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
89  File Retention = 30d                # 30 days
90  Job Retention = 180d                # six months
91  AutoPrune = yes                     # Prune expired Jobs/Files
92  Maximum Concurrent Jobs = 4
93}
94
95# Definiton of file storage device
96Storage {
97  Name = File
98  Address = @hostname@                # N.B. Use a fully qualified name here
99  SDPort = @sdport@
100  Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
101  Device = FileStorage
102  Media Type = File
103  Maximum Concurrent Jobs = 4
104}
105
106# Generic catalog service
107Catalog {
108  Name = MyCatalog
109  @libdbi@
110  dbdriver = "@db_type@"
111  dbname = @db_name@
112  user = @db_user@
113  password = "@db_password@"
114}
115
116
117Messages {
118  Name = Standard
119  console = all, !skipped, !saved, !audit
120  catalog = all, !skipped, !audit
121}
122
123# Default pool definition
124Pool {
125  Name = Default
126  Pool Type = Backup
127  Recycle = yes                       # Bareos can automatically recycle Volumes
128  AutoPrune = yes                     # Prune expired volumes
129  Volume Retention = 365d             # one year
130  Maximum Volume Bytes = 1M
131}
132
133
134# Default pool definition
135Pool {
136  Name = PoolA
137  Pool Type = Backup
138  Recycle = yes                       # Bareos can automatically recycle Volumes
139  AutoPrune = yes                     # Prune expired volumes
140  Volume Retention = 365d             # one year
141}
142