Advertisement
Guest User

Untitled

a guest
Jun 14th, 2017
535
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.95 KB | None | 0 0
  1. Director { # define myself
  2. Name = tea-bk1-dir
  3. DIRport = 9101 # where we listen for UA connections
  4. QueryFile = "/usr/libexec/bacula/query.sql"
  5. WorkingDirectory = "/var/lib/bacula"
  6. PidDirectory = "/var/run"
  7. Maximum Concurrent Jobs = 1
  8. Password = "foobar" # Console password
  9. Messages = Daemon
  10. }
  11.  
  12. JobDefs {
  13. Name = "DefaultJob"
  14. Type = Backup
  15. Level = Incremental
  16. Client = tea-bk1-fd
  17. FileSet = "Full Set"
  18. Schedule = "WeeklyCycle"
  19. #Storage = File
  20. Storage = LTO-3
  21. Messages = Standard
  22. Pool = Default
  23. Priority = 10
  24. }
  25.  
  26. JobDefs {
  27. Name = "Full TEA-WWW"
  28. Type = Backup
  29. Level = Full
  30. Client = tea-www-fd
  31. FileSet = "tea-www"
  32. Schedule = "WeeklyCycle"
  33. #Storage = File
  34. Storage = LTO-3
  35. Messages = Standard
  36. Pool = www-pool
  37. Priority = 10
  38. }
  39.  
  40. JobDefs {
  41. Name = "Full TEA-SQL"
  42. Type = Backup
  43. Level = Full
  44. Client = tea-sql-fd
  45. FileSet = "tea-sql"
  46. Schedule = "WeeklyCycle"
  47. #Storage = File
  48. Storage = LTO-3
  49. Messages = Standard
  50. Pool = sql-pool
  51. Priority = 9
  52. }
  53.  
  54. JobDefs {
  55. Name = "Full TEA-BK1"
  56. Type = Backup
  57. Level = Full
  58. Client = tea-bk1-fd
  59. FileSet = "tea-bk1"
  60. Schedule = "WeeklyCycle"
  61. #Storage = File
  62. Storage = LTO-3
  63. Messages = Standard
  64. Pool = bk1-pool
  65. Priority = 8
  66. }
  67.  
  68. JobDefs {
  69. Name = "Incremental TEA-WWW"
  70. Type = Backup
  71. Level = Incremental
  72. Client = tea-www-fd
  73. FileSet = "tea-www"
  74. Schedule = "DailyCycle"
  75. Storage = File
  76. #Storage = LTO-3
  77. Messages = Standard
  78. Pool = www-pool
  79. Priority = 10
  80. }
  81.  
  82. JobDefs {
  83. Name = "Incremental TEA-SQL"
  84. Type = Backup
  85. Level = Incremental
  86. Client = tea-sql-fd
  87. FileSet = "tea-sql"
  88. Schedule = "WeeklyCycle"
  89. #Storage = File
  90. Storage = LTO-3
  91. Messages = Standard
  92. Pool = sql-pool
  93. Priority = 9
  94. }
  95.  
  96. JobDefs {
  97. Name = "Full TEA-BK1"
  98. Type = Backup
  99. Level = Full
  100. Client = tea-bk1-fd
  101. FileSet = "tea-bk1"
  102. Schedule = "WeeklyCycle"
  103. #Storage = File
  104. Storage = LTO-3
  105. Messages = Standard
  106. Pool = bk1-pool
  107. Priority = 8
  108. }
  109.  
  110. JobDefs {
  111. Name = "Incremental TEA-WWW"
  112. Type = Backup
  113. Level = Incremental
  114. Client = tea-www-fd
  115. FileSet = "tea-www"
  116. Schedule = "DailyCycle"
  117. Storage = File
  118. #Storage = LTO-3
  119. Messages = Standard
  120. Pool = www-pool
  121. Priority = 10
  122. }
  123.  
  124. JobDefs {
  125. Name = "Incremental TEA-SQL"
  126. Type = Backup
  127. Level = Incremental
  128. Client = tea-sql-fd
  129. FileSet = "tea-sql"
  130. Schedule = "DailyCycle"
  131. Storage = File
  132. #Storage = LTO-3
  133. Messages = Standard
  134. Pool = sql-pool
  135. Priority = 9
  136. }
  137.  
  138. JobDefs {
  139. Name = "Incremental TEA-BK1"
  140. Type = Backup
  141. Level = Incremental
  142. Client = tea-bk1-fd
  143. FileSet = "tea-bk1"
  144. Schedule = "DailyCycle"
  145. Storage = File
  146. #Storage = LTO-3
  147. Messages = Standard
  148. Pool = bk1-pool
  149. Priority = 8
  150. }
  151.  
  152.  
  153. #
  154. # Define the main nightly save backup job
  155. # By default, this job will back up to disk in
  156. #Job {
  157. # Name = "Client1"
  158. # JobDefs = "DefaultJob"
  159. # Write Bootstrap = "/var/lib/bacula/Client1.bsr"
  160. #}
  161.  
  162. Job {
  163. Name = "Full TEA-WWW"
  164. JobDefs = "Full TEA-WWW"
  165. Write Bootstrap = "/var/lib/bacula/Client1.bsr"
  166. }
  167.  
  168. Job {
  169. Name = "Full TEA-SQL"
  170. JobDefs = "Full TEA-SQL"
  171. Write Bootstrap = "/var/lib/bacula/Client1.bsr"
  172. }
  173.  
  174. Job {
  175. Name = "Full TEA-BK1"
  176. JobDefs = "Full TEA-BK1"
  177. Write Bootstrap = "/var/lib/bacula/Client1.bsr"
  178. }
  179.  
  180. Job {
  181. Name = "Incremental TEA-WWW"
  182. JobDefs = "Incremental TEA-WWW"
  183. Write Bootstrap = "/var/lib/bacula/Client1.bsr"
  184. }
  185.  
  186. Job {
  187. Name = "Incremental TEA-SQL"
  188. JobDefs = "Incremental TEA-SQL"
  189. Write Bootstrap = "/var/lib/bacula/Client1.bsr"
  190. }
  191.  
  192. Job {
  193. Name = "Incremental TEA-BK1"
  194. JobDefs = "Incremental TEA-BK1"
  195. Write Bootstrap = "/var/lib/bacula/Client1.bsr"
  196. }
  197.  
  198. #Job {
  199. # Name = "Client2"
  200. # Client = tea-bk12-fd
  201. # JobDefs = "DefaultJob"
  202. # Write Bootstrap = "/var/lib/bacula/Client2.bsr"
  203. #}
  204.  
  205. # Backup the catalog database (after the nightly save)
  206. Job {
  207. Name = "BackupCatalog"
  208. JobDefs = "DefaultJob"
  209. Level = Full
  210. FileSet="Catalog"
  211. Schedule = "WeeklyCycleAfterBackup"
  212. # This creates an ASCII copy of the catalog
  213. # WARNING!!! Passing the password via the command line is insecure.
  214. # see comments in make_catalog_backup for details.
  215. # Arguments to make_catalog_backup are:
  216. # make_catalog_backup <database-name> <user-name> <password> <host>
  217. RunBeforeJob = "/usr/libexec/bacula/make_catalog_backup bacula bacula"
  218. # This deletes the copy of the catalog
  219. RunAfterJob = "/usr/libexec/bacula/delete_catalog_backup"
  220. Write Bootstrap = "/var/lib/bacula/BackupCatalog.bsr"
  221. Priority = 11 # run after main backup
  222. }
  223.  
  224. #
  225. # Standard Restore template, to be changed by Console program
  226. # Only one such job is needed for all Jobs/Clients/Storage ...
  227. #
  228. Job {
  229. Name = "RestoreFiles"
  230. Type = Restore
  231. Client=tea-bk1-fd
  232. FileSet="Full Set"
  233. Storage = File
  234. Pool = Default
  235. Messages = Standard
  236. #Where = /bacula-restores
  237. Where = /
  238. }
  239.  
  240. FileSet {
  241. Name = "tea-bk1"
  242. Include {
  243. Options {
  244. signature = MD5
  245. }
  246. File = /
  247. }
  248.  
  249. Exclude {
  250. File = /proc
  251. File = /tmp
  252. File = /.journal
  253. File = /.fsck
  254. File = /data
  255. File = /usr/portage/distfiles
  256. }
  257. }
  258.  
  259. FileSet {
  260. Name = "tea-www"
  261. Include {
  262. Options {
  263. signature = MD5
  264. }
  265. File = /
  266. File = /usr/local
  267. File = /var
  268. }
  269.  
  270. Exclude {
  271. File = /proc
  272. File = /tmp
  273. File = /.journal
  274. File = /.fsck
  275. }
  276. }
  277.  
  278. FileSet {
  279. Name = "tea-sql"
  280. Include {
  281. Options {
  282. signature = MD5
  283. }
  284. File = /
  285. File = /usr/local
  286. File = /var
  287. }
  288.  
  289. Exclude {
  290. File = /proc
  291. File = /tmp
  292. File = /.journal
  293. File = /.fsck
  294. }
  295. }
  296.  
  297. # List of files to be backed up
  298. FileSet {
  299. Name = "Full Set"
  300. Include {
  301. Options {
  302. signature = MD5
  303. }
  304. #
  305. # Put your list of files here, preceded by 'File =', one per line
  306. # or include an external list with:
  307. #
  308. # File = <file-name
  309. #
  310. # Note: / backs up everything on the root partition.
  311. # if you have other partitons such as /usr or /home
  312. # you will probably want to add them too.
  313. #
  314. # By default this is defined to point to the Bacula build
  315. # directory to give a reasonable FileSet to backup to
  316. # disk storage during initial testing.
  317. #
  318. File = /
  319. File = /data
  320. File = /var
  321. }
  322.  
  323. #
  324. # If you backup the root directory, the following two excluded
  325. # files can be useful
  326. #
  327. Exclude {
  328. File = /proc
  329. File = /tmp
  330. File = /.journal
  331. File = /.fsck
  332. }
  333. }
  334.  
  335. #
  336. # When to do the backups, full backup on first sunday of the month,
  337. # differential (i.e. incremental since full) every other sunday,
  338. # and incremental backups other days
  339. Schedule {
  340. Name = "WeeklyCycle"
  341. Run = Full 1st sun at 23:05
  342. Run = Differential 2nd-5th sun at 23:05
  343. Run = Incremental mon-sat at 23:05
  344. }
  345.  
  346. Schedule {
  347. Name = "DailyCycle"
  348. Run = Full 1st sun at 23:05
  349. Run = Differential 2nd-5th sun at 23:05
  350. Run = Incremental mon-sat at 23:05
  351. }
  352.  
  353. # This schedule does the catalog. It starts after the WeeklyCycle
  354. Schedule {
  355. Name = "WeeklyCycleAfterBackup"
  356. Run = Full sun-sat at 23:10
  357. }
  358.  
  359. # This is the backup of the catalog
  360. FileSet {
  361. Name = "Catalog"
  362. Include {
  363. Options {
  364. signature = MD5
  365. }
  366. File = /var/lib/bacula/bacula.sql
  367. }
  368. }
  369.  
  370. # Client (File Services) to backup
  371. Client {
  372. Name = tea-bk1-fd
  373. Address = 192.168.10.5
  374. FDPort = 9102
  375. Catalog = MyCatalog
  376. Password = "foobar" # password for FileDaemon
  377. #Password = "" # password for FileDaemon
  378. File Retention = 30 days # 30 days
  379. Job Retention = 6 months # six months
  380. AutoPrune = yes # Prune expired Jobs/Files
  381. }
  382.  
  383. Client {
  384. Name = tea-www-fd
  385. Address = 192.168.10.2
  386. FDPort = 9102
  387. Catalog = MyCatalog
  388. Password = "foobar" # password for FileDaemon
  389. File Retention = 30 days # 30 days
  390. Job Retention = 6 months # six months
  391. AutoPrune = yes # Prune expired Jobs/Files
  392. }
  393.  
  394. Client {
  395. Name = tea-sql-fd
  396. Address = 192.168.10.3
  397. FDPort = 9102
  398. Catalog = MyCatalog
  399. Password = "foobar" # password for FileDaemon
  400. File Retention = 30 days # 30 days
  401. Job Retention = 6 months # six months
  402. AutoPrune = yes # Prune expired Jobs/Files
  403. }
  404.  
  405. # Definition of file storage device
  406. Storage {
  407. Name = File
  408. # Do not use "localhost" here
  409. Address = tea-bk1 # N.B. Use a fully qualified name here
  410. SDPort = 9103
  411. Password = "foobar"
  412. Device = FileStorage
  413. Media Type = File
  414. }
  415.  
  416. Storage {
  417. Name = LTO-3
  418. # Do not use "localhost" here
  419. Address = tea-bk1 # N.B. Use a fully qualified name here
  420. SDPort = 9103
  421. Password = "foobar"
  422. Device = LTO-3-Drive
  423. Media Type = LTO-3
  424. }
  425.  
  426. # Generic catalog service
  427. Catalog {
  428. Name = MyCatalog
  429. dbname = "bacula"; dbuser = "bacula"; dbpassword = "foobar"
  430. }
  431.  
  432. # Reasonable message delivery -- send most everything to email address
  433. # and to the console
  434. Messages {
  435. Name = Standard
  436. #
  437. # NOTE! If you send to two email or more email addresses, you will need
  438. # to replace the %r in the from field (-f part) with a single valid
  439. # email address in both the mailcommand and the operatorcommand.
  440. # What this does is, it sets the email address that emails would display
  441. # in the FROM field, which is by default the same email as they're being
  442. # sent to. However, if you send email to more than one address, then
  443. # you'll have to set the FROM address manually, to a single address.
  444. # for example, a 'no-reply@mydomain.com', is better since that tends to
  445. # tell (most) people that its coming from an automated source.
  446.  
  447. #
  448. mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
  449. operatorcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
  450. mail = root@localhost = all, !skipped
  451. operator = root@localhost = mount
  452. console = all, !skipped, !saved
  453. #
  454. # WARNING! the following will create a file that you must cycle from
  455. # time to time as it will grow indefinitely. However, it will
  456. # also keep all your messages if they scroll off the console.
  457. #
  458. append = "/var/lib/bacula/log" = all, !skipped
  459. }
  460.  
  461.  
  462. #
  463. # Message delivery for daemon messages (no job).
  464. Messages {
  465. Name = Daemon
  466. mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
  467. mail = root@localhost = all, !skipped
  468. console = all, !skipped, !saved
  469. append = "/var/lib/bacula/log" = all, !skipped
  470. }
  471.  
  472. # Default pool definition
  473. Pool {
  474. Name = Default
  475. Pool Type = Backup
  476. Recycle = yes # Bacula can automatically recycle Volumes
  477. AutoPrune = yes # Prune expired volumes
  478. Volume Retention = 90 days # one year
  479. UseVolumeOnce = no
  480. }
  481.  
  482. Pool {
  483. Name = www-pool
  484. Pool Type = Backup
  485. Recycle = yes # Bacula can automatically recycle Volumes
  486. AutoPrune = yes # Prune expired volumes
  487. Volume Retention = 90 days # one year
  488. UseVolumeOnce = no
  489. }
  490.  
  491. Pool {
  492. Name = sql-pool
  493. Pool Type = Backup
  494. Recycle = yes # Bacula can automatically recycle Volumes
  495. AutoPrune = yes # Prune expired volumes
  496. Volume Retention = 90 days # one year
  497. UseVolumeOnce = no
  498. }
  499.  
  500. Pool {
  501. Name = bk1-pool
  502. Pool Type = Backup
  503. Recycle = yes # Bacula can automatically recycle Volumes
  504. AutoPrune = yes # Prune expired volumes
  505. Volume Retention = 90 days # one year
  506. UseVolumeOnce = no
  507. }
  508.  
  509. # Scratch pool definition
  510. Pool {
  511. Name = Scratch
  512. Pool Type = Backup
  513. }
  514.  
  515. #
  516. # Restricted console used by tray-monitor to get the status of the director
  517. #
  518. Console {
  519. Name = tea-bk1-mon
  520. Password = "foobar"
  521. CommandACL = status, .status
  522. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement