Advertisement
Guest User

Untitled

a guest
May 14th, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.56 KB | None | 0 0
  1. ##########################################
  2. # JOBS
  3. ##########################################
  4. Job {
  5. Name = "olaf"
  6. JobDefs = "DefaultJob"
  7. Schedule = "MySchedule"
  8. Accurate=yes
  9. Client = olaf
  10. }
  11.  
  12. Job {
  13. Name = "violet"
  14. JobDefs = "DefaultJob"
  15. Schedule = "MySchedule"
  16. Accurate=yes
  17. Client = violet
  18. }
  19.  
  20. Job {
  21. Name = "isadora"
  22. JobDefs = "DefaultJob"
  23. Schedule = "MySchedule"
  24. Accurate=yes
  25. Client = isadora
  26. }
  27.  
  28. Job {
  29. Name = "duncan"
  30. JobDefs = "DefaultJob"
  31. Schedule = "MySchedule"
  32. Accurate=yes
  33. Client = duncan
  34. }
  35.  
  36. Job {
  37. Name = "klaus"
  38. JobDefs = "DefaultJob"
  39. Schedule = "MySchedule"
  40. Accurate=yes
  41. Client = klaus
  42. }
  43.  
  44. Job {
  45. Name = "quigley"
  46. JobDefs = "DefaultJob"
  47. Schedule = "MySchedule"
  48. Accurate=yes
  49. Client = quigley
  50. }
  51.  
  52. Job {
  53. Name = "poe"
  54. JobDefs = "DefaultJob"
  55. Schedule = "MySchedule"
  56. Accurate=yes
  57. Client = poe
  58. }
  59.  
  60.  
  61. # My goal is:
  62. #
  63. # - Every weekday copy all my
  64. # scheduled VirtualFull to a tape
  65. # - These tapes will rotated every
  66. # weekday (sun,mon,thu,wed,thr,fri)
  67. # - No saturday, sunday will be run
  68. # backuping those 2 days
  69. # - These tapes will be labeled using
  70. # weekday names
  71.  
  72.  
  73. # Copy virtual to tape drive
  74. # This confguration doesn't looks
  75. # very elegant
  76.  
  77. Job {
  78. Name = "virtual2tape"
  79.  
  80. # I dont want schedule right now!
  81. #Schedule = "DailyCopy2Tape"
  82.  
  83. # This is my Virtual Backup Pool
  84. Pool = "VirtualBackup"
  85.  
  86. # I want to copy (not migrate)
  87. Type = Copy
  88.  
  89. # Do I need a Migrate job to each
  90. # Job? If everything that I want
  91. # migrate is on a single volume?
  92. client = olaf
  93.  
  94. # Do i need set a fileset? if I want
  95. # to copy everything from everyjob
  96. # inside a volume?
  97. FileSet = "linux-system-full"
  98.  
  99. # This is the right Type?
  100. Selection Type = Job
  101.  
  102. # Everything in that volume, this
  103. # works?
  104. Selection Pattern = "*"
  105.  
  106. # Default things. Do not care about!
  107. Messages = Standard
  108. Write Bootstrap = "/usr/local/bacula/var/bacula/working/%c.bsr"
  109. Priority = 12 #run after virtual full
  110. }
  111.  
  112. Job {
  113. Name = "CatalogBackup"
  114. JobDefs = "DefaultJob"
  115. Level = Full
  116. FileSet = "MyCatalog"
  117. client = duncan
  118. Schedule = "WeeklyCycleAfterBackup"
  119. RunBeforeJob = "/usr/local/bacula/etc/scripts/make_catalog_backup.pl Catalogo"
  120. RunAfterJob = "/usr/local/bacula/etc/scripts/delete_catalog_backup"
  121. Write Bootstrap = "/usr/local/bacula/var/bacula/working/%n.bsr"
  122. Priority = 13 # run after virtual2tape backup
  123. }
  124.  
  125. JobDefs {
  126. Name = "DefaultJob"
  127. Type = Backup
  128. Level = Incremental
  129. FileSet = "linux-system-full"
  130. Schedule = "MySchedule"
  131. Storage = Disk
  132. Pool = Disk
  133. Priority = 10
  134. Messages = Standard
  135. Write Bootstrap = "/usr/local/bacula/var/bacula/working/%c.bsr"
  136. }
  137.  
  138. # Restore Job
  139. Job {
  140. Name = "RestoreFiles"
  141. Type = Restore
  142. Client = duncan
  143. FileSet="linux-system-full"
  144. Storage = Disk
  145. Pool = Disk
  146. Messages = Standard
  147. Where = /tmp/bacula-restores/
  148. }
  149.  
  150. ##########################################
  151. # Clientes
  152. ##########################################
  153. Client {
  154. Name = olaf
  155. Address = olaf
  156. FDPort = 9102
  157. Catalog = MyCatalog
  158. Password = ""
  159. File Retention = 30 days
  160. Job Retention = 6 months
  161. AutoPrune = yes
  162. }
  163.  
  164. Client {
  165. Name = violet
  166. Address = violet
  167. FDPort = 9102
  168. Catalog = MyCatalog
  169. Password = ""
  170. File Retention = 30 days
  171. Job Retention = 6 months
  172. AutoPrune = yes
  173. }
  174.  
  175. Client {
  176. Name = isadora
  177. Address = isadora
  178. FDPort = 9102
  179. Catalog = MyCatalog
  180. Password = ""
  181. File Retention = 30 days
  182. Job Retention = 6 months
  183. AutoPrune = yes
  184. }
  185.  
  186. Client {
  187. Name = duncan
  188. Address = duncan
  189. FDPort = 9102
  190. Catalog = MyCatalog
  191. Password = ""
  192. File Retention = 30 days
  193. Job Retention = 6 months
  194. AutoPrune = yes
  195. }
  196.  
  197. Client {
  198. Name = klaus
  199. Address = klaus
  200. FDPort = 9102
  201. Catalog = MyCatalog
  202. Password = ""
  203. File Retention = 30 days
  204. Job Retention = 6 months
  205. AutoPrune = yes
  206. }
  207.  
  208. Client {
  209. Name = quigley
  210. Address = quigley
  211. FDPort = 9102
  212. Catalog = MyCatalog
  213. Password = ""
  214. File Retention = 30 days
  215. Job Retention = 6 months
  216. AutoPrune = yes
  217. }
  218.  
  219. Client {
  220. Name = poe
  221. Address = poe
  222. FDPort = 9102
  223. Catalog = MyCatalog
  224. Password = ""
  225. File Retention = 30 days
  226. Job Retention = 6 months
  227. AutoPrune = yes
  228. }
  229.  
  230. ##########################################
  231. # SCHEDULES
  232. ##########################################
  233.  
  234. Schedule {
  235. Name = "MySchedule"
  236. Run = Full Pool=Monthly 1st sun at 23:05
  237. Run = Differential Pool=Weekly 2nd-5th sun at 23:05
  238. Run = Incremental Pool=Daily mon-sat at 23:05
  239. Run = VirtualFull Pool=Disk Priority=11 sun-sat at 23:10
  240. }
  241.  
  242. # This schedule isnt right, is it?
  243. #Schedule {
  244. # Name = "DailyCopy2Tape"
  245. # Run = Full sun-fri at 23:15
  246. #}
  247.  
  248. Schedule {
  249. Name = "WeeklyCycleAfterBackup"
  250. Run = Full sun-sat at 23:20
  251. }
  252.  
  253. ##########################################
  254. # POOLS
  255. ##########################################
  256. Pool {
  257. Name = Disk
  258. Pool Type = Backup
  259. Recycle = yes
  260. AutoPrune = yes
  261. LabelFormat = "Vol"
  262. Volume Retention = 365 days
  263. Maximum Volume Bytes = 20G
  264. Maximum Volumes = 10
  265. Next Pool = VirtualBackup
  266. }
  267.  
  268. Pool {
  269. Name = Monthly
  270. Pool Type = Backup
  271. Recycle = yes
  272. AutoPrune = yes
  273. LabelFormat = "Monthly"
  274. Volume Retention = 104 days
  275. File Retention = 105 days
  276. Maximum Volumes = 10
  277. Next Pool = VirtualBackup
  278. }
  279.  
  280. Pool {
  281. Name = Weekly
  282. Pool Type = Backup
  283. Recycle = yes
  284. AutoPrune = yes
  285. LabelFormat = "Weekly"
  286. Volume Retention = 42 days
  287. File Retention = 43 days
  288. Maximum Volumes = 10
  289. Next Pool = VirtualBackup
  290. }
  291.  
  292. Pool {
  293. Name = Daily
  294. Pool Type = Backup
  295. Recycle = yes
  296. AutoPrune = yes
  297. LabelFormat = "Daily"
  298. Volume Retention = 7 days
  299. File Retention = 8 days
  300. Maximum Volumes = 10
  301. Next Pool = VirtualBackup
  302. }
  303.  
  304. Pool {
  305. Name = VirtualBackup
  306. Pool Type = Backup
  307. Recycle = yes
  308. AutoPrune = yes
  309. File Retention = 1d
  310. Volume Retention = 1d
  311. Maximum Volumes = 1
  312. Label Format = "Virtual"
  313. Storage = Virtual
  314. Next Pool = vtape
  315. }
  316.  
  317. Pool {
  318. Name = vtape
  319. Pool Type = Backup
  320. Storage = SDT-11000
  321. Recycle = yes
  322. AutoPrune = yes
  323. LabelFormat = "vtape"
  324. File Retention = 1d
  325. Volume Retention = 1d
  326. Maximum Volumes = 1
  327. }
  328.  
  329. ##########################################
  330. # FILE SETS
  331. ##########################################
  332.  
  333. FileSet {
  334. Name = "linux-system-full"
  335. Include {
  336. Options {
  337. signature = MD5
  338. OneFS = no
  339. Compression = GZIP
  340. NoAtime = Yes
  341. CheckFileChanges = No
  342. ACLSupport = Yes
  343. ReadFIFO = No
  344. }
  345. File = /
  346. }
  347. Exclude {
  348. File = .tmp
  349. File = .journal
  350. File = .fsck
  351. File = cache
  352. File = /lost+found
  353. File = /backup
  354. File = /proc
  355. File = /tmp
  356. File = /sys
  357. File = /dev
  358. File = /var/tmp
  359. File = /cdrom
  360. File = /media
  361. File = /mnt
  362. File = /srv/iso
  363. }
  364. }
  365.  
  366. FileSet {
  367. Name = "MyCatalog"
  368. Include {
  369. Options {
  370. signature = MD5
  371. }
  372. File = "/usr/local/bacula/var/bacula/working/bacula.sql"
  373. }
  374. }
  375.  
  376. #########################################
  377. # DIRECTOR ! About ME!
  378. #########################################
  379. Director {
  380. Name = Director
  381. Password =
  382. Messages = Daemon
  383. Working Directory = "/usr/local/bacula/var/bacula/working"
  384. Pid Directory = "/var/run/bacula/"
  385. QueryFile = "/usr/local/bacula/etc/scripts/query.sql"
  386. Maximum Concurrent Jobs = 2
  387. }
  388.  
  389. Messages {
  390. Name = Standard
  391. mailcommand = "/usr/local/bacula/sbin/bsmtp -h mail -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
  392. operatorcommand = "/usr/local/bacula/sbin/bsmtp -h mail -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
  393. mail = root@ = all, !skipped
  394. operator = root@ = mount
  395. console = all, !skipped, !saved
  396. append = "/usr/local/bacula/var/bacula/working/log" = all, !skipped
  397. catalog = all, !skipped, !saved
  398. }
  399.  
  400. Messages {
  401. Name = Daemon
  402. mailcommand = "/usr/local/bacula/sbin/bsmtp -h mail -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
  403. mail = root@ = all, !skipped
  404. console = all, !skipped, !saved
  405. append = "/usr/local/bacula/var/bacula/working/log" = all, !skipped
  406. catalog = all, !skipped, !saved
  407. }
  408.  
  409. ################################
  410. # STORAGES
  411. ################################
  412. Storage {
  413. Name = Disk
  414. Address = olaf
  415. SDPort = 9103
  416. Password = ""
  417. Device = Disk
  418. Media Type = File
  419. }
  420.  
  421. Storage {
  422. Name = Virtual
  423. Address = olaf
  424. SDPort = 9103
  425. Password = ""
  426. Device = Virtual
  427. Media Type = File
  428. }
  429.  
  430. Storage {
  431. Name = SDT-11000
  432. Device = SDT-11000
  433. Address = olaf
  434. SDPort = 9103
  435. Password = ""
  436. Media Type = DDS-4
  437. Autochanger = no
  438. }
  439.  
  440. Storage {
  441. Name = DVDRW
  442. Address = olaf
  443. SDPort = 9103
  444. Password = ""
  445. Device = "DVDRW"
  446. MediaType = "DVD-5"
  447. }
  448.  
  449. ################################
  450. # CATALOG
  451. ################################
  452. Catalog {
  453. Name = MyCatalog
  454. dbdriver = "dbi:postgresql"; dbaddress = 127.0.0.1; dbport = 5432
  455. dbname = "bacula"; dbuser = "bacula"; dbpassword = ""
  456. }
  457.  
  458.  
  459. #################################
  460. # CONSOLE
  461. #################################
  462. Console {
  463. Name = duncan-mon
  464. Password = ""
  465. CommandACL = status, .status
  466. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement