Advertisement
Guest User

bacula

a guest
Jul 1st, 2016
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.58 KB | None | 0 0
  1. [root@vampire bacula]# cat /etc/bacula/bacula-dir.conf
  2. #
  3. # Default Bacula Director Configuration file
  4. #
  5. # The only thing that MUST be changed is to add one or more
  6. # file or directory names in the Include directive of the
  7. # FileSet resource.
  8. #
  9. # For Bacula release 5.2.13 (19 February 2013) -- redhat (Core)
  10. #
  11. # You might also want to change the default email address
  12. # from root to your address. See the "mail" and "operator"
  13. # directives in the Messages resource.
  14. #
  15.  
  16. ### Director ###
  17.  
  18. Director {
  19. Name = "vampire-dir"
  20. Description = "Sistema de Backup Bacula - Vampire"
  21. DIRport = 9101
  22. QueryFile = "/etc/bacula/query.sql"
  23. WorkingDirectory = "/var/spool/bacula"
  24. PidDirectory = "/var/run"
  25. Maximum Concurrent Jobs = 50
  26. Heartbeat Interval = 120
  27. Password = "P@$$vampire2015PWD."
  28. Messages = "daemon-messages"
  29. }
  30.  
  31. ### Jobs ###
  32.  
  33. Job {
  34. Name = "vampire-job"
  35. JobDefs = "jobdefs-vampire"
  36. Client = "vampire-fd"
  37. FileSet = "fileset-client-unix"
  38. Write Bootstrap = "/var/spool/bacula/vampire-fd.bsr"
  39. Enabled = "Yes"
  40. }
  41.  
  42. ### Job Backup Catalog ###
  43.  
  44. Job {
  45. Name = "catalog-job"
  46. JobDefs = "vampire-fd"
  47. Level = "Full"
  48. FileSet = "fileset-catalog"
  49. Client = "vampire-fd"
  50. Pool = "File-Daily"
  51. Schedule = "schedule-File"
  52. RunBeforeJob = "/usr/libexec/bacula/make_catalog_backup.pl bacula"
  53. RunAfterJob = "/usr/libexec/bacula/delete_catalog_backup"
  54. Write Bootstrap = "/var/spool/bacula/catalog.bsr"
  55. Priority = 99
  56. }
  57.  
  58. ### Job Restore ###
  59.  
  60. Job {
  61. Name = "restore-job"
  62. Type = "Restore"
  63. Client = "vampire-fd"
  64. FileSet = "fileset-full"
  65. Replace = "always"
  66. Storage = "File-Storage"
  67. Pool = "File-Daily"
  68. Messages = "job-messages"
  69. Where = "/tmp/bacula-restores"
  70. Enabled = "Yes"
  71. Priority = 10
  72. }
  73.  
  74. ### Job Verify ###
  75.  
  76. Job {
  77. Name = "verify-job"
  78. Type = "Verify"
  79. Client = "vampire-fd"
  80. Level = "VolumeToCatalog"
  81. Priority = 10
  82. FileSet = "fileset-full"
  83. Storage = "File-Storage"
  84. Pool = "File-Daily"
  85. Messages = "job-messages"
  86. }
  87.  
  88. ### FileSets ###
  89.  
  90. FileSet {
  91. Name = "fileset-client-unix"
  92. Include {
  93. Options {
  94. signature = "SHA1"
  95. onefs = "No"
  96. Exclude = "Yes"
  97. wild = "/tmp"
  98. wild = "/proc"
  99. wild = "/mnt"
  100. wild = "/sys"
  101. wild = "/net"
  102. wild = "/misc"
  103. wildfile = "*.iso"
  104. }
  105. File = "/"
  106. }
  107. }
  108.  
  109. FileSet {
  110. Name = "fileset-catalog"
  111. Include {
  112. Options {
  113. signature = "SHA1"
  114. }
  115. File = "/var/spool/bacula/bacula.sql"
  116. }
  117. }
  118.  
  119. ### Storage ###
  120.  
  121. Storage {
  122. Name = "File-Storage"
  123. Address = 10.0.1.9
  124. SDPort = 9103
  125. Password = "P@$$vampire2015PWD."
  126. Device = "File"
  127. MediaType = "File"
  128. MaximumConcurrentJobs = 10
  129. }
  130.  
  131. ### Pool ###
  132.  
  133. Pool {
  134. Name = "File-Daily"
  135. Pool Type = "Backup"
  136. Recycle = "Yes"
  137. Volume Retention = "13 Days"
  138. Purge Oldest Volume = "Yes"
  139. MaximumVolumeBytes = "200G"
  140. }
  141.  
  142. Pool {
  143. Name = "File-Weekly"
  144. Pool Type = "Backup"
  145. Recycle = "Yes"
  146. AutoPrune = "Yes"
  147. Volume Retention = "60 Days"
  148. Purge Oldest Volume = "Yes"
  149. MaximumVolumeBytes = "200G"
  150. }
  151.  
  152. Pool {
  153. Name = "File-Monthly"
  154. Pool Type = "Backup"
  155. Recycle = "Yes"
  156. AutoPrune = "Yes"
  157. Volume Retention = "365 Days"
  158. Purge Oldest Volume = "Yes"
  159. MaximumVolumeBytes = "200G"
  160. }
  161.  
  162. ### JobDefs ###
  163.  
  164. JobDefs {
  165. Name = "jobdefs-vampire"
  166. Type = "backup"
  167. Level = "Differential"
  168. FileSet = "fileset-client-unix"
  169. Schedule = "schedule-File"
  170. Storage = "File-Storage"
  171. RunScript {
  172. Runs On Failure = "No"
  173. Runs On Client = "No"
  174. Fail Job On Error = "Yes"
  175. Command = "/etc/bacula/scripts/postBaculaJob.pl -c \"%c\" - d \"%d\" -i \"%i\" -l \"%1\" -n \"%n\" -o /etc/bacula/status/%c_%n-status.log"
  176. Messages = "job-messages"
  177. Pool = "File-Daily"
  178. Priority = 10
  179. Write Bootstrap = "/var/spool/bacula/%c.bsr"
  180. Enabled = "Yes"
  181. }
  182.  
  183. ### Client ###
  184.  
  185. Client {
  186. Name = "vampire-fd"
  187. Address = "localhost"
  188. FDPort = 9102
  189. Catalog = "catalog"
  190. Password = "P@$$vampire2015PWD."
  191. File Retention = "60 Days"
  192. Job Retention = "1 Year"
  193. AutoPrune = "Yes"
  194. }
  195.  
  196. ### Catalog ###
  197.  
  198. Catalog {
  199. Name = "catalog"
  200. DBName = "bacula"
  201. User = "bacula"
  202. Password = "P@$$vampire2015PWD."
  203. DB Address = 3306
  204. DB Port = 3306
  205. }
  206.  
  207. ### Console ###
  208.  
  209. Console {
  210. Name = "vampire-mon"
  211. Password = "P@$$vampire2015PWD."
  212. CommandACL = "status, .status"
  213. }
  214.  
  215. ### Messages ###
  216.  
  217. Messages {
  218. Name = "daemon-messages"
  219. Mailcommand = "/usr/sbin/bsmtp -h mail.anfer.eng.br -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
  220. Mail = "crystian@anfer.eng.br = all, !skipped"
  221. Console = "all, !skipped, !saved"
  222. Append = "/var/log/bacula/bacula.log" = all, !skipped
  223. }
  224.  
  225. Messages {
  226. Name = "job-messsages"
  227. Mailcommand = "/usr/sbin/bsmtp -h mail.anfer.eng.br -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
  228. OperatorCommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
  229. Mail = "crystian@anfer.eng.br = all, !skipped"
  230. Mail on error = "crystian@anfer.eng.br = all, !skipped"
  231. Operator = "crystian@anfer.eng.br = mount"
  232. Console = "all, !skipped, !saved"
  233. Append = "/var/log/bacula/bacula.log" = all, !skipped
  234. Catalog = "all, !skipped, !saved"
  235. }
  236.  
  237. ### Schedule ###
  238.  
  239. Schedule {
  240. Name = "schedule-File"
  241. Run = "Level=Differential Pool=File-Daily Monday-Thursday at 18:30"
  242. Run = "Level=Full Pool=File-Weekly 2nd 3rd 4th 5th Friday at 18:30"
  243. Run = "Level=Full Pool=File-Monthly 1st Friday at 18:30"
  244. }
  245. [root@vampire bacula]#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement