]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/test-bacula-dir.conf.in
3fee9d8476d1aa28686b02cfebdf99b6c24608a0
[bacula/bacula] / regress / scripts / test-bacula-dir.conf.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.30 (12 April 2003) -- redhat 7.3
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 = rufus-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 = 1
23   Password = "pNvX1WiXnwv2C/F7E52LGvw6rKjbbPvu2kyuPa9pVaL3"         # Console password
24   Messages = Standard
25 }
26
27 #
28 # Define the main nightly save backup job
29 #   By default, this job will back up to disk in /tmp
30 Job {
31   Name = "NightlySave"
32   Type = Backup
33   Client=rufus-fd 
34   FileSet="Full Set"
35   Storage = File
36   Messages = Standard
37   Pool = Default
38   Write Bootstrap = "@working_dir@/NightlySave.bsr"
39 }
40
41 Job {
42   Name = "VerifyVolume"
43   Type = Verify
44   Level = VolumeToCatalog
45   Client=rufus-fd 
46   FileSet="Full Set"
47   Storage = File
48   Messages = Standard
49   Pool = Default
50   Write Bootstrap = "@working_dir@/NightlySave.bsr"
51 }
52
53
54 Job {
55   Name = "SparseTest"
56   Type = Backup
57   Client=rufus-fd 
58   FileSet="SparseSet"
59   Storage = File
60   Messages = Standard
61   Pool = Default
62   Write Bootstrap = "@working_dir@/NightlySave.bsr"
63 }
64
65 Job {
66   Name = "CompressedTest"
67   Type = Backup
68   Client=rufus-fd 
69   FileSet="CompressedSet"
70   Storage = File
71   Messages = Standard
72   Pool = Default
73   Write Bootstrap = "@working_dir@/NightlySave.bsr"
74 }
75
76 Job {
77   Name = "SparseCompressedTest"
78   Type = Backup
79   Client=rufus-fd 
80   FileSet="SparseCompressedSet"
81   Storage = File
82   Messages = Standard
83   Pool = Default
84   Write Bootstrap = "@working_dir@/NightlySave.bsr"
85 }
86
87
88 # Backup the catalog database (after the nightly save)
89 Job {
90   Name = "BackupCatalog"
91   Type = Backup
92   Client=rufus-fd 
93   FileSet="Catalog"
94 #  Schedule = "WeeklyCycleAfterBackup"
95   Storage = File
96   Messages = Standard
97   Pool = Default
98   # This creates an ASCII copy of the catalog
99   RunBeforeJob = "@sbindir@/make_catalog_backup -u bacula"
100   # This deletes the copy of the catalog
101   RunAfterJob  = "@sbindir@/delete_catalog_backup"
102   Write Bootstrap = "@working_dir@/BackupCatalog.bsr"
103 }
104
105 # Standard Restore template, to be changed by Console program
106 Job {
107   Name = "RestoreFiles"
108   Type = Restore
109   Client=rufus-fd 
110   FileSet="Full Set"
111   Storage = File
112   Messages = Standard
113   Pool = Default
114   Where = /tmp/bacula-restores
115 }
116
117
118 # List of files to be backed up
119 FileSet {
120   Name = "Full Set"
121   Include = signature=MD5 { 
122     </tmp/file-list
123   }
124 }
125
126 FileSet {
127   Name = "SparseSet"
128   Include = signature=MD5 sparse=yes { 
129     </tmp/file-list
130   }
131 }
132
133 FileSet {
134   Name = "CompressedSet"
135   Include = signature=MD5 compression=GZIP { 
136     </tmp/file-list
137   }
138 }
139
140 FileSet {
141   Name = "SparseCompressedSet"
142   Include = signature=MD5 compression=GZIP { 
143     </tmp/file-list
144   }
145 }
146
147
148
149 #
150 # When to do the backups, full backup on first sunday of the month,
151 #  differential (i.e. incremental since full) every other sunday,
152 #  and incremental backups other days
153 Schedule {
154   Name = "WeeklyCycle"
155   Run = Full 1st sun at 1:05
156   Run = Differential 2nd-5th sun at 1:05
157   Run = Incremental mon-sat at 1:05
158 }
159
160 # This schedule does the catalog. It starts after the WeeklyCycle
161 Schedule {
162   Name = "WeeklyCycleAfterBackup"
163   Run = Full sun-sat at 1:10
164 }
165
166 # This is the backup of the catalog
167 FileSet {
168   Name = "Catalog"
169   Include = signature=MD5 {
170      /home/kern/bacula/regress/bin/working/bacula.sql
171   }
172 }
173
174 # Client (File Services) to backup
175 Client {
176   Name = rufus-fd
177   Address = rufus
178   FDPort = 8102
179   Catalog = MyCatalog
180   Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
181   File Retention = 30d                # 30 days
182   Job Retention = 180d                # six months
183   AutoPrune = yes                     # Prune expired Jobs/Files
184 }
185
186 # Definiton of file storage device
187 Storage {
188   Name = File
189   Address = rufus                # N.B. Use a fully qualified name here
190   SDPort = 8103
191   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
192   Device = FileStorage
193   Media Type = File
194 }
195
196 # Definition of DLT tape storage device
197 #Storage {
198 #  Name = DLTDrive
199 #  Address = rufus                # N.B. Use a fully qualified name here
200 #  SDPort = 8103
201 #  Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
202 #  Device = "HP DLT 80"                # must be same as Device in Storage daemon
203 #  Media Type = DLT8000                # must be same as MediaType in Storage daemon
204 #}
205
206 # Definition of DDS tape storage device
207 #Storage {
208 #  Name = SDT-10000
209 #  Address = rufus                # N.B. Use a fully qualified name here
210 #  SDPort = 8103
211 #  Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
212 #  Device = SDT-10000                  # must be same as Device in Storage daemon
213 #  Media Type = DDS-4                  # must be same as MediaType in Storage daemon
214 #}
215
216 # Definition of 8mm tape storage device
217 #Storage {
218 #  Name = "8mmDrive"
219 #  Address = rufus                # N.B. Use a fully qualified name here
220 #  SDPort = 8103
221 #  Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
222 #  Device = "Exabyte 8mm"
223 #  MediaType = "8mm"
224 #}
225
226
227 # Generic catalog service
228 Catalog {
229   Name = MyCatalog
230   dbname = bacula; user = bacula; password = ""
231 }
232
233 # Reasonable message delivery -- send most everything to email address
234 #  and to the console
235 Messages {
236   Name = Standard
237   mailcommand = "@sbindir@/smtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula: %t %e of %c %l\" %r"
238   operatorcommand = "@sbindir@/smtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula: Intervention needed for %j\" %r"
239   MailOnError = kern+ok@sibbald.com = all
240   operator = kern+ok@sibbald.com = mount
241   console = all, !skipped
242 #
243 # WARNING! the following will create a file that you must cycle from
244 #          time to time as it will grow indefinitely. However, it will
245 #          also keep all your messages if the scroll off the console.
246 #
247   append = "@working_dir@/log" = all, !skipped
248 }
249     
250 # Default pool definition
251 Pool {
252   Name = Default
253   Pool Type = Backup
254   Recycle = yes                       # Bacula can automatically recycle Volumes
255   AutoPrune = yes                     # Prune expired volumes
256   Volume Retention = 365d             # one year
257   Accept Any Volume = yes             # write on any volume in the pool
258 }