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