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