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