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