Advertisement
Guest User

Untitled

a guest
Apr 4th, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.63 KB | None | 0 0
  1. #
  2. # Default Bacula Director Configuration file
  3. #
  4. # The only thing that MUST be changed is to add one or more
  5. # file or directory names in the Include directive of the
  6. # FileSet resource.
  7. #
  8. # For Bacula release 5.0.0 (26 January 2010) -- redhat
  9. #
  10. # You might also want to change the default email address
  11. # from root to your address. See the "mail" and "operator"
  12. # directives in the Messages resource.
  13. #
  14.  
  15. Director { # define myself
  16. Name = bacula-dir
  17. DIRport = 9101 # where we listen for UA connections
  18. QueryFile = "/usr/libexec/bacula/query.sql"
  19. WorkingDirectory = "/var/spool/bacula"
  20. PidDirectory = "/var/run"
  21. Maximum Concurrent Jobs = 1
  22. Password = "password" # Console password
  23. Messages = Daemon
  24. }
  25.  
  26. JobDefs {
  27. Name = "DefaultJob"
  28. Type = Backup
  29. Level = Incremental
  30. Client = bacula-fd
  31. FileSet = "Full Set"
  32. Storage = File
  33. Messages = Standard
  34. Pool = File
  35. Priority = 10
  36. Write Bootstrap = "/var/spool/bacula/%c.bsr"
  37. }
  38.  
  39. JobDefs {
  40. Name = "DefaultWinJob"
  41. Type = Backup
  42. Level = Full
  43. Client = windows7-fd #win client name
  44. FileSet = "Files On Windows"
  45. Storage = File
  46. Messages = Standard
  47. Pool = File
  48. SpoolAttributes = yes
  49. Priority = 10
  50. Write Bootstrap = "var/spool/bacula/%c.bsr"
  51. }
  52.  
  53. #
  54. # Define the main nightly save backup job
  55. # By default, this job will back up to disk in /tmp
  56. Job {
  57. Name = "BackupPlikiLocal"
  58. Client = bacula-fd
  59. JobDefs = "DefaultJob"
  60. }
  61.  
  62. Job {
  63. Name = "BackupPlikiWindows"
  64. Client = windows7-fd #win client name
  65. JobDefs = "DefaultWinJob"
  66. }
  67.  
  68. #
  69. # Standard Restore template, to be changed by Console program
  70. # Only one such job is needed for all Jobs/Clients/Storage ...
  71. #
  72. Job {
  73. Name = "RestoreFilesLocal"
  74. Type = Restore
  75. Client = bacula-fd
  76. FileSet="Full Set"
  77. Storage = File
  78. Pool = File
  79. Messages = Standard
  80. Where = /root/restores
  81. }
  82.  
  83. Job {
  84. Name = "RestoreFileWindows"
  85. Type = Restore
  86. Client = windows7-fd
  87. FileSet="Files On Windows"
  88. Storage = File
  89. Pool = File
  90. Messages = Standard
  91. Where = C:/restores
  92. }
  93.  
  94. # List of files to be backed up
  95.  
  96. FileSet {
  97. Name = "Files On Windows"
  98. Include {
  99. Options {
  100. signature = MD5
  101. }
  102. File = "C:/DoBackupu"
  103. }
  104. }
  105.  
  106. FileSet {
  107. Name = "Full Set"
  108. Include {
  109. Options {
  110. signature = MD5
  111. }
  112. File = /root/pliki/
  113. }
  114. }
  115.  
  116. FileSet {
  117. Name = "Catalog"
  118. Include {
  119. Options {
  120. signature = MD5
  121. }
  122. File = "/var/spool/bacula/bacula.sql"
  123. }
  124. }
  125.  
  126. # Client (File Services) to backup
  127. Client {
  128. Name = bacula-fd
  129. Address = localhost
  130. FDPort = 9102
  131. Catalog = MyCatalog
  132. Password = "password" # password for FileDaemon
  133. File Retention = 30 days # 30 days
  134. Job Retention = 6 months # six months
  135. AutoPrune = yes # Prune expired Jobs/Files
  136. }
  137.  
  138. #
  139. # Second Client (File Services) to backup
  140. # You should change Name, Address, and Password before using
  141. #
  142. Client {
  143. Name = windows7-fd #win client name
  144. Address = 172.19.129.113
  145. FDPort = 9102
  146. Catalog = MyCatalog
  147. Password = "password" # password for FileDaemon 2
  148. File Retention = 60 days # 60 days
  149. Job Retention = 6 months # six months
  150. AutoPrune = yes # Prune expired Jobs/Files
  151. }
  152.  
  153.  
  154. # Definition of file storage device
  155. Storage {
  156. Name = File
  157. Address = 172.19.129.153 # N.B. Use a fully qualified name here
  158. SDPort = 9103
  159. Password = "password"
  160. Device = FileStorage
  161. Media Type = File
  162. }
  163.  
  164.  
  165.  
  166. # Generic catalog service
  167. Catalog {
  168. Name = MyCatalog
  169. # Uncomment the following line if you want the dbi driver
  170. # dbdriver = "dbi:sqlite3"; dbaddress = 127.0.0.1; dbport =
  171. dbname = "bacula"; dbuser = "bacula"; dbpassword = "password"
  172. }
  173.  
  174. # Reasonable message delivery -- send most everything to email address
  175. # and to the console
  176. Messages {
  177. Name = Standard
  178. mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
  179. operatorcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
  180. mail = root@localhost = all, !skipped
  181. operator = root@localhost = mount
  182. console = all, !skipped, !saved
  183. append = "/var/spool/bacula/log" = all, !skipped
  184. catalog = all
  185. }
  186.  
  187.  
  188. #
  189. # Message delivery for daemon messages (no job).
  190. Messages {
  191. Name = Daemon
  192. mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
  193. mail = root@localhost = all, !skipped
  194. console = all, !skipped, !saved
  195. append = "/var/log/bacula.log" = all, !skipped
  196. }
  197.  
  198. # Default pool definition
  199. Pool {
  200. Name = Default
  201. Pool Type = Backup
  202. Recycle = yes # Bacula can automatically recycle Volumes
  203. AutoPrune = yes # Prune expired volumes
  204. Volume Retention = 365 days # one year
  205. }
  206.  
  207. # File Pool definition
  208. Pool {
  209. Name = File
  210. Pool Type = Backup
  211. Recycle = yes # Bacula can automatically recycle Volumes
  212. AutoPrune = yes # Prune expired volumes
  213. Volume Retention = 365 days # one year
  214. Maximum Volume Bytes = 50G # Limit Volume size to something reasonable
  215. Maximum Volumes = 100 # Limit number of Volumes in Pool
  216. }
  217.  
  218.  
  219. # Scratch pool definition
  220. Pool {
  221. Name = Scratch
  222. Pool Type = Backup
  223. }
  224.  
  225. #
  226. # Restricted console used by tray-monitor to get the status of the director
  227. #
  228. Console {
  229. Name = bacula-mon
  230. Password = "password"
  231. CommandACL = status, .status
  232. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement