Advertisement
CJM51213

Untitled

Nov 2nd, 2016
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.95 KB | None | 0 0
  1. #
  2. # Default Bacula Director Configuration file
  3. #
  4. # The only thing that MUST be changed is to add one or more
  5. # file or directory names in the Include directive of the
  6. # FileSet resource.
  7. #
  8. # For Bacula release 7.4.1 (02 May 2016) -- redhat Three)
  9. #
  10. # You might also want to change the default email address
  11. # from root to your address. See the "mail" and "operator"
  12. # directives in the Messages resource.
  13. #
  14. # Copyright (C) 2000-2015 Kern Sibbald
  15. # License: BSD 2-Clause; see file LICENSE-FOSS
  16. #
  17.  
  18. Director {
  19. Name = bacula-dir.TCLC
  20. DIRPort = 9101
  21. QueryFile = "/etc/bacula/query.sql"
  22. WorkingDirectory = "/var/spool/bacula"
  23. PidDirectory = "/var/run"
  24. Maximum Concurrent Jobs = 1
  25. Password = "BaculaBackup"
  26. Messages = Daemon
  27. }
  28.  
  29. Catalog {
  30. Name = Catalog.TCLC
  31. dbname = "bacula"; dbuser = "bacula"; dbpassword = "BaculaBackup"
  32. }
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39. Client {
  40. Name = bacula-fd.Justice
  41. Address = Justice.TCLC.org
  42. FDPort = 9102
  43. Catalog = Catalog.TCLC
  44. Password = "BaculaBackup" # password for FileDaemon
  45. File Retention = 100 years
  46. Job Retention = 100 years
  47. AutoPrune = yes # Prune expired Jobs/Files
  48. }
  49.  
  50. Client {
  51. Name = bacula-fd.Aequitas
  52. Address = Aequitas.TCLC.org
  53. FDPort = 9102
  54. Catalog = Catalog.TCLC
  55. Password = "BaculaBackup" # password for FileDaemon
  56. File Retention = 100 years
  57. Job Retention = 100 years
  58. AutoPrune = yes # Prune expired Jobs/Files
  59. }
  60.  
  61. Client {
  62. Name = bacula-fd.Mail
  63. Address = Mail.TCLC.org
  64. FDPort = 9102
  65. Catalog = Catalog.TCLC
  66. Password = "BaculaBackup" # password for FileDaemon
  67. File Retention = 100 years
  68. Job Retention = 100 years
  69. AutoPrune = yes # Prune expired Jobs/Files
  70. }
  71.  
  72. Client {
  73. Name = bacula-fd.Tryx
  74. Address = Tryx.TCLC.org
  75. FDPort = 9102
  76. Catalog = Catalog.TCLC
  77. Password = "BaculaBackup" # password for FileDaemon
  78. File Retention = 100 years
  79. Job Retention = 100 years
  80. AutoPrune = yes # Prune expired Jobs/Files
  81. }
  82.  
  83. Client {
  84. Name = bacula-fd.Trax
  85. Address = Trax.TCLC.org
  86. FDPort = 9102
  87. Catalog = Catalog.TCLC
  88. Password = "BaculaBackup" # password for FileDaemon
  89. File Retention = 100 years
  90. Job Retention = 100 years
  91. AutoPrune = yes # Prune expired Jobs/Files
  92. }
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99. FileSet {
  100. Name = "Linux"
  101. Include {
  102. Options {
  103. signature = MD5
  104. }
  105. File = /
  106. File = /home
  107. }
  108. Exclude {
  109. File = /dev
  110. File = /mnt
  111. File = /net
  112. File = /proc
  113. File = /run
  114. File = /tmp
  115. File = /var/spool/bacula
  116. }
  117. }
  118.  
  119. FileSet {
  120. Name = "Windows"
  121. Include {
  122. Options {
  123. signature = MD5
  124. }
  125. File = C:/ # Boot Partition. How do I address the System partition?
  126. }
  127. Exclude {
  128. }
  129. }
  130.  
  131. FileSet {
  132. Name = "Catalog.TCLC"
  133. Include {
  134. Options {
  135. signature = MD5
  136. }
  137. File = "/var/spool/bacula/bacula.sql"
  138. }
  139. }
  140.  
  141. FileSet {
  142. Name = "Linux - Test Set"
  143. Include {
  144. Options {
  145. signature = MD5
  146. }
  147. File = /var/log/messages
  148. }
  149. }
  150.  
  151. FileSet {
  152. Name = "Windows - Test Set"
  153. Include {
  154. Options {
  155. signature = MD5
  156. }
  157. File = C:/Windows/system.ini
  158. }
  159. }
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166. #+--------------+----------------------------+---------------------------+
  167. #| | Linux | Windows (Boot and System) |
  168. #+--------------+----------------------------+---------------------------+
  169. #| Incremental | Linux Incremental | Windows Incremental |
  170. #+--------------+----------------------------+---------------------------+
  171. #| Differential | Linux Differential | Windows Differential |
  172. #+--------------+----------------------------+---------------------------+
  173. #| Full | Linux Full | Windows Full |
  174. #+--------------+----------------------------+---------------------------+
  175.  
  176. JobDefs {
  177. Name = "Linux Incremental"
  178. FileSet = "Linux"
  179. Type = Backup
  180. Level = Incremental
  181. Messages = Standard
  182. SpoolAttributes = yes
  183. Write Bootstrap = "/var/spool/bacula/%c.bsr"
  184. }
  185.  
  186. JobDefs {
  187. Name = "Windows Incremental"
  188. FileSet = "Windows"
  189. Type = Backup
  190. Level = Incremental
  191. Messages = Standard
  192. SpoolAttributes = yes
  193. Write Bootstrap = "/var/spool/bacula/%c.bsr"
  194. }
  195.  
  196. JobDefs {
  197. Name = "Linux Differential"
  198. FileSet = "Linux"
  199. Type = Backup
  200. Level = Differential
  201. Messages = Standard
  202. SpoolAttributes = yes
  203. Write Bootstrap = "/var/spool/bacula/%c.bsr"
  204. }
  205.  
  206. JobDefs {
  207. Name = "Windows Differential"
  208. FileSet = "Windows"
  209. Type = Backup
  210. Level = Differential
  211. Messages = Standard
  212. SpoolAttributes = yes
  213. Write Bootstrap = "/var/spool/bacula/%c.bsr"
  214. }
  215.  
  216. JobDefs {
  217. Name = "Linux Full"
  218. FileSet = "Linux"
  219. Type = Backup
  220. Level = Full
  221. Messages = Standard
  222. SpoolAttributes = yes
  223. Write Bootstrap = "/var/spool/bacula/%c.bsr"
  224. }
  225.  
  226. JobDefs {
  227. Name = "Windows Full"
  228. FileSet = "Windows"
  229. Type = Backup
  230. Level = Full
  231. Messages = Standard
  232. SpoolAttributes = yes
  233. Write Bootstrap = "/var/spool/bacula/%c.bsr"
  234. }
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243. #
  244. # Define the main nightly save backup job
  245. #
  246.  
  247. #+-----------------------+-------------------------------+--------------------------------+------------------------+
  248. #| | Incremental | Differential | Full |
  249. #+-----------------------+-------------------------------+--------------------------------+------------------------+
  250. #| Justice.TCLC.org (W) | Justice.TCLC.org Incremental | Justice.TCLC.org Differential | Justice.TCLC.org Full |
  251. #+-----------------------+-------------------------------+--------------------------------+------------------------+
  252. #| Aequitas.TCLC.org (W) | Aequitas.TCLC.org Incremental | Aequitas.TCLC.org Differential | Aequitas.TCLC.org Full |
  253. #+-----------------------+-------------------------------+--------------------------------+------------------------+
  254. #| Mail.TCLC.org (L) | Mail.TCLC.org Incremental | Mail.TCLC.org Differential | Mail.TCLC.org Full |
  255. #+-----------------------+-------------------------------+--------------------------------+------------------------+
  256. #| Tryx.TCLC.org (L) | Tryx.TCLC.org Incremental | Tryx.TCLC.org Differential | Tryx.TCLC.org Full |
  257. #+-----------------------+-------------------------------+--------------------------------+------------------------+
  258. #| Trax.TCLC.org (L) | Trax.TCLC.org Incremental | Trax.TCLC.org Differential | Trax.TCLC.org Full |
  259. #+-----------------------+-------------------------------+--------------------------------+------------------------+
  260.  
  261.  
  262. Job {
  263. Name = "Justice.TCLC.org Incremental"
  264. JobDefs = "Windows Incremental"
  265. Priority = 1
  266. Client = bacula-fd.Justice
  267. Pool = Incremental
  268. Storage = NAS0.0
  269. }
  270.  
  271. Job {
  272. Name = "Aequitas.TCLC.org Incremental"
  273. JobDefs = "Windows Incremental"
  274. Priority = 1
  275. Client = bacula-fd.Aequitas
  276. Pool = Incremental
  277. Storage = NAS0.1
  278. }
  279.  
  280. Job {
  281. Name = "Mail.TCLC.org Incremental"
  282. JobDefs = "Linux Incremental"
  283. Priority = 1
  284. Client = bacula-fd.Mail
  285. Pool = Incremental
  286. Storage = NAS1.0
  287. }
  288.  
  289. Job {
  290. Name = "Tryx.TCLC.org Incremental"
  291. JobDefs = "Linux Incremental"
  292. Priority = 1
  293. Client = bacula-fd.Tryx
  294. Pool = Incremental
  295. Storage = NAS1.1
  296. }
  297.  
  298. Job {
  299. Name = "Trax.TCLC.org Incremental"
  300. JobDefs = "Linux Incremental"
  301. Priority = 1
  302. Client = bacula-fd.Trax
  303. Pool = Incremental
  304. Storage = NAS1.1
  305. }
  306.  
  307. Job {
  308. Name = "Justice.TCLC.org Differential"
  309. JobDefs = "Windows Differential"
  310. Priority = 1
  311. Client = bacula-fd.Justice
  312. Pool = Differential
  313. Storage = NAS0.0
  314. }
  315.  
  316. Job {
  317. Name = "Aequitas.TCLC.org Differential"
  318. JobDefs = "Windows Differential"
  319. Priority = 1
  320. Client = bacula-fd.Aequitas
  321. Pool = Differential
  322. Storage = NAS0.1
  323. }
  324.  
  325. Job {
  326. Name = "Mail.TCLC.org Differential"
  327. JobDefs = "Linux Differential"
  328. Priority = 1
  329. Client = bacula-fd.Mail
  330. Pool = Differential
  331. Storage = NAS1.0
  332. }
  333.  
  334. Job {
  335. Name = "Tryx.TCLC.org Differential"
  336. JobDefs = "Linux Differential"
  337. Priority = 1
  338. Client = bacula-fd.Tryx
  339. Pool = Differential
  340. Storage = NAS1.1
  341. }
  342.  
  343. Job {
  344. Name = "Trax.TCLC.org Differential"
  345. JobDefs = "Linux Differential"
  346. Priority = 1
  347. Client = bacula-fd.Trax
  348. Pool = Differential
  349. Storage = NAS1.1
  350. }
  351.  
  352. Job {
  353. Name = "Justice.TCLC.org Full"
  354. JobDefs = "Windows Full"
  355. Priority = 1
  356. Client = bacula-fd.Justice
  357. Pool = Full
  358. Storage = NAS0.0
  359. }
  360.  
  361. Job {
  362. Name = "Aequitas.TCLC.org Full"
  363. JobDefs = "Windows Full"
  364. Priority = 1
  365. Client = bacula-fd.Aequitas
  366. Pool = Full
  367. Storage = NAS0.1
  368. }
  369.  
  370. Job {
  371. Name = "Mail.TCLC.org Full"
  372. JobDefs = "Linux Full"
  373. Priority = 1
  374. Client = bacula-fd.Mail
  375. Pool = Full
  376. Storage = NAS1.0
  377. }
  378.  
  379. Job {
  380. Name = "Tryx.TCLC.org Full"
  381. JobDefs = "Linux Full"
  382. Priority = 1
  383. Client = bacula-fd.Tryx
  384. Pool = Full
  385. Storage = NAS1.1
  386. }
  387.  
  388. Job {
  389. Name = "Trax.TCLC.org Full"
  390. JobDefs = "Linux Full"
  391. Priority = 1
  392. Client = bacula-fd.Trax
  393. Pool = Full
  394. Storage = NAS1.1
  395. }
  396.  
  397. Job {
  398. Name = "Test Justice.TCLC.org"
  399. Client = bacula-fd.Justice
  400. Schedule = Normal
  401. Priority = 1
  402. Type = Backup
  403. Level = Full
  404. FileSet = "Windows - Test Set"
  405. Messages = Standard
  406. Write Bootstrap = "/var/spool/bacula/%c.bsr"
  407. Pool = Incremental
  408. Storage = NAS0.0
  409. }
  410.  
  411. Job {
  412. Name = "Test Aequitas.TCLC.org"
  413. Client = bacula-fd.Aequitas
  414. Schedule = Normal
  415. Priority = 1
  416. Type = Backup
  417. Level = Full
  418. FileSet = "Windows - Test Set"
  419. Messages = Standard
  420. Write Bootstrap = "/var/spool/bacula/%c.bsr"
  421. Pool = Incremental
  422. Storage = NAS0.1
  423. }
  424.  
  425. Job {
  426. Name = "Test Mail.TCLC.org"
  427. Client = bacula-fd.Mail
  428. Schedule = Normal
  429. Priority = 1
  430. Type = Backup
  431. Level = Full
  432. FileSet = "Linux - Test Set"
  433. Messages = Standard
  434. Write Bootstrap = "/var/spool/bacula/%c.bsr"
  435. Pool = Incremental
  436. Storage = NAS1.0
  437. }
  438.  
  439. Job {
  440. Name = "Test Tryx.TCLC.org"
  441. Client = bacula-fd.Tryx
  442. Schedule = Normal
  443. Priority = 1
  444. Type = Backup
  445. Level = Full
  446. FileSet = "Linux - Test Set"
  447. Messages = Standard
  448. Write Bootstrap = "/var/spool/bacula/%c.bsr"
  449. Pool = Incremental
  450. Storage = NAS1.1
  451. }
  452.  
  453. Job {
  454. Name = "Test Trax.TCLC.org"
  455. Client = bacula-fd.Trax
  456. Schedule = Normal
  457. Priority = 1
  458. Type = Backup
  459. Level = Full
  460. FileSet = "Linux - Test Set"
  461. Messages = Standard
  462. Write Bootstrap = "/var/spool/bacula/%c.bsr"
  463. Pool = Incremental
  464. Storage = NAS2.1
  465. }
  466.  
  467.  
  468.  
  469.  
  470.  
  471.  
  472.  
  473. # Backup the catalog database (after the nightly save)
  474. Job {
  475. Name = "Catalog"
  476. Client = bacula-fd.Trax
  477. Level = Full
  478. FileSet="Catalog.TCLC"
  479. Schedule = "Daily - After Backup"
  480. # This creates an ASCII copy of the catalog
  481. # Arguments to make_catalog_backup.pl are:
  482. # make_catalog_backup.pl <catalog-name>
  483. RunBeforeJob = "/usr/libexec/bacula/make_catalog_backup.pl Catalog.TCLC"
  484. RunAfterJob = "/usr/libexec/bacula/delete_catalog_backup"
  485. Write Bootstrap = "/var/spool/bacula/%n.bsr"
  486. Priority = 11 # run after main backup
  487.  
  488. Type = Backup
  489. Storage = NAS2.0
  490. Messages = Standard
  491. Pool = Catalog
  492. SpoolAttributes = yes
  493. Priority = 10
  494. }
  495.  
  496. #
  497. # Standard Restore template, to be changed by Console program
  498. # Only one such job is needed for all Jobs/Clients/Storage ...
  499. #
  500. #Job {
  501. # Name = "Restore Files"
  502. # Type = Restore
  503. # Client=bacula-fd.Trax
  504. # FileSet = "Linux"
  505. # Storage = File1
  506. # Pool = Scratch
  507. # Messages = Standard
  508. # Where = /tmp/bacula-restores
  509. #}
  510.  
  511. #
  512. # When to do the backups, full backup on first sunday of the month,
  513. # differential (i.e. incremental since full) every other sunday,
  514. # and incremental backups other days
  515.  
  516. Schedule {
  517. Name = "Normal"
  518. Run = Level = Incremental Pool = Incremental mon-fri at 20:00
  519. Run = Level = Differential Pool = Differential 2nd-5th sat at 20:00
  520. Run = Level = Full Pool = Full 1st sat at 20:00
  521. }
  522.  
  523. # This schedule does the catalog. It starts after the WeeklyCycle
  524. Schedule {
  525. Name = "Daily - After Backup"
  526. Run = sun-sat at 06:00
  527. }
  528.  
  529.  
  530.  
  531.  
  532.  
  533.  
  534. Storage {
  535. Name = NAS0.0
  536. Address = Trax.TCLC.org
  537. SDPort = 9103
  538. Password = "BaculaBackup"
  539. Device = NAS0.0
  540. Media Type = File
  541. Maximum Concurrent Jobs = 10
  542. }
  543.  
  544. Storage {
  545. Name = NAS0.1
  546. Address = Trax.TCLC.org
  547. SDPort = 9103
  548. Password = "BaculaBackup"
  549. Device = NAS0.1
  550. Media Type = File
  551. Maximum Concurrent Jobs = 10
  552. }
  553.  
  554. Storage {
  555. Name = NAS1.0
  556. Address = Trax.TCLC.org
  557. SDPort = 9103
  558. Password = "BaculaBackup"
  559. Device = NAS1.0
  560. Media Type = File
  561. Maximum Concurrent Jobs = 10
  562. }
  563.  
  564. Storage {
  565. Name = NAS1.1
  566. Address = Trax.TCLC.org
  567. SDPort = 9103
  568. Password = "BaculaBackup"
  569. Device = NAS1.1
  570. Media Type = File
  571. Maximum Concurrent Jobs = 10
  572. }
  573.  
  574. Storage {
  575. Name = NAS2.0
  576. Address = Trax.TCLC.org
  577. SDPort = 9103
  578. Password = "BaculaBackup"
  579. Device = NAS2.0
  580. Media Type = File
  581. Maximum Concurrent Jobs = 10
  582. }
  583.  
  584. Storage {
  585. Name = NAS2.1
  586. Address = Trax.TCLC.org
  587. SDPort = 9103
  588. Password = "BaculaBackup"
  589. Device = NAS2.1
  590. Media Type = File
  591. Maximum Concurrent Jobs = 10
  592. }
  593.  
  594. # Reasonable message delivery -- send most everything to email address
  595. # and to the console
  596. Messages {
  597. Name = Standard
  598. #
  599. # NOTE! If you send to two or more email addresses, you will need
  600. # to replace the %r in the from field (-f part) with a single valid
  601. # email address in both the mailcommand and the operatorcommand.
  602. # What this does is, it sets the email address that emails would display
  603. # in the FROM field, which is by default the same email as they're being
  604. # sent to. However, if you send email to more than one address, then
  605. # you'll have to set the FROM address manually, to a single address.
  606. # for example, a 'no-reply@mydomain.com', is better since that tends to
  607. # tell (most) people that its coming from an automated source.
  608.  
  609. #
  610. mailcommand = "/usr/sbin/bsmtp -h mail.tclc.org -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
  611. operatorcommand = "/usr/sbin/bsmtp -h mail.tclc.org -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
  612. mail = Backup@TCLC.org = all, !skipped
  613. operator = Backup@TCLC.org = mount
  614. console = all, !skipped, !saved
  615. #
  616. # WARNING! the following will create a file that you must cycle from
  617. # time to time as it will grow indefinitely. However, it will
  618. # also keep all your messages if they scroll off the console.
  619. #
  620. append = "/var/log/bacula/bacula.log" = all, !skipped
  621. catalog = all
  622. }
  623.  
  624.  
  625. #
  626. # Message delivery for daemon messages (no job).
  627. Messages {
  628. Name = Daemon
  629. mailcommand = "/usr/sbin/bsmtp -h mail.tclc.org -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
  630. mail = Backup@TCLC.org = all, !skipped
  631. console = all, !skipped, !saved
  632. append = "/var/log/bacula/bacula.log" = all, !skipped
  633. }
  634.  
  635.  
  636.  
  637.  
  638.  
  639. Pool {
  640. Name = Incremental
  641. Pool Type = Backup
  642. Volume Retention = 21 days # Three weeks
  643. Maximum Volume Jobs = 1
  644. AutoPrune = yes
  645. Action On Purge = Truncate
  646. Label Format = "D-" # Auto label - Daily
  647. }
  648.  
  649. Pool {
  650. Name = Differential
  651. Pool Type = Backup
  652. Volume Retention = 60 days # Two months
  653. Maximum Volume Jobs = 1
  654. AutoPrune = yes
  655. Action On Purge = Truncate
  656. Label Format = "W-" # Auto label - Weekly
  657. }
  658.  
  659. Pool {
  660. Name = Full
  661. Pool Type = Backup
  662. Volume Retention = 100 years # Forever
  663. Maximum Volume Jobs = 1
  664. AutoPrune = yes
  665. Action On Purge = Truncate
  666. Label Format = "M-" # Auto label - Monthly
  667. }
  668.  
  669. Pool {
  670. Name = Catalog
  671. Pool Type = Backup
  672. Maximum Volume Jobs = 1
  673. AutoPrune = yes
  674. Action On Purge = Truncate
  675. Label Format = "C-" # Auto label - Catalog
  676. }
  677.  
  678. #
  679. # Restricted console used by tray-monitor to get the status of the director
  680. #
  681. Console {
  682. Name = bacula-mon.Trax
  683. Password = "BaculaBackup"
  684. CommandACL = status, .status
  685. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement