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