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