]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/bacula-dir-strip.conf.in
dffbbbaeb1d58773d8843b3491c3fb57beed03ed
[bacula/bacula] / regress / scripts / bacula-dir-strip.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.33
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   Maximum Concurrent Jobs = 4
22   Password = "pNvX1WiXnwv2C/F7E52LGvw6rKjbbPvu2kyuPa9pVaL3"
23   Messages = Daemon
24 }
25
26 #
27 # Define the main nightly save backup job
28 #   By default, this job will back up to disk in @tmpdir@
29 Job {
30   Name = "NightlySave"
31   Type = Backup
32   Client=@hostname@-fd 
33   FileSet="Full Set"
34   Storage = FileStorage
35   Messages = Standard
36   Pool = Default
37   Write Bootstrap = "@working_dir@/NightlySave.bsr"
38   Maximum Concurrent Jobs = 4
39   SpoolData = yes
40 # Prefer Mounted Volumes = no
41 }
42
43 Job {
44   Name = "NightlySave1"
45   Type = Backup
46   Client=@hostname@-fd 
47   FileSet="Full Set"
48   Storage = FileStorage
49   Messages = Standard
50   Pool = Default
51   Write Bootstrap = "@working_dir@/NightlySave.bsr"
52   Maximum Concurrent Jobs = 4
53   SpoolData = yes
54 # Prefer Mounted Volumes = no
55   Client Run Before Job = "sleep 10"
56 }
57
58 Job {
59   Name = "NightlySave2"
60   Type = Backup
61   Client=@hostname@-fd 
62   FileSet="Full Set"
63   Storage = FileStorage
64   Messages = Standard
65   Pool = Default
66   Write Bootstrap = "@working_dir@/NightlySave.bsr"
67   Maximum Concurrent Jobs = 4
68   SpoolData = yes
69 # Prefer Mounted Volumes = no
70 }
71
72 Job {
73   Name = "VerifyTape"
74   Type = Verify
75   Level = VolumeToCatalog
76   Client=@hostname@-fd 
77   FileSet="Verify Set"
78   Storage = FileStorage
79   Messages = Standard
80   Pool = Default
81   Write Bootstrap = "@working_dir@/NightlySave.bsr"
82   Maximum Concurrent Jobs = 4
83   SpoolData = yes
84 # Prefer Mounted Volumes = no
85 }
86
87
88
89
90 # Standard Restore template, to be changed by Console program
91 Job {
92   Name = "RestoreFiles"
93   Type = Restore
94   Client=@hostname@-fd 
95   FileSet="Full Set"
96   Storage = FileStorage
97   Messages = Standard
98   Pool = Default
99   Where = @tmpdir@/bacula-restores
100 }
101
102
103 # List of files to be backed up
104 FileSet {
105   Name = "Full Set"
106   Include { Options { 
107       strippath = 3
108       compression = gzip
109     }
110     File =  <@tmpdir@/file-list
111   }
112   Include {
113 #    File = /usr/include
114   }
115 }
116
117 FileSet {
118   Name = "Verify Set"
119   Include { 
120     Options { 
121        signature=MD5
122        verify=pins1
123     }
124     File =  "<@tmpdir@/file-list"
125   }
126 }
127
128
129
130 #
131 # When to do the backups, full backup on first sunday of the month,
132 #  differential (i.e. incremental since full) every other sunday,
133 #  and incremental backups other days
134 Schedule {
135   Name = "WeeklyCycle"
136   Run = Full 1st sun at 1:05
137   Run = Differential 2nd-5th sun at 1:05
138   Run = Incremental mon-sat at 1:05
139 }
140
141 # Client (File Services) to backup
142 Client {
143   Name = @hostname@-fd
144   Address = @hostname@
145   FDPort = @fdport@
146   Catalog = MyCatalog
147   Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
148   File Retention = 30d                # 30 days
149   Job Retention = 180d                # six months
150   AutoPrune = yes                     # Prune expired Jobs/Files
151   Maximum Concurrent Jobs = 4
152 }
153
154 # Definition of DDS tape storage device
155 Storage {
156   Name = FileStorage
157   Address = @hostname@                # N.B. Use a fully qualified name here
158   SDPort = @sdport@
159   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
160   Device = FileStorage                # must be same as Device in Storage daemon
161   Media Type = File                   # must be same as MediaType in Storage daemon
162   Maximum Concurrent Jobs = 4
163 # Autochanger = yes
164 }
165
166
167 # Generic catalog service
168 Catalog {
169   Name = MyCatalog
170   @libdbi@
171   dbname = @db_name@; user = @db_user@; password = "@db_password@"
172 }
173
174 # Reasonable message delivery -- send most everything to email address
175 #  and to the console
176 Messages {
177   Name = Standard
178   mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula Regression Job %j\) %r\" -s \"Regression: %t %e of %c %l\" %r"
179   operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula Regression Job %j\) %r\" -s \"Regression: Intervention needed for %j\" %r"
180 # MailOnError = @job_email@ = all, !terminate
181 # operator = @job_email@ = mount
182   console = all, !skipped, !terminate, !restored
183 #
184 # WARNING! the following will create a file that you must cycle from
185 #          time to time as it will grow indefinitely. However, it will
186 #          also keep all your messages if the scroll off the console.
187 #
188   append = "@working_dir@/log" = all, !skipped
189   catalog = all, !skipped
190 }
191
192 #
193 # Message delivery for daemon messages (no job).
194 Messages {
195   Name = Daemon
196   mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula regression\) %r\" -s \"Regression daemon message\" %r"
197 # mail = @job_email@ = all, !skipped            
198   console = all, !skipped, !saved
199   append = "@working_dir@/log" = all, !skipped
200 }
201
202     
203 # Default pool definition
204 Pool {
205   Name = Default
206   Pool Type = Backup
207   Recycle = yes                       # Bacula can automatically recycle Volumes
208   AutoPrune = yes                     # Prune expired volumes
209   Volume Retention = 365d             # one year
210 }
211
212 Pool {
213   Name = Full
214   Pool Type = Backup
215   Recycle = yes                       # Bacula can automatically recycle Volumes
216   AutoPrune = yes                     # Prune expired volumes
217   Volume Retention = 365d             # one year
218 }
219
220 Pool {
221   Name = Inc
222   Pool Type = Backup
223   Recycle = yes                       # Bacula can automatically recycle Volumes
224   AutoPrune = yes                     # Prune expired volumes
225   Volume Retention = 365d             # one year
226 }
227
228 Pool {
229   Name = Scratch
230   Pool Type = Backup
231   Recycle = yes                       # Bacula can automatically recycle Volumes
232   AutoPrune = yes                     # Prune expired volumes
233   Volume Retention = 365d             # one year
234 }