]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/dird/bacula-dir.conf.in
make_catalog_backup enhancement from Lutz Kittler
[bacula/bacula] / bacula / src / dird / 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 @VERSION@ (@DATE@) -- @DISTNAME@ @DISTVER@
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 = @dir_port@                # where we listen for UA connections
18   QueryFile = "@scriptdir@/query.sql"
19   WorkingDirectory = "@working_dir@"
20   PidDirectory = "@piddir@"
21   SubSysDirectory = "@subsysdir@"
22   Maximum Concurrent Jobs = 1
23   Password = "@dir_password@"         # Console password
24   Messages = Standard
25 }
26
27 # Define the main nightly save backup job
28 Job {
29   Name = "NightlySave"
30   Type = Backup
31   Client=@hostname@-fd 
32   FileSet="Full Set"
33   Schedule = "WeeklyCycle"
34   Storage = DLTDrive
35   Messages = Standard
36   Pool = Default
37   Write Bootstrap = "@working_dir@/NightlySave.bsr"
38 }
39
40 # Backup the catalog database (after the nightly save)
41 Job {
42   Name = "BackupCatalog"
43   Type = Backup
44   Client=@hostname@-fd 
45   FileSet="Catalog"
46   Schedule = "WeeklyCycleAfterBackup"
47   Storage = DLTDrive
48   Messages = Standard
49   Pool = Default
50   # This creates an ASCII copy of the catalog
51   RunBeforeJob = "@scriptdir@/make_catalog_backup -u bacula"
52   # This deletes the copy of the catalog
53   RunAfterJob  = "@scriptdir@/delete_catalog_backup"
54   Write Bootstrap = "@working_dir@/BackupCatalog.bsr"
55 }
56
57 # Standard Restore template, to be changed by Console program
58 Job {
59   Name = "RestoreFiles"
60   Type = Restore
61   Client=@hostname@-fd 
62   FileSet="Full Set"
63   Storage = DLTDrive
64   Messages = Standard
65   Pool = Default
66   Where = /tmp/bacula-restores
67 }
68
69
70 # List of files to be backed up
71 FileSet {
72   Name = "Full Set"
73   Include = signature=MD5 { 
74 #    
75 #  Put your list of files here, one per line or include an
76 #    external list with:
77 #
78 #    @file-name
79 #
80 #  Note: / backs up everything on the root partition.
81 #    if you have other partitons such as /usr or /home
82 #    you will probably want to add them too.
83 #
84
85   /
86
87   }
88   Exclude = { /proc; /tmp }
89 }
90
91 #
92 # When to do the backups, full backup on first sunday of the month,
93 #  differential (i.e. incremental since full) every other sunday,
94 #  and incremental backups other days
95 Schedule {
96   Name = "WeeklyCycle"
97   Run = Full 1st sun at 1:05
98   Run = Differential 2nd-5th sun at 1:05
99   Run = Incremental mon-sat at 1:05
100 }
101
102 # This schedule does the catalog. It starts after the WeeklyCycle
103 Schedule {
104   Name = "WeeklyCycleAfterBackup"
105   Run = Full sun-sat at 1:10
106 }
107
108 # This is the backup of the catalog
109 FileSet {
110   Name = "Catalog"
111   Include = signature=MD5 {
112      @working_dir@/bacula.sql
113   }
114 }
115
116 # Client (File Services) to backup
117 Client {
118   Name = @hostname@-fd
119   Address = @hostname@
120   FDPort = @fd_port@
121   Catalog = MyCatalog
122   Password = "@fd_password@"          # password for FileDaemon
123   File Retention = 30d                # 30 days
124   Job Retention = 180d                # six months
125   AutoPrune = yes                     # Prune expired Jobs/Files
126 }
127
128 # Definiton of file storage device
129 Storage {
130   Name = File
131   Address = @hostname@                # N.B. Use a fully qualified name here
132   SDPort = @sd_port@
133   Password = "@sd_password@"
134   Device = FileStorage
135   Media Type = File
136 }
137
138 # Definition of DLT tape storage device
139 #Storage {
140 #  Name = DLTDrive
141 #  Address = @hostname@                # N.B. Use a fully qualified name here
142 #  SDPort = @sd_port@
143 #  Password = "@sd_password@"          # password for Storage daemon
144 #  Device = "HP DLT 80"                # must be same as Device in Storage daemon
145 #  Media Type = DLT8000                # must be same as MediaType in Storage daemon
146 #}
147
148 # Definition of DDS tape storage device
149 #Storage {
150 #  Name = SDT-10000
151 #  Address = @hostname@                # N.B. Use a fully qualified name here
152 #  SDPort = @sd_port@
153 #  Password = "@sd_password@"          # password for Storage daemon
154 #  Device = SDT-10000                  # must be same as Device in Storage daemon
155 #  Media Type = DDS-4                  # must be same as MediaType in Storage daemon
156 #}
157
158 # Definition of 8mm tape storage device
159 #Storage {
160 #  Name = "8mmDrive"
161 #  Address = @hostname@                # N.B. Use a fully qualified name here
162 #  SDPort = @sd_port@
163 #  Password = "@sd_password@"
164 #  Device = "Exabyte 8mm"
165 #  MediaType = "8mm"
166 #}
167
168
169 # Generic catalog service
170 Catalog {
171   Name = MyCatalog
172   dbname = bacula; user = bacula; password = ""
173 }
174
175 # Reasonable message delivery -- send most everything to email address
176 #  and to the console
177 Messages {
178   Name = Standard
179   mailcommand = "@sbindir@/smtp -h @smtp_host@ -f \"\(Bacula\) %r\" -s \"Bacula: %t %e of %c %l\" %r"
180   operatorcommand = "@sbindir@/smtp -h @smtp_host@ -f \"\(Bacula\) %r\" -s \"Bacula: Intervention needed for %j\" %r"
181   mail = @job_email@ = all, !skipped            
182   operator = @job_email@ = mount
183   console = all, !skipped, !saved
184 #
185 # WARNING! the following will create a file that you must cycle from
186 #          time to time as it will grow indefinitely. However, it will
187 #          also keep all your messages if the scroll off the console.
188 #
189   append = "@working_dir@/log" = all, !skipped
190 }
191     
192 # Default pool definition
193 Pool {
194   Name = Default
195   Pool Type = Backup
196   Recycle = yes                       # Bacula can automatically recycle Volumes
197   AutoPrune = yes                     # Prune expired volumes
198   Volume Retention = 365d             # one year
199   Accept Any Volume = yes             # write on any volume in the pool