Advertisement
Guest User

sd.conf

a guest
Apr 28th, 2015
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 7.89 KB | None | 0 0
  1. #
  2. # Default Bacula Storage Daemon Configuration file
  3. #
  4. #  For Bacula release 7.0.5 (28 July 2014) -- archlinux
  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 = rquid-sd
  15.   SDPort = 9103                  # Director's port
  16.   WorkingDirectory = "/opt/bacula/working"
  17.   Pid Directory = "/run"
  18.   SDAddress = 192.168.1.35
  19.   Maximum Concurrent Jobs = 20
  20. }
  21.  
  22. #
  23. # List Directors who are permitted to contact Storage daemon
  24. #
  25. Director {
  26.   Name = rquid-dir
  27.   Password = "yIWu/LvFPT2jQP8rT3/lWsD8F54qggvunCN6rem1StMx"
  28. }
  29.  
  30. #
  31. # Restricted Director, used by tray-monitor to get the
  32. #   status of the storage daemon
  33. #
  34. Director {
  35.   Name = rquid-mon
  36.   Password = "qsAk4bR41egL4pejkWRhNmRRc0QYJNIgHUj/C/e+3bi1"
  37.   Monitor = yes
  38. }
  39.  
  40. #
  41. # Note, for a list of additional Device templates please
  42. #  see the directory <bacula-source>/examples/devices
  43. #
  44.  
  45. #
  46. # Devices supported by this Storage daemon
  47. # To connect, the Director's bacula-dir.conf must have the
  48. #  same Name and MediaType.
  49. #
  50.  
  51. #
  52. # Define a Virtual autochanger
  53. #
  54. # Autochanger {
  55. #   Name = FileChgr1
  56. #   Device = FileChgr1-Dev1, FileChgr1-Dev2
  57. #   Changer Command = ""
  58. #   Changer Device = /dev/null
  59. # }
  60.  
  61. Device {
  62.   Name = FileStorage
  63.   Media Type = File
  64.   Archive Device = /backup
  65.   LabelMedia = yes;                   # lets Bacula label unlabeled media
  66.   Random Access = Yes;
  67.   AutomaticMount = yes;               # when device opened, read it
  68.   RemovableMedia = no;
  69.   AlwaysOpen = no;
  70.   Maximum Concurrent Jobs = 5
  71. }
  72. # Device {
  73. #   Name = FileChgr1-Dev2
  74. #   Media Type = File1
  75. #   Archive Device = /tmp
  76. #   LabelMedia = yes;                   # lets Bacula label unlabeled media
  77. #   Random Access = Yes;
  78. #   AutomaticMount = yes;               # when device opened, read it
  79. #   RemovableMedia = no;
  80. #   AlwaysOpen = no;
  81. #   Maximum Concurrent Jobs = 5
  82. # }
  83.  
  84. #
  85. # Define a second Virtual autochanger
  86. #
  87. # Autochanger {
  88. #   Name = FileChgr2
  89. #   Device = FileChgr2-Dev1, FileChgr2-Dev2
  90. #   Changer Command = ""
  91. #   Changer Device = /dev/null
  92. # }
  93.  
  94. # Device {
  95. #   Name = FileChgr2-Dev1
  96. #   Media Type = File2
  97. #   Archive Device = /tmp
  98. #   LabelMedia = yes;                   # lets Bacula label unlabeled media
  99. #   Random Access = Yes;
  100. #   AutomaticMount = yes;               # when device opened, read it
  101. #   RemovableMedia = no;
  102. #   AlwaysOpen = no;
  103. #   Maximum Concurrent Jobs = 5
  104. # }
  105.  
  106. # Device {
  107. #   Name = FileChgr2-Dev2
  108. #   Media Type = File2
  109. #   Archive Device = /tmp
  110. #   LabelMedia = yes;                   # lets Bacula label unlabeled media
  111. #   Random Access = Yes;
  112. #   AutomaticMount = yes;               # when device opened, read it
  113. #   RemovableMedia = no;
  114. #   AlwaysOpen = no;
  115. #   Maximum Concurrent Jobs = 5
  116. # }
  117.  
  118.  
  119.  
  120. #
  121. # An autochanger device with two drives
  122. #
  123. #Autochanger {
  124. #  Name = Autochanger
  125. #  Device = Drive-1
  126. #  Device = Drive-2
  127. #  Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
  128. #  Changer Device = /dev/sg0
  129. #}
  130.  
  131. #Device {
  132. #  Name = Drive-1                      #
  133. #  Drive Index = 0
  134. #  Media Type = DLT-8000
  135. #  Archive Device = /dev/nst0
  136. #  AutomaticMount = yes;               # when device opened, read it
  137. #  AlwaysOpen = yes;
  138. #  RemovableMedia = yes;
  139. #  RandomAccess = no;
  140. #  AutoChanger = yes
  141. #  #
  142. #  # Enable the Alert command only if you have the mtx package loaded
  143. #  # Note, apparently on some systems, tapeinfo resets the SCSI controller
  144. #  #  thus if you turn this on, make sure it does not reset your SCSI
  145. #  #  controller.  I have never had any problems, and smartctl does
  146. #  #  not seem to cause such problems.
  147. #  #
  148. #  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
  149. #  If you have smartctl, enable this, it has more info than tapeinfo
  150. #  Alert Command = "sh -c 'smartctl -H -l error %c'"
  151. #}
  152.  
  153. #Device {
  154. #  Name = Drive-2                      #
  155. #  Drive Index = 1
  156. #  Media Type = DLT-8000
  157. #  Archive Device = /dev/nst1
  158. #  AutomaticMount = yes;               # when device opened, read it
  159. #  AlwaysOpen = yes;
  160. #  RemovableMedia = yes;
  161. #  RandomAccess = no;
  162. #  AutoChanger = yes
  163. #  # Enable the Alert command only if you have the mtx package loaded
  164. #  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
  165. #  If you have smartctl, enable this, it has more info than tapeinfo
  166. #  Alert Command = "sh -c 'smartctl -H -l error %c'"
  167. #}
  168.  
  169. #
  170. # A Linux or Solaris LTO-2 tape drive
  171. #
  172. #Device {
  173. #  Name = LTO-2
  174. #  Media Type = LTO-2
  175. #  Archive Device =
  176. #  AutomaticMount = yes;               # when device opened, read it
  177. #  AlwaysOpen = yes;
  178. #  RemovableMedia = yes;
  179. #  RandomAccess = no;
  180. #  Maximum File Size = 3GB
  181. ## Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
  182. ## Changer Device = /dev/sg0
  183. ## AutoChanger = yes
  184. #  # Enable the Alert command only if you have the mtx package loaded
  185. ## Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
  186. ## If you have smartctl, enable this, it has more info than tapeinfo
  187. ## Alert Command = "sh -c 'smartctl -H -l error %c'"
  188. #}
  189.  
  190. #
  191. # A Linux or Solaris LTO-3 tape drive
  192. #
  193. #Device {
  194. #  Name = LTO-3
  195. #  Media Type = LTO-3
  196. #  Archive Device =
  197. #  AutomaticMount = yes;               # when device opened, read it
  198. #  AlwaysOpen = yes;
  199. #  RemovableMedia = yes;
  200. #  RandomAccess = no;
  201. #  Maximum File Size = 4GB
  202. ## Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
  203. ## Changer Device = /dev/sg0
  204. ## AutoChanger = yes
  205. #  # Enable the Alert command only if you have the mtx package loaded
  206. ## Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
  207. ## If you have smartctl, enable this, it has more info than tapeinfo
  208. ## Alert Command = "sh -c 'smartctl -H -l error %c'"
  209. #}
  210.  
  211. #
  212. # A Linux or Solaris LTO-4 tape drive
  213. #
  214. #Device {
  215. #  Name = LTO-4
  216. #  Media Type = LTO-4
  217. #  Archive Device =
  218. #  AutomaticMount = yes;               # when device opened, read it
  219. #  AlwaysOpen = yes;
  220. #  RemovableMedia = yes;
  221. #  RandomAccess = no;
  222. #  Maximum File Size = 5GB
  223. ## Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
  224. ## Changer Device = /dev/sg0
  225. ## AutoChanger = yes
  226. #  # Enable the Alert command only if you have the mtx package loaded
  227. ## Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
  228. ## If you have smartctl, enable this, it has more info than tapeinfo
  229. ## Alert Command = "sh -c 'smartctl -H -l error %c'"
  230. #}
  231.  
  232. #
  233. # An HP-UX tape drive
  234. #
  235. #Device {
  236. #  Name = Drive-1                      #
  237. #  Drive Index = 0
  238. #  Media Type = DLT-8000
  239. #  Archive Device = /dev/rmt/1mnb
  240. #  AutomaticMount = yes;               # when device opened, read it
  241. #  AlwaysOpen = yes;
  242. #  RemovableMedia = yes;
  243. #  RandomAccess = no;
  244. #  AutoChanger = no
  245. #  Two EOF = yes
  246. #  Hardware End of Medium = no
  247. #  Fast Forward Space File = no
  248. #  #
  249. #  # Enable the Alert command only if you have the mtx package loaded
  250. #  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
  251. #  If you have smartctl, enable this, it has more info than tapeinfo
  252. #  Alert Command = "sh -c 'smartctl -H -l error %c'"
  253. #}
  254.  
  255. #
  256. # A FreeBSD tape drive
  257. #
  258. #Device {
  259. #  Name = DDS-4
  260. #  Description = "DDS-4 for FreeBSD"
  261. #  Media Type = DDS-4
  262. #  Archive Device = /dev/nsa1
  263. #  AutomaticMount = yes;               # when device opened, read it
  264. #  AlwaysOpen = yes
  265. #  Offline On Unmount = no
  266. #  Hardware End of Medium = no
  267. #  BSF at EOM = yes
  268. #  Backward Space Record = no
  269. #  Fast Forward Space File = no
  270. #  TWO EOF = yes
  271. #  If you have smartctl, enable this, it has more info than tapeinfo
  272. #  Alert Command = "sh -c 'smartctl -H -l error %c'"
  273. #}
  274.  
  275. #
  276. # Send all messages to the Director,
  277. # mount messages also are sent to the email address
  278. #
  279. Messages {
  280.   Name = Standard
  281.   director = rquid-dir = all
  282. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement