]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/bacula-dir-tape.conf.in
dc2475327eba4c3ebeacab0b0d361e10669ce9a1
[bacula/bacula] / regress / scripts / 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.33
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 = 8101                # 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 /tmp
29 Job {
30   Name = "NightlySave"
31   Type = Backup
32   Client=@hostname@-fd 
33   FileSet="Full Set"
34   Storage = DDS-4
35   Messages = Standard
36   Pool = Default
37   Write Bootstrap = "@working_dir@/NightlySave.bsr"
38   Maximum Concurrent Jobs = 4
39   SpoolData = yes
40 # Prefer Mounted Volumes = no
41 }
42
43 Job {
44   Name = "NightlySave1"
45   Type = Backup
46   Client=@hostname@-fd 
47   FileSet="Full Set"
48   Storage = DDS-4
49   Messages = Standard
50   Pool = Default
51   Write Bootstrap = "@working_dir@/NightlySave.bsr"
52   Maximum Concurrent Jobs = 4
53   SpoolData = yes
54 # Prefer Mounted Volumes = no
55   Client Run Before Job = "/bin/sleep 120"
56 }
57
58 Job {
59   Name = "NightlySave2"
60   Type = Backup
61   Client=@hostname@-fd 
62   FileSet="Full Set"
63   Storage = DDS-4
64   Messages = Standard
65   Pool = Default
66   Write Bootstrap = "@working_dir@/NightlySave.bsr"
67   Maximum Concurrent Jobs = 4
68   SpoolData = yes
69 # Prefer Mounted Volumes = no
70 }
71
72
73 # Standard Restore template, to be changed by Console program
74 Job {
75   Name = "RestoreFiles"
76   Type = Restore
77   Client=@hostname@-fd 
78   FileSet="Full Set"
79   Storage = DDS-4
80   Messages = Standard
81   Pool = Default
82   Where = /tmp/bacula-restores
83 }
84
85
86 # List of files to be backed up
87 FileSet {
88   Name = "Full Set"
89   Include { Options { signature=MD5 }
90     File =  </tmp/file-list
91   }
92 }
93
94
95 #
96 # When to do the backups, full backup on first sunday of the month,
97 #  differential (i.e. incremental since full) every other sunday,
98 #  and incremental backups other days
99 Schedule {
100   Name = "WeeklyCycle"
101   Run = Full 1st sun at 1:05
102   Run = Differential 2nd-5th sun at 1:05
103   Run = Incremental mon-sat at 1:05
104 }
105
106 # Client (File Services) to backup
107 Client {
108   Name = @hostname@-fd
109   Address = @hostname@
110   FDPort = 8102
111   Catalog = MyCatalog
112   Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
113   File Retention = 30d                # 30 days
114   Job Retention = 180d                # six months
115   AutoPrune = yes                     # Prune expired Jobs/Files
116   Maximum Concurrent Jobs = 4
117 }
118
119 # Definition of DDS tape storage device
120 Storage {
121   Name = DDS-4
122   Address = @hostname@                # N.B. Use a fully qualified name here
123   SDPort = 8103
124   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
125   Device = DDS-4                      # must be same as Device in Storage daemon
126   Media Type = DDS-4                  # must be same as MediaType in Storage daemon
127   Maximum Concurrent Jobs = 4
128 # Autochanger = yes
129 }
130
131
132 # Generic catalog service
133 Catalog {
134   Name = MyCatalog
135   dbname = bacula; user = bacula; password = ""
136 }
137
138 # Reasonable message delivery -- send most everything to email address
139 #  and to the console
140 Messages {
141   Name = Standard
142   mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula Regression\) %r\" -s \"Bacula: %t %e of %c %l\" %r"
143   operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula Regression\) %r\" -s \"Bacula: Intervention needed for %j\" %r"
144   MailOnError = @job_email@ = all, !terminate
145   operator = @job_email@ = mount
146   console = all, !skipped, !terminate, !restored
147 #
148 # WARNING! the following will create a file that you must cycle from
149 #          time to time as it will grow indefinitely. However, it will
150 #          also keep all your messages if the scroll off the console.
151 #
152   append = "@working_dir@/log" = all, !skipped
153 }
154
155 #
156 # Message delivery for daemon messages (no job).
157 Messages {
158   Name = Daemon
159   mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula\) %r\" -s \"Bacula daemon message\" %r"
160   mail = @job_email@ = all, !skipped            
161   console = all, !skipped, !saved
162   append = "@working_dir@/log" = all, !skipped
163 }
164
165     
166 # Default pool definition
167 Pool {
168   Name = Default
169   Pool Type = Backup
170   Recycle = yes                       # Bacula can automatically recycle Volumes
171   AutoPrune = yes                     # Prune expired volumes
172   Volume Retention = 365d             # one year
173 }
174
175 Pool {
176   Name = Full
177   Pool Type = Backup
178   Recycle = yes                       # Bacula can automatically recycle Volumes
179   AutoPrune = yes                     # Prune expired volumes
180   Volume Retention = 365d             # one year
181 }
182
183 Pool {
184   Name = Inc
185   Pool Type = Backup
186   Recycle = yes                       # Bacula can automatically recycle Volumes
187   AutoPrune = yes                     # Prune expired volumes
188   Volume Retention = 365d             # one year
189 }
190
191 Pool {
192   Name = Scratch
193   Pool Type = Backup
194   Recycle = yes                       # Bacula can automatically recycle Volumes
195   AutoPrune = yes                     # Prune expired volumes
196   Volume Retention = 365d             # one year
197 }
198