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