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