]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/win32-bacula-dir-tape.conf.in
regress: Improve debug in base-job test
[bacula/bacula] / regress / scripts / win32-bacula-dir-tape.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 1.39.23
9 #
10 #  You might also want to change the default email address
11 #   from root to your address.  See the "mail" and "operator"
12 #   directives in the Messages resource.
13 #
14
15 Director {                            # define myself
16   Name = @hostname@-dir
17   DIRPort = @dirport@                # where we listen for UA connections
18   QueryFile = "@scriptdir@/query.sql"
19   WorkingDirectory = "@working_dir@"
20   PidDirectory = "@piddir@"
21   Maximum Concurrent Jobs = 4
22   Password = "pNvX1WiXnwv2C/F7E52LGvw6rKjbbPvu2kyuPa9pVaL3"
23   Messages = Daemon
24 }
25
26 #
27 # Define the main nightly save backup job
28 #   By default, this job will back up to disk in @tmpdir@
29 Job {
30   Name = "NightlySave"
31   Type = Backup
32   Client=@win32_client@
33   FileSet="Full Set"
34   Storage = tape
35   Messages = Standard
36   Pool = Default
37   Write Bootstrap = "@working_dir@/NightlySave.bsr"
38   Maximum Concurrent Jobs = 4
39   SpoolData = yes
40 }
41
42
43 # Standard Restore template, to be changed by Console program
44 Job {
45   Name = "RestoreFiles"
46   Type = Restore
47   Client=@win32_client@
48   FileSet="Full Set"
49   Storage = tape
50   Messages = Standard
51   Pool = Default
52   Where = @tmpdir@/bacula-restores
53 }
54
55
56 # List of files to be backed up
57 FileSet {
58   Name = "Full Set"
59   Enable VSS = yes
60   Include { Options { signature=MD5; portable=no  
61       compression=GZIP }
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 Client {
92   Name = localhost-fd
93   Address = localhost
94   FDPort = @fdport@
95   Catalog = MyCatalog
96   Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"
97   File Retention = 30d                # 30 days
98   Job Retention = 180d                # six months
99   AutoPrune = yes                     # Prune expired Jobs/Files
100   Maximum Concurrent Jobs = 4
101 }
102
103
104 # Definition of DDS tape storage device
105 Storage {
106   Name = tape
107   Address = @hostname@-sd            # N.B. Use a fully qualified name here
108   SDPort = @sdport@
109   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
110   Device = tape                      # must be same as Device in Storage daemon
111   Media Type = tape                  # must be same as MediaType in Storage daemon
112   AutoChanger = yes
113   Maximum Concurrent Jobs = 4
114 }
115
116
117 # Generic catalog service
118 Catalog {
119   Name = MyCatalog
120   @libdbi@
121   dbname = @db_name@; user = @db_user@; password = "@db_password@"
122 }
123
124 # Reasonable message delivery -- send most everything to email address
125 #  and to the console
126 Messages {
127   Name = Standard
128   mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: %t %e of %c %l\" %r"
129 # operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: Intervention needed for %j\" %r"
130 # MailOnError = @job_email@ = all, !terminate
131 # operator = @job_email@ = mount
132   console = all, !skipped, !terminate, !restored
133 #
134 # WARNING! the following will create a file that you must cycle from
135 #          time to time as it will grow indefinitely. However, it will
136 #          also keep all your messages if the scroll off the console.
137 #
138   append = "@working_dir@/log" = all, !skipped
139   catalog = all, !skipped
140 }
141
142 #
143 # Message delivery for daemon messages (no job).
144 Messages {
145   Name = Daemon
146   mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula regression\) %r\" -s \"Regression daemon message\" %r"
147 # mail = @job_email@ = all, !skipped            
148   console = all, !skipped, !saved
149   append = "@working_dir@/log" = all, !skipped
150   catalog = all, !skipped
151 }
152
153     
154 # Default pool definition
155 Pool {
156   Name = Default
157   Pool Type = Backup
158   Recycle = yes                       # Bacula can automatically recycle Volumes
159   AutoPrune = yes                     # Prune expired volumes
160   Volume Retention = 365d             # one year
161 }