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