]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/stored/bacula-sd.conf.in
Merge branch 'master' into readline-bconsole-restore
[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 = @basename@-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 = @basename@-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 = @basename@-mon
35   Password = "@mon_sd_password@"
36   Monitor = yes
37 }
38
39 #
40 # Note, for a list of additional Device templates please
41 #  see the directory <bacula-source>/examples/devices
42 # Or follow the following link:
43 #  http://bacula.svn.sourceforge.net/viewvc/bacula/trunk/bacula/examples/devices/
44 #
45
46 #
47 # Devices supported by this Storage daemon
48 # To connect, the Director's bacula-dir.conf must have the
49 #  same Name and MediaType. 
50 #
51
52 Device {
53   Name = FileStorage
54   Media Type = File
55   Archive Device = @archivedir@
56   LabelMedia = yes;                   # lets Bacula label unlabeled media
57   Random Access = Yes;
58   AutomaticMount = yes;               # when device opened, read it
59   RemovableMedia = no;
60   AlwaysOpen = no;
61 }
62
63 #
64 # An autochanger device with two drives
65 #
66 #Autochanger {
67 #  Name = Autochanger
68 #  Device = Drive-1
69 #  Device = Drive-2
70 #  Changer Command = "@scriptdir@/mtx-changer %c %o %S %a %d"
71 #  Changer Device = /dev/sg0
72 #}
73
74 #Device {
75 #  Name = Drive-1                      #
76 #  Drive Index = 0
77 #  Media Type = DLT-8000
78 #  Archive Device = /dev/nst0
79 #  AutomaticMount = yes;               # when device opened, read it
80 #  AlwaysOpen = yes;
81 #  RemovableMedia = yes;
82 #  RandomAccess = no;
83 #  AutoChanger = yes
84 #  #
85 #  # Enable the Alert command only if you have the mtx package loaded
86 #  # Note, apparently on some systems, tapeinfo resets the SCSI controller
87 #  #  thus if you turn this on, make sure it does not reset your SCSI 
88 #  #  controller.  I have never had any problems, and smartctl does
89 #  #  not seem to cause such problems.
90 #  #
91 #  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
92 #  If you have smartctl, enable this, it has more info than tapeinfo 
93 #  Alert Command = "sh -c 'smartctl -H -l error %c'"  
94 #}
95
96 #Device {
97 #  Name = Drive-2                      #
98 #  Drive Index = 1
99 #  Media Type = DLT-8000
100 #  Archive Device = /dev/nst1
101 #  AutomaticMount = yes;               # when device opened, read it
102 #  AlwaysOpen = yes;
103 #  RemovableMedia = yes;
104 #  RandomAccess = no;
105 #  AutoChanger = yes
106 #  # Enable the Alert command only if you have the mtx package loaded
107 #  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
108 #  If you have smartctl, enable this, it has more info than tapeinfo 
109 #  Alert Command = "sh -c 'smartctl -H -l error %c'"  
110 #}
111
112 #
113 # A Linux or Solaris LTO-2 tape drive
114 #
115 #Device {
116 #  Name = LTO-2
117 #  Media Type = LTO-2
118 #  Archive Device = @TAPEDRIVE@
119 #  AutomaticMount = yes;               # when device opened, read it
120 #  AlwaysOpen = yes;
121 #  RemovableMedia = yes;
122 #  RandomAccess = no;
123 #  Maximum File Size = 3GB
124 ## Changer Command = "@scriptdir@/mtx-changer %c %o %S %a %d"
125 ## Changer Device = /dev/sg0
126 ## AutoChanger = yes
127 #  # Enable the Alert command only if you have the mtx package loaded
128 ## Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
129 ## If you have smartctl, enable this, it has more info than tapeinfo 
130 ## Alert Command = "sh -c 'smartctl -H -l error %c'"  
131 #}
132
133 #
134 # A Linux or Solaris LTO-3 tape drive
135 #
136 #Device {
137 #  Name = LTO-3
138 #  Media Type = LTO-3
139 #  Archive Device = @TAPEDRIVE@
140 #  AutomaticMount = yes;               # when device opened, read it
141 #  AlwaysOpen = yes;
142 #  RemovableMedia = yes;
143 #  RandomAccess = no;
144 #  Maximum File Size = 4GB
145 ## Changer Command = "@scriptdir@/mtx-changer %c %o %S %a %d"
146 ## Changer Device = /dev/sg0
147 ## AutoChanger = yes
148 #  # Enable the Alert command only if you have the mtx package loaded
149 ## Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
150 ## If you have smartctl, enable this, it has more info than tapeinfo 
151 ## Alert Command = "sh -c 'smartctl -H -l error %c'"  
152 #}
153
154 #
155 # A Linux or Solaris LTO-4 tape drive
156 #
157 #Device {
158 #  Name = LTO-4
159 #  Media Type = LTO-4
160 #  Archive Device = @TAPEDRIVE@
161 #  AutomaticMount = yes;               # when device opened, read it
162 #  AlwaysOpen = yes;
163 #  RemovableMedia = yes;
164 #  RandomAccess = no;
165 #  Maximum File Size = 5GB
166 ## Changer Command = "@scriptdir@/mtx-changer %c %o %S %a %d"
167 ## Changer Device = /dev/sg0
168 ## AutoChanger = yes
169 #  # Enable the Alert command only if you have the mtx package loaded
170 ## Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
171 ## If you have smartctl, enable this, it has more info than tapeinfo 
172 ## Alert Command = "sh -c 'smartctl -H -l error %c'"  
173 #}
174
175
176
177
178 #
179 # A FreeBSD tape drive
180 #
181 #Device {
182 #  Name = DDS-4 
183 #  Description = "DDS-4 for FreeBSD"
184 #  Media Type = DDS-4
185 #  Archive Device = /dev/nsa1
186 #  AutomaticMount = yes;               # when device opened, read it
187 #  AlwaysOpen = yes
188 #  Offline On Unmount = no
189 #  Hardware End of Medium = no
190 #  BSF at EOM = yes
191 #  Backward Space Record = no
192 #  Fast Forward Space File = no
193 #  TWO EOF = yes
194 #  If you have smartctl, enable this, it has more info than tapeinfo 
195 #  Alert Command = "sh -c 'smartctl -H -l error %c'"  
196 #}
197
198
199 # Send all messages to the Director, 
200 # mount messages also are sent to the email address
201 #
202 Messages {
203   Name = Standard
204   director = @basename@-dir = all
205 }