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