]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/bacula-dir.conf.regexwhere.in
ebl fix regex script name
[bacula/bacula] / regress / scripts / bacula-dir.conf.regexwhere.in
1 #
2 # Default Bacula 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 Bacula 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
15 Director {                            # define myself
16   Name = @hostname@-dir
17   DIRport = 8101                # where we listen for UA connections
18   QueryFile = "@scriptdir@/query.sql"
19   WorkingDirectory = "@working_dir@"
20   PidDirectory = "@piddir@"
21   SubSysDirectory = "@subsysdir@"
22   Maximum Concurrent Jobs = 4
23   Password = "pNvX1WiXnwv2C/F7E52LGvw6rKjbbPvu2kyuPa9pVaL3"         # Console password
24   Messages = Standard
25 }
26
27 JobDefs {
28   Name = "DefaultJob"
29   Type = Backup
30   Level = Incremental
31   Client = @hostname@-fd 
32   FileSet = FS_TESTJOB
33   Storage = File
34   Messages = Standard
35   Pool = Default
36   Priority = 10
37   Maximum Concurrent Jobs = 16
38 }
39
40 FileSet {
41  Name = FS_TESTJOB
42  Include {
43    File=</tmp/file-list
44  }
45 }
46
47 JobDefs {
48   Name = "DefaultRestore"
49   Type = Restore
50   Storage = File
51   Client=localhost-fd 
52   FileSet="FS_TESTJOB"
53   Messages = Standard
54   Pool = Default
55 }
56
57 Job {
58   Name = JobA
59   JobDefs = DefaultRestore
60   RegexWhere = !po$!old.po!
61 }
62
63 Job {
64   Name = JobB
65   JobDefs = DefaultRestore
66   add prefix = /tmp/bacula-restore
67   add suffix = .old
68   strip prefix = /build 
69 }
70
71 Job {
72   Name = JobC
73   JobDefs = DefaultRestoreWhere
74 }
75
76 JobDefs {
77   Name = "DefaultRestoreWhere"
78   Type = Restore
79   Storage = File
80   Client=localhost-fd 
81   FileSet="FS_TESTJOB"
82   Messages = Standard
83   Pool = Default
84   Where = /tmp/bacula-restores
85 }
86
87 JobDefs {
88   Name = "DefaultRestoreRegexWhere"
89   Type = Restore
90   Storage = File
91   Client=localhost-fd 
92   FileSet="FS_TESTJOB"
93   Messages = Standard
94   Pool = Default
95   RegexWhere = !po$!old.po!
96 }
97
98 JobDefs {
99   Name = "DefaultRestoreOther"
100   Type = Restore
101   Storage = File
102   Client=localhost-fd 
103   FileSet="FS_TESTJOB"
104   Messages = Standard
105   Pool = Default
106   add suffix = .old 
107 }
108
109 Job {
110   Name = Job1
111   JobDefs = DefaultRestoreWhere
112   RegexWhere = !po$!old.po!
113 }
114
115 Job {
116   Name = Job2
117   JobDefs = DefaultRestoreWhere
118   add suffix = .old
119 }
120
121 Job {
122   Name = Job3
123   JobDefs = DefaultRestoreRegexWhere
124   Where = /tmp/bacula-restore
125 }
126
127 # TODO
128 # Orphaned buffer:  localhost-dir     40 bytes buf=80e9a70 allocated at dird_conf.c:1338
129 # bacula-dir: dird.c:656 Hey something is wrong. p=0x135174768
130 Job {
131   Name = Job4
132   JobDefs = DefaultRestoreRegexWhere
133   add suffix = .old
134 }
135
136 Job {
137   Name = Job5
138   JobDefs = DefaultRestoreOther
139   Where = /tmp/bacula-restore
140 }
141
142 Job {
143   Name = Job6
144   JobDefs = DefaultRestoreOther
145   add suffix = .temp
146 }
147
148
149
150
151 # Client (File Services) to backup
152 Client {
153   Name = @hostname@-fd
154   Address = @hostname@
155   FDPort = 8102
156   Catalog = MyCatalog
157   Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
158   File Retention = 30d                # 30 days
159   Job Retention = 180d                # six months
160   AutoPrune = yes                     # Prune expired Jobs/Files
161   Maximum Concurrent Jobs = 4
162 }
163
164 # Definiton of file storage device
165 Storage {
166   Name = File
167   Address = @hostname@                # N.B. Use a fully qualified name here
168   SDPort = 8103
169   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
170   Device = FileStorage
171   Media Type = File
172   Maximum Concurrent Jobs = 4
173 }
174
175 # Generic catalog service
176 Catalog {
177   Name = MyCatalog
178   dbname = regress; user = regress; password = ""
179 }
180
181
182 Messages {
183   Name = Standard
184   console = all, !skipped, !saved
185 }
186
187 # Default pool definition
188 Pool {
189   Name = Default
190   Pool Type = Backup
191   Recycle = yes                       # Bacula can automatically recycle Volumes
192   AutoPrune = yes                     # Prune expired volumes
193   Volume Retention = 365d             # one year
194 }