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