]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/win32-bacula-dir-systemstate.conf.in
regress: use $conf instead of $bin for binaries test
[bacula/bacula] / regress / scripts / win32-bacula-dir-systemstate.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 #
9 #
10
11 Director {                            # define myself
12   Name = @hostname@-dir
13   DIRPort = @dirport@                # where we listen for UA connections
14   QueryFile = "@scriptdir@/query.sql"
15   WorkingDirectory = "@working_dir@"
16   PidDirectory = "@piddir@"
17   Maximum Concurrent Jobs = 100
18   Password = "pNvX1WiXnwv2C/F7E52LGvw6rKjbbPvu2kyuPa9pVaL3"
19   Messages = Daemon
20   FD Connect Timeout = 2min
21 }
22
23 #
24 # Define the main nightly save backup job
25 #   By default, this job will back up to disk in /home/kern/bacula/k/regress/tmp
26 Job {
27   Name = "SystemstateJob"
28   Accurate = yes
29   Type = Backup
30   Level = Incremental
31   Client = @win32_client@
32   FileSet = "SystemState Set"
33   Storage = File
34   Messages = Standard
35   Pool = Default
36   Write Bootstrap = "@working_dir@/NightlySave.bsr"
37   Maximum Concurrent Jobs = 4
38 }
39
40 Job {
41   Name = "MSSQLJob"
42   Type = Backup
43   Level = Incremental
44   Client = @win32_client@
45   FileSet = "MSSQL Set"
46   Storage = File
47   Messages = Standard
48   Pool = Default
49   Write Bootstrap = "@working_dir@/NightlySave.bsr"
50   Maximum Concurrent Jobs = 4
51 }
52
53 Job {
54   Name = "SS_SQLJob"
55   Accurate = yes
56   Type = Backup
57   Level = Incremental
58   Client = @win32_client@
59   FileSet = "SS_SQL Set"
60   Storage = File
61   Messages = Standard
62   Pool = Default
63   Write Bootstrap = "@working_dir@/NightlySave.bsr"
64   Maximum Concurrent Jobs = 4
65 }
66
67
68
69 # Standard Restore template, to be changed by Console program
70 Job {
71   Name = "RestoreFiles"
72   Type = Restore
73   Client = @win32_client@
74   FileSet="SystemState Set"
75   Storage = File
76   Messages = Standard
77   Pool = Default
78 # Where = /home/kern/bacula/k/regress/tmp/bacula-restores
79 }
80
81
82 # List of files to be backed up
83 FileSet {
84   Name = "SystemState Set"
85   Enable VSS = yes
86   Include { 
87      Options { 
88         signature=MD5; portable=no  
89 #      compression=GZIP
90      }
91      File = "@win32_file@"
92      Plugin = "vss:/@SYSTEMSTATE/"
93   }
94 }
95
96 # List of files to be backed up
97 FileSet {
98   Name = "MSSQL Set"
99   Enable VSS = yes
100   Include { 
101      Options { 
102         signature=MD5; portable=no  
103 #      compression=GZIP
104      }
105      File = "@win32_file@"
106      Plugin = "vss:/@MSSQL/"
107   }
108 }
109
110 FileSet {
111   Name = "SS_SQL Set"
112   Enable VSS = yes
113   Include { 
114      Options { 
115         signature=MD5; portable=no  
116      }
117      File = "@win32_file@"
118      Plugin = "vss:/@SYSTEMSTATE/"
119      Plugin = "vss:/@MSSQL/"
120   }
121 }
122
123
124 #
125 # When to do the backups, full backup on first sunday of the month,
126 #  differential (i.e. incremental since full) every other sunday,
127 #  and incremental backups other days
128 Schedule {
129   Name = "WeeklyCycle"
130   Run = Full 1st sun at 1:05
131   Run = Differential 2nd-5th sun at 1:05
132   Run = Incremental mon-sat at 1:05
133 }
134
135 # Client (File Services) to backup
136 Client {
137   Name = @win32_client@
138   Address = @win32_addr@
139   FDPort = @win32_port@
140   Catalog = MyCatalog
141   Password = "@win32_password@"
142   File Retention = 30d                # 30 days
143   Job Retention = 180d                # six months
144   AutoPrune = yes                     # Prune expired Jobs/Files
145   Maximum Concurrent Jobs = 4
146 }
147
148 # Definition of File storage device
149 Storage {
150   Name = File
151   Address = @win32_store_addr@       # N.B. Use a fully qualified name here
152   SDPort = @sdport@
153
154   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
155   Device = FileStorage               # must be same as Device in Storage daemon
156   Media Type = File                  # must be same as MediaType in Storage daemon
157 #  AutoChanger = yes
158   Maximum Concurrent Jobs = 4
159 }
160
161
162 # Generic catalog service
163 Catalog {
164   Name = MyCatalog
165   dbname = @db_name@; user = @db_user@; password = "@db_password@"
166 }
167
168 # Reasonable message delivery -- send most everything to email address
169 #  and to the console
170 Messages {
171   Name = Standard
172   mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: %t %e of %c %l\" %r"
173 # operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: Intervention needed for %j\" %r"
174 # MailOnError = kern@sibbald.com = all, !terminate
175 # operator = kern@sibbald.com = mount
176   console = all, !skipped, !terminate, !restored
177 #
178 # WARNING! the following will create a file that you must cycle from
179 #          time to time as it will grow indefinitely. However, it will
180 #          also keep all your messages if the scroll off the console.
181 #
182   append = "@working_dir@/log" = all, !skipped
183   catalog = all, !skipped
184 }
185
186 #
187 # Message delivery for daemon messages (no job).
188 Messages {
189   Name = Daemon
190   mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression daemon message\" %r"
191 # mail = kern@sibbald.com = all, !skipped            
192   console = all, !skipped, !saved
193   append = "@working_dir@/log" = all, !skipped
194   catalog = all, !skipped
195 }
196
197     
198 # Default pool definition
199 Pool {
200   Name = Default
201   Pool Type = Backup
202   Recycle = yes                       # Bacula can automatically recycle Volumes
203   AutoPrune = yes                     # Prune expired volumes
204   Volume Retention = 365d             # one year
205 }