]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/win32-bacula-dir.conf.in
Merge branch 'master' into basejobv3
[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
40 # Standard Restore template, to be changed by Console program
41 Job {
42   Name = "RestoreFiles"
43   Type = Restore
44   Client = @win32_client@
45   FileSet="Full Set"
46   Storage = File
47   Messages = Standard
48   Pool = Default
49   Where = @tmpdir@/bacula-restores
50 }
51
52
53 # List of files to be backed up
54 FileSet {
55   Name = "Full Set"
56   Enable VSS = yes
57   Include { 
58      Options { 
59         signature=MD5; portable=no  
60 #      compression=GZIP
61      }
62      File = "@win32_file@"
63   }
64 }
65
66
67 #
68 # When to do the backups, full backup on first sunday of the month,
69 #  differential (i.e. incremental since full) every other sunday,
70 #  and incremental backups other days
71 Schedule {
72   Name = "WeeklyCycle"
73   Run = Full 1st sun at 1:05
74   Run = Differential 2nd-5th sun at 1:05
75   Run = Incremental mon-sat at 1:05
76 }
77
78 # Client (File Services) to backup
79 Client {
80   Name = @win32_client@
81   Address = @win32_addr@
82   FDPort = @win32_port@
83   Catalog = MyCatalog
84   Password = "@win32_password@"
85   File Retention = 30d                # 30 days
86   Job Retention = 180d                # six months
87   AutoPrune = yes                     # Prune expired Jobs/Files
88   Maximum Concurrent Jobs = 4
89 }
90
91
92 # Definition of File storage device
93 Storage {
94   Name = File
95   Address = @win32_store_addr@       # N.B. Use a fully qualified name here
96   SDPort = @sdport@
97   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
98   Device = FileStorage               # must be same as Device in Storage daemon
99   Media Type = File                  # must be same as MediaType in Storage daemon
100 #  AutoChanger = yes
101   Maximum Concurrent Jobs = 4
102 }
103
104
105 # Generic catalog service
106 Catalog {
107   Name = MyCatalog
108   @libdbi@
109   dbname = @db_name@; user = @db_user@; password = "@db_password@"
110 }
111
112 # Reasonable message delivery -- send most everything to email address
113 #  and to the console
114 Messages {
115   Name = Standard
116   mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: %t %e of %c %l\" %r"
117 # operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: Intervention needed for %j\" %r"
118 # MailOnError = @job_email@ = all, !terminate
119 # operator = @job_email@ = mount
120   console = all, !skipped, !terminate, !restored
121 #
122 # WARNING! the following will create a file that you must cycle from
123 #          time to time as it will grow indefinitely. However, it will
124 #          also keep all your messages if the scroll off the console.
125 #
126   append = "@working_dir@/log" = all, !skipped
127   catalog = all, !skipped
128 }
129
130 #
131 # Message delivery for daemon messages (no job).
132 Messages {
133   Name = Daemon
134   mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula regression\) %r\" -s \"Regression daemon message\" %r"
135 # mail = @job_email@ = all, !skipped            
136   console = all, !skipped, !saved
137   append = "@working_dir@/log" = all, !skipped
138   catalog = all, !skipped
139 }
140
141     
142 # Default pool definition
143 Pool {
144   Name = Default
145   Pool Type = Backup
146   Recycle = yes                       # Bacula can automatically recycle Volumes
147   AutoPrune = yes                     # Prune expired volumes
148   Volume Retention = 365d             # one year
149 }