bacula-sd.conf 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. #
  2. # Default Bacula Storage Daemon Configuration file
  3. #
  4. # For Bacula release 5.2.5 (26 January 2012) -- ubuntu 12.04
  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. Storage { # definition of myself
  13. Name = lto-sd
  14. SDPort = 9103 # Director's port
  15. WorkingDirectory = "/var/lib/bacula"
  16. Pid Directory = "/var/run/bacula"
  17. Maximum Concurrent Jobs = 20
  18. #SDAddress = 192.168.5.2
  19. SDAddress = 10.0.21.4
  20. }
  21. #
  22. # List Directors who are permitted to contact Storage daemon
  23. #
  24. Director {
  25. Name = lto-director
  26. Password = "YJZtoICDQycm3inl-RmiNpFEaT-M_yCpg"
  27. }
  28. #
  29. # Restricted Director, used by tray-monitor to get the
  30. # status of the storage daemon
  31. #
  32. #Director {
  33. # Name = lto-mon
  34. # Password = "YJZtoICDQycm3inl-RmiNpFEaT-M_yCpg"
  35. # Monitor = yes
  36. #}
  37. #
  38. # Note, for a list of additional Device templates please
  39. # see the directory <bacula-source>/examples/devices
  40. # Or follow the following link:
  41. # http://bacula.svn.sourceforge.net/viewvc/bacula/trunk/bacula/examples/devices/
  42. #
  43. #
  44. # Devices supported by this Storage daemon
  45. # To connect, the Director's bacula-dir.conf must have the
  46. # same Name and MediaType.
  47. #
  48. Device {
  49. Name = FileStorage
  50. Media Type = File
  51. Archive Device = /storage/bacula/backups/
  52. LabelMedia = yes; # lets Bacula label unlabeled media
  53. Random Access = Yes;
  54. AutomaticMount = yes; # when device opened, read it
  55. RemovableMedia = no;
  56. AlwaysOpen = no;
  57. }
  58. #
  59. # A Linux or Solaris LTO-4 tape drive
  60. #
  61. Device {
  62. Name = TapeStorage
  63. Media Type = LTO5
  64. Archive Device = /dev/nst0 # no auto reqind after writing
  65. #Archive Device = /dev/st0 # auto revind after finished writing
  66. LabelMedia = yes; # lets Bacula label unlabeled media
  67. AutomaticMount = yes; # when device opened, read it
  68. AlwaysOpen = yes;
  69. RemovableMedia = yes;
  70. RandomAccess = no;
  71. Maximum File Size = 100GB
  72. # Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
  73. # Changer Command = "/bin/mt -f /dev/st0 offline"
  74. # Changer Device = /dev/sg0
  75. # AutoChanger = yes
  76. # Enable the Alert command only if you have the mtx package loaded
  77. # Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
  78. # If you have smartctl, enable this, it has more info than tapeinfo
  79. Alert Command = "sh -c 'smartctl -H -l error %c'"
  80. }
  81. #
  82. # Send all messages to the Director,
  83. # mount messages also are sent to the email address
  84. #
  85. Messages {
  86. Name = Standard
  87. director = lto-dir = all
  88. }