]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/dird/bacula-dir.conf.in
First cut 1.27 see kes23Oct02
[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 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 # Standard Restore template, to be changed by Console program
40 Job {
41   Name = "RestoreFiles"
42   Type = Restore
43   Client=@hostname@-fd 
44   FileSet="Full Set"
45   Storage = DLTDrive
46   Messages = Standard
47   Pool = Default
48   Where = /tmp/bacula-restores
49 }
50
51
52 # List of files to be backed up
53 FileSet {
54   Name = "Full Set"
55   Include = signature=MD5 { 
56 #    
57 #  Put your list of files here, one per line or include an
58 #    external list with:
59 #
60 #    @file-name
61 #
62 #  Note: / backs up everything
63
64   /
65
66   }
67   Exclude = { }
68 }
69
70 # When to do the backups
71 Schedule {
72   Name = "WeeklyCycle"
73   Run = Full sun at 1:05
74   Run = Incremental mon-sat at 1:05
75 }
76
77 # Client (File Services) to backup
78 Client {
79   Name = @hostname@-fd
80   Address = @hostname@
81   FDPort = @fd_port@
82   Catalog = MyCatalog
83   Password = "@fd_password@"          # password for FileDaemon
84   File Retention = 180d               # six months
85   Job Retention = 365d                # one year
86   AutoPrune = yes                     # Prune expired Jobs/Files
87 }
88
89
90 # Definition of DLT tape storage device
91 Storage {
92   Name = DLTDrive
93   Address = @hostname@                # N.B. Use a fully qualified name here
94   SDPort = @sd_port@
95   Password = "@sd_password@"          # password for Storage daemon
96   Device = "HP DLT 80"                # must be same as Device in Storage daemon
97   Media Type = DLT8000                # must be same as MediaType in Storage daemon
98 }
99
100 # Definition of DDS tape storage device
101 Storage {
102   Name = SDT-10000
103   Address = @hostname@                # N.B. Use a fully qualified name here
104   SDPort = @sd_port@
105   Password = "@sd_password@"          # password for Storage daemon
106   Device = SDT-10000                  # must be same as Device in Storage daemon
107   Media Type = DDS-4                  # must be same as MediaType in Storage daemon
108 }
109
110 # Definition of 8mm tape storage device
111 Storage {
112   Name = "8mmDrive"
113   Address = @hostname@                # N.B. Use a fully qualified name here
114   SDPort = @sd_port@
115   Password = "@sd_password@"
116   Device = "Exabyte 8mm"
117   MediaType = "8mm"
118 }
119
120 # Definiton of file storage device
121 Storage {
122   Name = File
123   Address = @hostname@                # N.B. Use a fully qualified name here
124   SDPort = @sd_port@
125   Password = "@sd_password@"
126   Device = FileStorage
127   Media Type = File
128 }
129
130
131 # Generic catalog service
132 Catalog {
133   Name = MyCatalog
134   dbname = bacula; user = bacula; password = ""
135 }
136
137 # Reasonable message delivery -- send most everything to email address
138 #  and to the console
139 Messages {
140   Name = Standard
141   mailcommand = "@sbindir@/smtp -h @smtp_host@ -f \"Bacula <%r>\" -s \"Bacula: %t %e of %c %l\" %r"
142   operatorcommand = "@sbindir@/smtp -h @smtp_host@ -f \"Bacula <%r>\" -s \"Bacula: Intervention needed for %j\" %r"
143   mail = @job_email@ = all, !skipped            
144   operator = @job_email@ = mount
145   console = all, !skipped, !saved
146 }
147     
148 # Default pool definition
149 Pool {
150   Name = Default
151   Pool Type = Backup
152   Recycle = yes                       # Bacula can automatically recycle Volumes
153   AutoPrune = yes                     # Prune expired volumes
154   Volume Retention = 365d             # one year
155   Accept Any Volume = yes             # write on any volume in the pool
156 }