]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/bacula-dir.conf.errors.in
Make out of freespace non-fatal for removable devices -- i.e. behaves like tape
[bacula/bacula] / regress / scripts / bacula-dir.conf.errors.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 = @dirport@                # 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   fdconnecttimeout = 20
26   sdconnecttimeout = 20
27 }
28
29 JobDefs {
30   Name = "DefaultJob"
31   Type = Backup
32   Level = Incremental
33   client=@hostname@-fd 
34   Storage = File
35   Messages = Standard
36   Pool = Default
37   Priority = 10
38   Maximum Concurrent Jobs = 16
39 }
40
41 Job {
42   Name = "LOCAL_INC_ERR"
43   JobDefs = DefaultJob
44   FileSet = FS_LOCAL_INC_ERR
45   RunBeforeJob = "/bin/echo RunBeforeJob"
46   ClientRunBeforeJob = "/bin/echo ClientRunBeforeJob"
47   Run After Job = "/bin/echo RunAfterJob"
48   ClientRunAfterJob = "/bin/echo ClientRunAfterJob"
49 }
50
51 FileSet {
52  Name = FS_TEST
53  Include {
54    File=<@tmpdir@/file-list
55  }
56 }
57
58 FileSet {
59  Name = FS_REMOTE_INC_ERR
60  Include {
61    File="\<@tmpdir@/path/to/nowhere"
62  }
63 }
64
65 Job {
66   Name = "REMOTE_INC_ERR"
67   JobDefs = DefaultJob
68   FileSet = FS_REMOTE_INC_ERR
69   RunBeforeJob = "/bin/echo RunBeforeJob"
70   ClientRunBeforeJob = "/bin/echo ClientRunBeforeJob"
71   Run After Job = "/bin/echo RunAfterJob"
72   ClientRunAfterJob = "/bin/echo ClientRunAfterJob"
73 }
74
75 FileSet {
76  Name = FS_LOCAL_INC_ERR
77  Include { File=<@tmpdir@/path/to/nowhere }
78 }
79
80 FileSet {
81  Name = FS_LOCAL_EXCL_ERR
82  Include { File=<@tmpdir@/file-list }
83  Exclude {
84    File=<@tmpdir@/path/to/nowhere
85  }
86 }
87
88 Job {
89   Name = "LOCAL_EXCL_ERR"
90   JobDefs = DefaultJob
91   FileSet = FS_LOCAL_EXCL_ERR
92   RunBeforeJob = "/bin/echo RunBeforeJob"
93   ClientRunBeforeJob = "/bin/echo ClientRunBeforeJob"
94   Run After Job = "/bin/echo RunAfterJob"
95   ClientRunAfterJob = "/bin/echo ClientRunAfterJob"
96 }
97
98
99 FileSet {
100  Name = FS_REMOTE_EXCL_ERR
101  Include { File=<@tmpdir@/file-list }
102  Exclude {
103    File="\<@tmpdir@/path/to/nowhere"
104  }
105 }
106
107 Job {
108   Name = "REMOTE_EXCL_ERR"
109   JobDefs = DefaultJob
110   FileSet = FS_REMOTE_EXCL_ERR
111   RunBeforeJob = "/bin/echo RunBeforeJob"
112   ClientRunBeforeJob = "/bin/echo ClientRunBeforeJob"
113   Run After Job = "/bin/echo RunAfterJob"
114   ClientRunAfterJob = "/bin/echo ClientRunAfterJob"
115 }
116 Job {
117   Name = "REMOTE_RUNSCRIPT_ERR"
118   JobDefs = DefaultJob
119   FileSet = FS_TEST
120   RunBeforeJob = "/bin/echo RunBeforeJob"
121   ClientRunBeforeJob = "/bin/false"
122   Run After Job = "/bin/echo RunAfterJob"
123   ClientRunAfterJob = "/bin/echo ClientRunAfterJob"
124 }
125 Job {
126   Name = "LOCAL_RUNSCRIPT_ERR"
127   JobDefs = DefaultJob
128   FileSet = FS_TEST
129   RunBeforeJob = "/bin/false"
130   ClientRunBeforeJob = "/bin/echo ClientRunBeforeJob"
131   Run After Job = "/bin/echo RunAfterJob"
132   ClientRunAfterJob = "/bin/echo ClientRunAfterJob"
133 }
134 Job {
135   Name = "CLIENT_CONNECT_TIMEOUT"
136   JobDefs = DefaultJob
137   Client = @hostname@2-fd
138   FileSet = FS_TEST
139   RunBeforeJob = "/bin/echo RunBeforeJob"
140   ClientRunBeforeJob = "/bin/echo ClientRunBeforeJob"
141   Run After Job = "/bin/echo RunAfterJob"
142   ClientRunAfterJob = "/bin/echo ClientRunAfterJob"
143 }
144 Job {
145   Name = "SD_CONNECT_TIMEOUT"
146   JobDefs = DefaultJob
147   Client = @hostname@-fd
148   FileSet = FS_TEST
149   Storage = File2
150   RunBeforeJob = "/bin/echo RunBeforeJob"
151   ClientRunBeforeJob = "/bin/echo ClientRunBeforeJob"
152   Run After Job = "/bin/echo RunAfterJob"
153   ClientRunAfterJob = "/bin/echo ClientRunAfterJob"
154 }
155
156 # Client (File Services) to backup
157 Client {
158   Name = @hostname@-fd
159   Address = @hostname@
160   FDPort = @fdport@
161   Catalog = MyCatalog
162   Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
163   File Retention = 30d                # 30 days
164   Job Retention = 180d                # six months
165   AutoPrune = yes                     # Prune expired Jobs/Files
166   Maximum Concurrent Jobs = 4
167 }
168
169 # Client (File Services) to backup
170 Client {
171   Name = @hostname@2-fd
172   Address = @hostname@
173   FDPort = 7102
174   Catalog = MyCatalog
175   Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
176   File Retention = 30d                # 30 days
177   Job Retention = 180d                # six months
178   AutoPrune = yes                     # Prune expired Jobs/Files
179   Maximum Concurrent Jobs = 4
180 }
181
182 # Definiton of file storage device
183 Storage {
184   Name = File
185   Address = @hostname@                # N.B. Use a fully qualified name here
186   SDPort = @sdport@
187   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
188   Device = FileStorage
189   Media Type = File
190   Maximum Concurrent Jobs = 4
191 }
192
193 # Definiton of file storage device not responding
194 Storage {
195   Name = File2
196   Address = @hostname@                # N.B. Use a fully qualified name here
197   SDPort = 7103
198   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
199   Device = FileStorage
200   Media Type = File2
201   Maximum Concurrent Jobs = 4
202 }
203
204 # Generic catalog service
205 Catalog {
206   Name = MyCatalog
207   @libdbi@
208   dbname = @db_name@; user = @db_user@; password = "@db_password@"
209 }
210
211
212 Messages {
213   Name = Standard
214   console = all, !skipped, !saved
215   catalog = all, !skipped
216 }
217
218 # Default pool definition
219 Pool {
220   Name = Default
221   Pool Type = Backup
222   Recycle = yes                       # Bacula can automatically recycle Volumes
223   AutoPrune = yes                     # Prune expired volumes
224   Volume Retention = 365d             # one year
225 }