]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/win32-bacula-dir-systemstate.conf.in
regress: Backport win32 regress 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   Type = Backup
29   Level = Incremental
30   Client = @win32_client@
31   FileSet = "SystemState Set"
32   Storage = File
33   Messages = Standard
34   Pool = Default
35   Write Bootstrap = "@working_dir@/NightlySave.bsr"
36   Maximum Concurrent Jobs = 4
37 }
38
39 Job {
40   Name = "MSSQLJob"
41   Type = Backup
42   Level = Incremental
43   Client = @win32_client@
44   FileSet = "MSSQL Set"
45   Storage = File
46   Messages = Standard
47   Pool = Default
48   Write Bootstrap = "@working_dir@/NightlySave.bsr"
49   Maximum Concurrent Jobs = 4
50 }
51
52 Job {
53   Name = "SS_SQLJob"
54   Type = Backup
55   Level = Incremental
56   Client = @win32_client@
57   FileSet = "SS_SQL Set"
58   Storage = File
59   Messages = Standard
60   Pool = Default
61   Write Bootstrap = "@working_dir@/NightlySave.bsr"
62   Maximum Concurrent Jobs = 4
63 }
64
65
66
67 # Standard Restore template, to be changed by Console program
68 Job {
69   Name = "RestoreFiles"
70   Type = Restore
71   Client = @win32_client@
72   FileSet="SystemState Set"
73   Storage = File
74   Messages = Standard
75   Pool = Default
76 # Where = /home/kern/bacula/k/regress/tmp/bacula-restores
77 }
78
79
80 # List of files to be backed up
81 FileSet {
82   Name = "SystemState Set"
83   Enable VSS = yes
84   Include { 
85      Options { 
86         signature=MD5; portable=no  
87 #      compression=GZIP
88      }
89      File = "@win32_file@"
90      Plugin = "vss:/@SYSTEMSTATE/"
91   }
92 }
93
94 # List of files to be backed up
95 FileSet {
96   Name = "MSSQL Set"
97   Enable VSS = yes
98   Include { 
99      Options { 
100         signature=MD5; portable=no  
101 #      compression=GZIP
102      }
103      File = "@win32_file@"
104      Plugin = "vss:/@MSSQL/"
105   }
106 }
107
108 FileSet {
109   Name = "SS_SQL Set"
110   Enable VSS = yes
111   Include { 
112      Options { 
113         signature=MD5; portable=no  
114      }
115      File = "@win32_file@"
116      Plugin = "vss:/@SYSTEMSTATE/"
117      Plugin = "vss:/@MSSQL/"
118   }
119 }
120
121
122 #
123 # When to do the backups, full backup on first sunday of the month,
124 #  differential (i.e. incremental since full) every other sunday,
125 #  and incremental backups other days
126 Schedule {
127   Name = "WeeklyCycle"
128   Run = Full 1st sun at 1:05
129   Run = Differential 2nd-5th sun at 1:05
130   Run = Incremental mon-sat at 1:05
131 }
132
133 # Client (File Services) to backup
134 Client {
135   Name = @win32_client@
136   Address = @win32_addr@
137   FDPort = @win32_port@
138   Catalog = MyCatalog
139   Password = "@win32_password@"
140   File Retention = 30d                # 30 days
141   Job Retention = 180d                # six months
142   AutoPrune = yes                     # Prune expired Jobs/Files
143   Maximum Concurrent Jobs = 4
144 }
145
146 # Definition of File storage device
147 Storage {
148   Name = File
149   Address = @win32_store_addr@       # N.B. Use a fully qualified name here
150   SDPort = @sdport@
151
152   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
153   Device = FileStorage               # must be same as Device in Storage daemon
154   Media Type = File                  # must be same as MediaType in Storage daemon
155 #  AutoChanger = yes
156   Maximum Concurrent Jobs = 4
157 }
158
159
160 # Generic catalog service
161 Catalog {
162   Name = MyCatalog
163   
164   dbname = regress; user = regress; 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 }