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