Guest User

Untitled

a guest
Dec 23rd, 2017
381
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.19 KB | None | 0 0
  1. Director {
  2. Name = NONAME-Backups-dir
  3. QueryFile = "/etc/bacula/scripts/query.sql"
  4. WorkingDirectory = "/var/lib/bacula"
  5. PidDirectory = "/var/run/bacula"
  6. Maximum Concurrent Jobs = 1
  7. Pass = "NULL"
  8. Messages = Daemon
  9.  
  10. DirAddresses = {
  11. ip = { addr = 127.0.0.1 }
  12. ip = { addr = 192.168.1.54 }
  13. }
  14.  
  15. }
  16.  
  17. Job {
  18. Name = "Restore-Basic"
  19. Type = Restore
  20. Client=NONAME-Backups-fd
  21. FileSet="FILESET-FullSet"
  22. Storage = STORAGE-Default
  23. Pool = POOL-Default
  24. Messages = Standard
  25. Where = /restore
  26. }
  27.  
  28. Job {
  29. Name = "Restore-BareMetal"
  30. Type = Restore
  31. Client=NONAME-Backups-fd
  32. FileSet="FILESET-FullSet"
  33. Storage = STORAGE-Default
  34. Pool = POOL-Default
  35. Messages = Standard
  36. Where = /
  37. }
  38.  
  39. Job {
  40. Name = "JOB-x0.NONAME.com"
  41. JobDefs = "JOBDEFS-x0.NONAME.com"
  42. Accurate = yes
  43. }
  44.  
  45. Job {
  46. Name = "JOB-x1.NONAME.com"
  47. JobDefs = "JOBDEFS-x1.NONAME.com"
  48. Accurate = yes
  49.  
  50. Client Run Before Job = "/scripts/runbackup"
  51. Client Run After Job = "/scripts/postcpbackup"
  52. }
  53.  
  54. JobDefs {
  55. Name = "JOBDEFS-x0.NONAME.com"
  56. Type = Backup
  57. Level = Incremental
  58. Client = x0.NONAME.com-fd
  59. FileSet = "FILESET-x0.NONAME.com"
  60. Schedule = "SCHEDULE-x0.NONAME.com"
  61. Messages = Standard
  62. Pool = POOL-x0.NONAME.com-Daily
  63. Priority = 10
  64. }
  65.  
  66. JobDefs {
  67. Name = "JOBDEFS-x1.NONAME.com"
  68. Type = Backup
  69. Level = Incremental
  70. Client = x1.NONAME.com-fd
  71. FileSet = "FILESET-x1.NONAME.com"
  72. Schedule = "SCHEDULE-x1.NONAME.com"
  73. Messages = Standard
  74. Pool = POOL-x1.NONAME.com-Daily
  75. Priority = 10
  76. }
  77.  
  78. FileSet {
  79. Name = "FILESET-FullSet"
  80. Include {
  81. Options {
  82. signature = MD5
  83. }
  84.  
  85. File = /
  86. }
  87. }
  88.  
  89. FileSet {
  90. Name = "FILESET-x0.NONAME.com"
  91. Include {
  92. Options {
  93. signature = MD5
  94. onefs = no
  95. }
  96. File = /
  97. }
  98.  
  99. Exclude {
  100. File = /proc
  101. File = /tmp
  102. File = /.journal
  103. File = /.fsck
  104. File = /dev
  105. File = /selinux
  106. File = /sys
  107. File = /lost+found
  108. }
  109. }
  110.  
  111. FileSet {
  112. Name = "FILESET-x1.NONAME.com"
  113. Include {
  114. Options {
  115. signature = MD5
  116. onefs = no
  117. }
  118. File = /
  119. }
  120.  
  121. Exclude {
  122. File = /proc
  123. File = /tmp
  124. File = /.journal
  125. File = /.fsck
  126. File = /dev
  127. File = /selinux
  128. File = /sys
  129. File = /lost+found
  130. File = /home/virtfs
  131. }
  132. }
  133.  
  134. Schedule {
  135. Name = "SCHEDULE-x0.NONAME.com"
  136.  
  137.  
  138. Run = Level=VirtualFull IncrementalPool=POOL-x0.NONAME.com-Daily FullPool=POOL-x0.NONAME.com-Weekly sun at 12:00
  139. Run = Level=Incremental IncrementalPool=POOL-x0.NONAME.com-Daily FullPool=POOL-x0.NONAME.com-Weekly sun-sat at 00:00
  140. }
  141.  
  142. Schedule {
  143. Name = "SCHEDULE-x1.NONAME.com"
  144.  
  145.  
  146. Run = Level=VirtualFull IncrementalPool=POOL-x1.NONAME.com-Daily FullPool=POOL-x1.NONAME.com-Weekly sun at 12:00
  147. Run = Level=Incremental IncrementalPool=POOL-x1.NONAME.com-Daily FullPool=POOL-x1.NONAME.com-Weekly sun-sat at 01:00
  148. }
  149.  
  150. Client {
  151. Name = NONAME-Backups-fd
  152. Address = localhost
  153. FDPort = 9102
  154. Heartbeat Interval = 5 minutes
  155. Catalog = MyCatalog
  156. Pass = "NULL" # Pass for FileDaemon
  157. File Retention = 30 days # 30 days
  158. Job Retention = 6 months # six months
  159. AutoPrune = yes # Prune expired Jobs/Files
  160. }
  161.  
  162. Client {
  163. Name = x0.NONAME.com-fd
  164. Address = x0.NONAME.com
  165. FDPort = 9102
  166. Heartbeat Interval = 5 minutes
  167. Catalog = MyCatalog
  168. Pass = "NULL" # Pass for FileDaemon
  169. File Retention = 30 days # 30 days
  170. Job Retention = 6 months # six months
  171. AutoPrune = yes # Prune expired Jobs/Files
  172. }
  173.  
  174. Client {
  175. Name = x1.NONAME.com-fd
  176. Address = x1.NONAME.com
  177. FDPort = 9102
  178. Heartbeat Interval = 30 sec
  179. Catalog = MyCatalog
  180. Pass = "NULL"
  181. File Retention = 30 days # 30 days
  182. Job Retention = 6 months # six months
  183. AutoPrune = yes # Prune expired Jobs/Files
  184. }
  185.  
  186. Storage {
  187. Name = STORAGE-Default
  188. Address = home.NONAME.com # N.B. Use a fully qualified name here
  189. SDPort = 9103
  190. Pass = "NULL"
  191. Device = DEVICE-Default
  192. Media Type = File
  193. }
  194.  
  195. Storage {
  196. Name = STORAGE-x0.NONAME.com-1
  197. Address = home.NONAME.com # N.B. Use a fully qualified name here
  198. SDPort = 9103
  199. Pass = "NULL"
  200. Device = DEVICE-x0.NONAME.com-1
  201. Media Type = File
  202. }
  203.  
  204. Storage {
  205. Name = STORAGE-x0.NONAME.com-2
  206. Address = home.NONAME.com # N.B. Use a fully qualified name here
  207. SDPort = 9103
  208. Pass = "NULL"
  209. Device = DEVICE-x0.NONAME.com-2
  210. Media Type = File
  211. }
  212.  
  213. Storage {
  214. Name = STORAGE-x1.NONAME.com-1
  215. Address = home.NONAME.com # N.B. Use a fully qualified name here
  216. SDPort = 9103
  217. Pass = "NULL"
  218. Device = DEVICE-x1.NONAME.com-1
  219. Media Type = File
  220. }
  221.  
  222. Storage {
  223. Name = STORAGE-x1.NONAME.com-2
  224. Address = home.NONAME.com # N.B. Use a fully qualified name here
  225. SDPort = 9103
  226. Pass = "NULL"
  227. Device = DEVICE-x1.NONAME.com-2
  228. Media Type = File
  229. }
  230.  
  231. Catalog {
  232. Name = MyCatalog
  233. dbname = "bacula"; dbuser = "bacula"; dbPass = "ety245p"
  234. }
  235.  
  236. Messages {
  237. Name = Standard
  238.  
  239. mailcommand = "/usr/local/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
  240. operatorcommand = "/usr/local/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
  241. mail = NOONE@NONAME.com = all, !skipped
  242. operator = root@localhost = mount
  243. console = all, !skipped, saved
  244. append = "/var/lib/bacula/log" = all, !skipped
  245. }
  246.  
  247.  
  248. Messages {
  249. Name = Daemon
  250. mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
  251. mail = root@localhost = all, !skipped
  252. console = all, !skipped, saved
  253. append = "/var/lib/bacula/log" = all, !skipped
  254. }
  255.  
  256. Pool {
  257. Name = POOL-Default
  258. Storage = STORAGE-Default
  259. Pool Type = Backup
  260. Recycle = yes
  261. AutoPrune = yes
  262. Volume Retention = 1 days
  263. }
  264.  
  265. Pool {
  266. Name = POOL-x0.NONAME.com-Daily
  267. Storage = STORAGE-x0.NONAME.com-1
  268. Pool Type = Backup
  269. Recycle = yes
  270. AutoPrune = yes
  271. Maximum Volumes = 14
  272. Use Volume Once = yes
  273. Purge Oldest Volume = yes
  274. Volume Retention = 1 days
  275. Next Pool = POOL-x0.NONAME.com-Weekly
  276. }
  277.  
  278. Pool {
  279. Name = POOL-x0.NONAME.com-Weekly
  280. Storage = STORAGE-x0.NONAME.com-2
  281. Pool Type = Backup
  282. Recycle = yes
  283. AutoPrune = yes
  284. Maximum Volumes = 2
  285. Use Volume Once = yes
  286. Purge Oldest Volume = yes
  287. Volume Retention = 1 days
  288. }
  289.  
  290. Pool {
  291. Name = POOL-x1.NONAME.com-Daily
  292. Storage = STORAGE-x1.NONAME.com-1
  293. Pool Type = Backup
  294. Recycle = yes
  295. AutoPrune = yes
  296. Maximum Volumes = 14
  297. Use Volume Once = yes
  298. Purge Oldest Volume = yes
  299. Next Pool = POOL-x1.NONAME.com-Weekly
  300. Volume Retention = 1 days
  301. }
  302.  
  303. Pool {
  304. Name = POOL-x1.NONAME.com-Weekly
  305. Storage = STORAGE-x1.NONAME.com-2
  306. Pool Type = Backup
  307. Recycle = yes
  308. AutoPrune = yes
  309. Maximum Volumes = 2
  310. Use Volume Once = yes
  311. Purge Oldest Volume = yes
  312. Volume Retention = 1 days
  313. }
  314.  
  315. Console {
  316. Name = NONAME-Backups-mon
  317. Pass = "NULL"
  318. CommandACL = status, .status
  319. }
Add Comment
Please, Sign In to add comment