]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/stored/bacula-sd.conf.in
367951ecb4d716ffddc68765c74fa8c7af78b38d
[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 = /tmp
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 = "/home/kern/bacula/bin/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 #  # Enable the Alert command only if you have the mtx package loaded
78 #  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
79 #  If you have smartctl, enable this, it has more info than tapeinfo 
80 #  Alert Command = "sh -c 'smartctl -H -l error %c'"  
81 #}
82
83 #Device {
84 #  Name = Drive-2                      #
85 #  Drive Index = 1
86 #  Media Type = DLT-8000
87 #  Archive Device = /dev/nst1
88 #  AutomaticMount = yes;               # when device opened, read it
89 #  AlwaysOpen = yes;
90 #  RemovableMedia = yes;
91 #  RandomAccess = no;
92 #  AutoChanger = yes
93 #  # Enable the Alert command only if you have the mtx package loaded
94 #  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
95 #  If you have smartctl, enable this, it has more info than tapeinfo 
96 #  Alert Command = "sh -c 'smartctl -H -l error %c'"  
97 #}
98
99 #
100 # A Linux or Solaris tape drive
101 #
102 #Device {
103 #  Name = DDS-4                        # 
104 #  Media Type = DDS-4
105 #  Archive Device = @TAPEDRIVE@
106 #  AutomaticMount = yes;               # when device opened, read it
107 #  AlwaysOpen = yes;
108 #  RemovableMedia = yes;
109 #  RandomAccess = no;
110 ## Changer Command = "@scriptdir@/mtx-changer %c %o %S %a %d"
111 ## Changer Device = /dev/sg0
112 ## AutoChanger = yes
113 #  # Enable the Alert command only if you have the mtx package loaded
114 ## Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
115 ## If you have smartctl, enable this, it has more info than tapeinfo 
116 ## Alert Command = "sh -c 'smartctl -H -l error %c'"  
117 #}
118
119 #
120 # A FreeBSD tape drive
121 #
122 #Device {
123 #  Name = DDS-4 
124 #  Description = "DDS-4 for FreeBSD"
125 #  Media Type = DDS-4
126 #  Archive Device = /dev/nsa1
127 #  AutomaticMount = yes;               # when device opened, read it
128 #  AlwaysOpen = yes
129 #  Offline On Unmount = no
130 #  Hardware End of Medium = no
131 #  BSF at EOM = yes
132 #  Backward Space Record = no
133 #  Fast Forward Space File = no
134 #  TWO EOF = yes
135 #  If you have smartctl, enable this, it has more info than tapeinfo 
136 #  Alert Command = "sh -c 'smartctl -H -l error %c'"  
137 #}
138
139 #
140 # A OnStream tape drive. 
141 # You need the kernel osst driver 0.9.14 or later, and
142 #   do "mt -f /dev/nosst0 defblksize 32768" once as root.
143 #
144 #Device {
145 #  Name = OnStream
146 #  Description = "OnStream drive on Linux"
147 #  Media Type = OnStream
148 #  Archive Device = @TAPEDRIVE@
149 #  AutomaticMount = yes;               # when device opened, read it
150 #  AlwaysOpen = yes
151 #  Offline On Unmount = no
152 ## The min/max blocksizes of 32768 are *required*
153 #  Minimum Block Size = 32768
154 #  Maximum Block Size = 32768
155 #  If you have smartctl, enable this, it has more info than tapeinfo 
156 #  Alert Command = "sh -c 'smartctl -H -l error %c'"  
157 #}
158  
159 #
160 # A DVD device
161 #
162 #Device {
163 #  Name = "DVD-Writer"
164 #  Media Type = DVD
165 #  Device Type = DVD
166 #  Archive Device = /dev/hdc
167 #  LabelMedia = yes;                   # lets Bacula label unlabeled media
168 #  Random Access = Yes;
169 #  AutomaticMount = yes;               # when device opened, read it
170 #  RemovableMedia = yes;
171 #  AlwaysOpen = no;
172 #  MaximumPartSize = 800M;
173 #  RequiresMount = yes;
174 #  MountPoint = /mnt/cdrom;
175 #  MountCommand = "/bin/mount -t iso9660 -o ro %a %m";
176 #  UnmountCommand = "/bin/umount %m";
177 #  SpoolDirectory = /tmp/backup;
178 #  WritePartCommand = "/etc/bacula/dvd-handler %a write %e %v"
179 #  FreeSpaceCommand = "/etc/bacula/dvd-handler %a free"
180 #}
181
182 #
183 # For OpenBSD OS >= 3.6
184 #
185 #Device {
186 #  Name = DDS-3
187 #  Media Type = DDS-3
188 #  Archive Device = /dev/nrst0
189 #  Use MTIOCGET= no
190 #  BSF at EOM = yes
191 #  TWO EOF = no
192 #  AutomaticMount = yes;
193 #  AlwaysOpen = yes;
194 #  RemovableMedia = yes;
195 #  RandomAccess = no;
196 #  If you have smartctl, enable this, it has more info than tapeinfo 
197 #  Alert Command = "sh -c 'smartctl -H -l error %c'"  
198 #}
199
200 #
201 # A very old Exabyte with no end of media detection
202 #
203 #Device {
204 #  Name = "Exabyte 8mm"
205 #  Media Type = "8mm"
206 #  Archive Device = @TAPEDRIVE@
207 #  Hardware end of medium = No;
208 #  AutomaticMount = yes;               # when device opened, read it
209 #  AlwaysOpen = Yes;
210 #  RemovableMedia = yes;
211 #  RandomAccess = no;
212 #  If you have smartctl, enable this, it has more info than tapeinfo 
213 #  Alert Command = "sh -c 'smartctl -H -l error %c'"  
214 #}
215
216
217 # Send all messages to the Director, 
218 # mount messages also are sent to the email address
219 #
220 Messages {
221   Name = Standard
222   director = @hostname@-dir = all
223 }