]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/stored/bacula-sd.conf.in
kes Add host name to items printed during dump.
[bacula/bacula] / bacula / src / stored / bacula-sd.conf.in
1 #
2 # Default Bacula Storage Daemon Configuration file
3 #
4 #  For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@ @DISTVER@
5 #
6 # You may need to change the name of your tape drive
7 #   on the "Archive Device" directive in the Device
8 #   resource.  If you change the Name and/or the 
9 #   "Media Type" in the Device resource, please ensure
10 #   that dird.conf has corresponding changes.
11 #
12
13 Storage {                             # definition of myself
14   Name = @hostname@-sd
15   SDPort = @sd_port@                  # Director's port      
16   WorkingDirectory = "@working_dir@"
17   Pid Directory = "@piddir@"
18   Maximum Concurrent Jobs = 20
19 }
20
21 #
22 # List Directors who are permitted to contact Storage daemon
23 #
24 Director {
25   Name = @hostname@-dir
26   Password = "@sd_password@"
27 }
28
29 #
30 # Restricted Director, used by tray-monitor to get the
31 #   status of the storage daemon
32 #
33 Director {
34   Name = @hostname@-mon
35   Password = "@mon_sd_password@"
36   Monitor = yes
37 }
38
39 #
40 # Devices supported by this Storage daemon
41 # To connect, the Director's bacula-dir.conf must have the
42 #  same Name and MediaType. 
43 #
44
45 Device {
46   Name = FileStorage
47   Media Type = File
48   Archive Device = @archivedir@
49   LabelMedia = yes;                   # lets Bacula label unlabeled media
50   Random Access = Yes;
51   AutomaticMount = yes;               # when device opened, read it
52   RemovableMedia = no;
53   AlwaysOpen = no;
54 }
55
56 #
57 # An autochanger device with two drives
58 #
59 #Autochanger {
60 #  Name = Autochanger
61 #  Device = Drive-1
62 #  Device = Drive-2
63 #  Changer Command = "@scriptdir@/mtx-changer %c %o %S %a %d"
64 #  Changer Device = /dev/sg0
65 #}
66
67 #Device {
68 #  Name = Drive-1                      #
69 #  Drive Index = 0
70 #  Media Type = DLT-8000
71 #  Archive Device = /dev/nst0
72 #  AutomaticMount = yes;               # when device opened, read it
73 #  AlwaysOpen = yes;
74 #  RemovableMedia = yes;
75 #  RandomAccess = no;
76 #  AutoChanger = yes
77 #  #
78 #  # Enable the Alert command only if you have the mtx package loaded
79 #  # Note, apparently on some systems, tapeinfo resets the SCSI controller
80 #  #  thus if you turn this on, make sure it does not reset your SCSI 
81 #  #  controller.  I have never had any problems, and smartctl does
82 #  #  not seem to cause such problems.
83 #  #
84 #  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
85 #  If you have smartctl, enable this, it has more info than tapeinfo 
86 #  Alert Command = "sh -c 'smartctl -H -l error %c'"  
87 #}
88
89 #Device {
90 #  Name = Drive-2                      #
91 #  Drive Index = 1
92 #  Media Type = DLT-8000
93 #  Archive Device = /dev/nst1
94 #  AutomaticMount = yes;               # when device opened, read it
95 #  AlwaysOpen = yes;
96 #  RemovableMedia = yes;
97 #  RandomAccess = no;
98 #  AutoChanger = yes
99 #  # Enable the Alert command only if you have the mtx package loaded
100 #  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
101 #  If you have smartctl, enable this, it has more info than tapeinfo 
102 #  Alert Command = "sh -c 'smartctl -H -l error %c'"  
103 #}
104
105 #
106 # A Linux or Solaris tape drive
107 #
108 #Device {
109 #  Name = DDS-4                        # 
110 #  Media Type = DDS-4
111 #  Archive Device = @TAPEDRIVE@
112 #  AutomaticMount = yes;               # when device opened, read it
113 #  AlwaysOpen = yes;
114 #  RemovableMedia = yes;
115 #  RandomAccess = no;
116 ## Changer Command = "@scriptdir@/mtx-changer %c %o %S %a %d"
117 ## Changer Device = /dev/sg0
118 ## AutoChanger = yes
119 #  # Enable the Alert command only if you have the mtx package loaded
120 ## Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
121 ## If you have smartctl, enable this, it has more info than tapeinfo 
122 ## Alert Command = "sh -c 'smartctl -H -l error %c'"  
123 #}
124
125 #
126 # A FreeBSD tape drive
127 #
128 #Device {
129 #  Name = DDS-4 
130 #  Description = "DDS-4 for FreeBSD"
131 #  Media Type = DDS-4
132 #  Archive Device = /dev/nsa1
133 #  AutomaticMount = yes;               # when device opened, read it
134 #  AlwaysOpen = yes
135 #  Offline On Unmount = no
136 #  Hardware End of Medium = no
137 #  BSF at EOM = yes
138 #  Backward Space Record = no
139 #  Fast Forward Space File = no
140 #  TWO EOF = yes
141 #  If you have smartctl, enable this, it has more info than tapeinfo 
142 #  Alert Command = "sh -c 'smartctl -H -l error %c'"  
143 #}
144
145 #
146 # A OnStream tape drive. 
147 # You need the kernel osst driver 0.9.14 or later, and
148 #   do "mt -f /dev/nosst0 defblksize 32768" once as root.
149 #
150 #Device {
151 #  Name = OnStream
152 #  Description = "OnStream drive on Linux"
153 #  Media Type = OnStream
154 #  Archive Device = @TAPEDRIVE@
155 #  AutomaticMount = yes;               # when device opened, read it
156 #  AlwaysOpen = yes
157 #  Offline On Unmount = no
158 ## The min/max blocksizes of 32768 are *required*
159 #  Minimum Block Size = 32768
160 #  Maximum Block Size = 32768
161 #  If you have smartctl, enable this, it has more info than tapeinfo 
162 #  Alert Command = "sh -c 'smartctl -H -l error %c'"  
163 #}
164  
165 #
166 # A DVD device
167 #
168 #Device {
169 #  Name = "DVD Writer"
170 #  Media Type = DVD
171 #  Device Type = DVD
172 #  Archive Device = /dev/hdc
173 #  LabelMedia = yes;                   # lets Bacula label unlabeled media
174 #  Random Access = Yes;
175 #  AutomaticMount = yes;               # when device opened, read it
176 #  RemovableMedia = yes;
177 #  AlwaysOpen = no;
178 #  MaximumPartSize = 800M;
179 #  RequiresMount = yes;
180 #  MountPoint = /mnt/cdrom;
181 #  MountCommand = "/bin/mount -t iso9660 -o ro %a %m";
182 #  UnmountCommand = "/bin/umount %m";
183 #  SpoolDirectory = /tmp/backup;
184 #  WritePartCommand = "@scriptdir@/dvd-handler %a write %e %v"
185 #  FreeSpaceCommand = "@scriptdir@/dvd-handler %a free"
186 #}
187
188 #
189 # For OpenBSD OS >= 3.6
190 #
191 #Device {
192 #  Name = DDS-3
193 #  Media Type = DDS-3
194 #  Archive Device = /dev/nrst0
195 #  Use MTIOCGET= no
196 #  BSF at EOM = yes
197 #  TWO EOF = no
198 #  AutomaticMount = yes;
199 #  AlwaysOpen = yes;
200 #  RemovableMedia = yes;
201 #  RandomAccess = no;
202 #  If you have smartctl, enable this, it has more info than tapeinfo 
203 #  Alert Command = "sh -c 'smartctl -H -l error %c'"  
204 #}
205
206 #
207 # A very old Exabyte with no end of media detection
208 #
209 #Device {
210 #  Name = "Exabyte 8mm"
211 #  Media Type = "8mm"
212 #  Archive Device = @TAPEDRIVE@
213 #  Hardware end of medium = No;
214 #  AutomaticMount = yes;               # when device opened, read it
215 #  AlwaysOpen = Yes;
216 #  RemovableMedia = yes;
217 #  RandomAccess = no;
218 #  If you have smartctl, enable this, it has more info than tapeinfo 
219 #  Alert Command = "sh -c 'smartctl -H -l error %c'"  
220 #}
221
222
223 # Send all messages to the Director, 
224 # mount messages also are sent to the email address
225 #
226 Messages {
227   Name = Standard
228   director = @hostname@-dir = all
229 }