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