Advertisement
Guest User

Untitled

a guest
May 13th, 2017
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.11 KB | None | 0 0
  1. ##########################################
  2. # JOBS
  3. ##########################################
  4. Job {
  5. Name = "olaf"
  6. JobDefs = "DefaultJob"
  7. Schedule = "default"
  8. Client = olaf
  9. }
  10.  
  11. Job {
  12. Name = "violet"
  13. JobDefs = "DefaultJob"
  14. Schedule = "default"
  15. Client = violet
  16. }
  17.  
  18. Job {
  19. Name = "isadora"
  20. JobDefs = "DefaultJob"
  21. Schedule = "default"
  22. Client = isadora
  23. }
  24.  
  25. Job {
  26. Name = "duncan"
  27. JobDefs = "DefaultJob"
  28. Schedule = "default"
  29. Client = duncan
  30. }
  31.  
  32. Job {
  33. Name = "klaus"
  34. JobDefs = "DefaultJob"
  35. Schedule = "default"
  36. Client = klaus
  37. }
  38.  
  39. Job {
  40. Name = "quigley"
  41. JobDefs = "DefaultJob"
  42. Schedule = "default"
  43. Client = quigley
  44. }
  45.  
  46. Job {
  47. Name = "poe"
  48. JobDefs = "DefaultJob"
  49. Schedule = "default"
  50. Client = poe
  51. }
  52.  
  53. Job {
  54. Name = "BackupCatalog"
  55. JobDefs = "DefaultJob"
  56. Level = Full
  57. FileSet = "Catalog"
  58. client = duncan
  59. Schedule = "WeeklyCycleAfterBackup"
  60. RunBeforeJob = "/usr/local/bacula/etc/scripts/make_catalog_backup.pl Catalog"
  61. RunAfterJob = "/usr/local/bacula/etc/scripts/delete_catalog_backup"
  62. Write Bootstrap = "/usr/local/bacula/var/bacula/working/%n.bsr"
  63. Priority = 11 # run after main backup
  64. }
  65.  
  66. JobDefs {
  67. Name = "DefaultJob"
  68. Type = Backup
  69. Level = Incremental
  70. FileSet = "linux-system-full"
  71. Schedule = "WeeklyCycle""
  72. Storage = FileArchive
  73. Pool = File
  74. Priority = 10
  75. Messages = Standard
  76. Write Bootstrap = "/usr/local/bacula/var/bacula/working/%c.bsr"
  77. }
  78.  
  79. # Restore Job
  80. Job {
  81. Name = "restorefiles"
  82. Type = Restore
  83. Client = duncan
  84. FileSet="linux-system-full"
  85. Storage = FileArchive
  86. Pool = File
  87. Messages = Standard
  88. Where = /tmp/bacula-restores/
  89. }
  90.  
  91. ##########################################
  92. # Clientes
  93. ##########################################
  94. Client {
  95. Name = olaf
  96. Address = olaf
  97. FDPort = 9102
  98. Catalog = Catalog
  99. Password = "MVslY9F6mp3Y7K9vXj6Dsvkaqy7HOUr6P5qmvnozdO1r"
  100. File Retention = 30 days
  101. Job Retention = 6 months
  102. AutoPrune = yes
  103. }
  104.  
  105. Client {
  106. Name = violet
  107. Address = violet
  108. FDPort = 9102
  109. Catalog = Catalog
  110. Password = "MVslY9F6mp3Y7K9vXj6Dsvkaqy7HOUr6P5qmvnozdO1r"
  111. File Retention = 30 days
  112. Job Retention = 6 months
  113. AutoPrune = yes
  114. }
  115.  
  116. Client {
  117. Name = isadora
  118. Address = isadora
  119. FDPort = 9102
  120. Catalog = Catalog
  121. Password = "MVslY9F6mp3Y7K9vXj6Dsvkaqy7HOUr6P5qmvnozdO1r"
  122. File Retention = 30 days
  123. Job Retention = 6 months
  124. AutoPrune = yes
  125. }
  126.  
  127. Client {
  128. Name = duncan
  129. Address = duncan
  130. FDPort = 9102
  131. Catalog = Catalog
  132. Password = "MVslY9F6mp3Y7K9vXj6Dsvkaqy7HOUr6P5qmvnozdO1r"
  133. File Retention = 30 days
  134. Job Retention = 6 months
  135. AutoPrune = yes
  136. }
  137.  
  138. Client {
  139. Name = klaus
  140. Address = klaus
  141. FDPort = 9102
  142. Catalog = Catalog
  143. Password = "MVslY9F6mp3Y7K9vXj6Dsvkaqy7HOUr6P5qmvnozdO1r"
  144. File Retention = 30 days
  145. Job Retention = 6 months
  146. AutoPrune = yes
  147. }
  148.  
  149. Client {
  150. Name = quigley
  151. Address = quigley
  152. FDPort = 9102
  153. Catalog = Catalog
  154. Password = "MVslY9F6mp3Y7K9vXj6Dsvkaqy7HOUr6P5qmvnozdO1r"
  155. File Retention = 30 days
  156. Job Retention = 6 months
  157. AutoPrune = yes
  158. }
  159.  
  160. Client {
  161. Name = poe
  162. Address = poe
  163. FDPort = 9102
  164. Catalog = Catalog
  165. Password = "MVslY9F6mp3Y7K9vXj6Dsvkaqy7HOUr6P5qmvnozdO1r"
  166. File Retention = 30 days
  167. Job Retention = 6 months
  168. AutoPrune = yes
  169. }
  170.  
  171. ##########################################
  172. # SCHEDULES
  173. ##########################################
  174.  
  175. Schedule {
  176. Name = "default"
  177. Run = Full Pool=Monthly 1st sun at 23:05
  178. Run = Differential Pool=Weekly 2nd-5th sun at 23:05
  179. Run = Incremental Pool=Daily mon-sat at 23:05
  180. }
  181.  
  182. Schedule {
  183. Name = "WeeklyCycle"
  184. Run = Full 1st sun at 23:05
  185. Run = Differential 2nd-5th sun at 23:05
  186. Run = Incremental mon-sat at 23:05
  187. }
  188.  
  189. Schedule {
  190. Name = "WeeklyCycleAfterBackup"
  191. Run = Full sun-sat at 23:10
  192. }
  193.  
  194. ##########################################
  195. # POOLS
  196. ##########################################
  197. Pool {
  198. Name = File
  199. Pool Type = Backup
  200. Recycle = yes
  201. AutoPrune = yes
  202. Volume Retention = 365 days
  203. Maximum Volume Bytes = 20G
  204. Maximum Volumes = 4
  205. }
  206.  
  207. Pool {
  208. Name = Monthly
  209. Pool Type = Backup
  210. Recycle = yes
  211. AutoPrune = yes
  212. Volume Retention = 105 days
  213. File Retention = 105 days
  214. Maximum Volume Bytes = 30G
  215. Maximum Volumes = 4
  216. }
  217.  
  218. Pool {
  219. Name = Weekly
  220. Pool Type = Backup
  221. Recycle = yes
  222. AutoPrune = yes
  223. Volume Retention = 43 days
  224. File Retention = 43 days
  225. Maximum Volume Bytes = 10G
  226. Maximum Volumes = 4
  227. }
  228.  
  229. Pool {
  230. Name = Daily
  231. Pool Type = Backup
  232. Recycle = yes
  233. AutoPrune = yes
  234. Volume Retention = 8 days
  235. File Retention = 8 days
  236. Maximum Volume Bytes = 10G
  237. Maximum Volumes = 4
  238. }
  239.  
  240. ##########################################
  241. # FILE SETS
  242. ##########################################
  243.  
  244. FileSet {
  245. Name = "linux-system-full"
  246. Include {
  247. Options {
  248. signature = MD5
  249. OneFS = no
  250. Compression = GZIP
  251. NoAtime = Yes
  252. CheckFileChanges = No
  253. ACLSupport = Yes
  254. ReadFIFO = No
  255. }
  256. File = /
  257. }
  258. Exclude {
  259. File = .tmp
  260. File = .journal
  261. File = .fsck
  262. File = cache
  263. File = lost+found
  264. File = /backup
  265. File = /proc
  266. File = /tmp
  267. File = /sys
  268. File = /dev
  269. File = /var/tmp
  270. File = /cdrom
  271. File = /media
  272. File = /mnt
  273. }
  274. }
  275.  
  276. FileSet {
  277. Name = "Catalog"
  278. Include {
  279. Options {
  280. signature = MD5
  281. }
  282. File = "/usr/local/bacula/var/bacula/working/bacula.sql"
  283. }
  284. }
  285.  
  286. # Nao ha necessidade mudar daqui pra baixo
  287.  
  288. #########################################
  289. # DIRECTOR ! About ME!
  290. #########################################
  291. Director {
  292. Name = Diretor
  293. Password = "Ct787qHeDrnORSsHCX8zr8rJA2BZlD/3QbVzp8GzdLMy"
  294. Messages = Daemon
  295. Working Directory = "/usr/local/bacula/var/bacula/working"
  296. Pid Directory = "/var/run/bacula/"
  297. QueryFile = "/usr/local/bacula/etc/scripts/query.sql"
  298. Maximum Concurrent Jobs = 1
  299. }
  300.  
  301. Messages {
  302. Name = Standard
  303. mailcommand = "/usr/local/bacula/sbin/bsmtp -h mail -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
  304. operatorcommand = "/usr/local/bacula/sbin/bsmtp -h mail -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
  305. mail = root@ = all, !skipped
  306. operator = root@ = mount
  307. console = all, !skipped, !saved
  308. append = "/usr/local/bacula/var/bacula/working/log" = all, !skipped
  309. catalog = all, !skipped, !saved
  310. }
  311.  
  312. Messages {
  313. Name = Daemon
  314. mailcommand = "/usr/local/bacula/sbin/bsmtp -h mail -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
  315. mail = root@ = all, !skipped
  316. console = all, !skipped, !saved
  317. append = "/usr/local/bacula/var/bacula/working/log" = all, !skipped
  318. catalog = all, !skipped, !saved
  319. }
  320.  
  321. ################################
  322. # STORAGES
  323. ################################
  324. Storage {
  325. Name = FileArchive
  326. Address = olaf
  327. SDPort = 9103
  328. Password = "DBa5Jq+WeLODy0F+IQna8mcGAzdtRKdzTFbuyksar79P"
  329. Device = Disco
  330. Media Type = File
  331. }
  332.  
  333. Storage {
  334. Name = SDT-11000
  335. Device = SDT-11000
  336. Address = olaf
  337. SDPort = 9103
  338. Password = "DBa5Jq+WeLODy0F+IQna8mcGAzdtRKdzTFbuyksar79P"
  339. Media Type = DDS-4
  340. Autochanger = no
  341. }
  342.  
  343. Storage {
  344. Name = DVDRW
  345. Address = olaf
  346. SDPort = 9103
  347. Password = "DBa5Jq+WeLODy0F+IQna8mcGAzdtRKdzTFbuyksar79P"
  348. Device = "DVDRW"
  349. MediaType = "DVD-5"
  350. }
  351.  
  352. ################################
  353. # CATALOG
  354. ################################
  355. Catalog {
  356. Name = Catalog
  357. dbdriver = "dbi:postgresql"; dbaddress = 127.0.0.1; dbport = 5432
  358. dbname = "bacula"; dbuser = "bacula"; dbpassword = "bacula"
  359. }
  360.  
  361.  
  362. #################################
  363. # CONSOLE
  364. #################################
  365. Console {
  366. Name = duncan-mon
  367. Password = "bmbriZPrTuz7MKq+vFlrJqJmuKz/Qxtd2lefbSrESPqG"
  368. CommandACL = status, .status
  369. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement