Advertisement
GrandZ

bacula-dir

May 12th, 2015
336
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 5.76 KB | None | 0 0
  1. bacula-dir
  2. Director {                            # define myself
  3.   Name = fileserver-dir
  4.   DIRport = 9101                # where we listen for UA connections
  5.   QueryFile = "/etc/bacula/scripts/query.sql"
  6.   WorkingDirectory = "/var/lib/bacula"
  7.   PidDirectory = "/var/run/bacula"
  8.   Maximum Concurrent Jobs = 10
  9.   Password = "ksJPGGyR0edNqY4-8bq6YXvYIV532_I-c"         # Console password
  10.   Messages = Standard
  11.   DirAddress = localhost
  12. }
  13.  
  14. #JobDefs {
  15. #  Name = "DefaultJob"
  16. #  Type = Backup
  17. #  Level = Incremental
  18. #  Client = fileserver-fd
  19. #  FileSet = "Full Set"
  20. #  Schedule = "WeeklyCycle"
  21. #  Storage = drive-lin
  22. #  Messages = Standard
  23. #  Pool = File
  24. #  Priority = 10
  25. #  Write Bootstrap = "/var/lib/bacula/%c.bsr"
  26. #}
  27.  
  28. Job {
  29.     Name = "201-1-backup"
  30.     Type = Backup
  31.     Level = Incremental
  32.     Client = 201-1-fd
  33.     FileSet = "201-1-FileSet"
  34.     Schedule = "WeeklyCycle"
  35.     Storage = drive-win
  36.     Messages = Standard
  37.     Pool = File
  38.     Priority = 10
  39.     Write Bootstrap = "/var/lib/bacula/%c.bsr"
  40. }
  41.  
  42. Job {
  43.     Name = "fileserver-backup"
  44.     Type = Backup
  45.     Level = Full
  46.     Client = fileserver-fd
  47.     FileSet = "fileserver-Set"
  48.     Schedule = "WeeklyCycle"
  49.     Storage = drive-lin
  50.     Messages = Standard
  51.     Pool = File
  52.     Priority = 10
  53.     Write Bootstrap = "/var/lib/bacula/%c.bsr"
  54. }
  55.  
  56. # Backup the catalog database (after the nightly save)
  57. #Job {
  58. #  Name = "BackupCatalog"
  59. #  JobDefs = "DefaultJob"
  60. #  Level = Full
  61. #  FileSet="Catalog"
  62. #  Schedule = "WeeklyCycleAfterBackup"
  63. #  RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup.pl MyCatalog"
  64. #  RunAfterJob  = "/etc/bacula/scripts/delete_catalog_backup"
  65. #  Write Bootstrap = "/var/lib/bacula/%n.bsr"
  66. #  Priority = 11                   # run after main backup
  67. #}
  68.  
  69. #Job {
  70. #  Name = "RestoreFiles"
  71. #  Type = Restore
  72. #  Client = fileserver-fd
  73. #  FileSet="Full Set"                  
  74. #  Storage = File                      
  75. #  Pool = Restore
  76. #  Messages = Standard
  77. #  Where = /home/ARH-SERVERS/FileServer
  78. #}
  79.  
  80. FileSet {
  81.   Name = "FullSet"
  82.   Include {
  83.     Options {
  84.       signature = MD5
  85.     }
  86.     File = /usr/sbin
  87.     File = /home/oem
  88.   }
  89.   Exclude {
  90.     File = /var/lib/bacula
  91.     File = /tmp
  92.     File = /.journal
  93.     File = /.fsck
  94.     File = .avi
  95.     File = .mp3
  96.   }
  97. }
  98.  
  99.  
  100. FileSet {
  101.   Name = "201-1-FileSet"
  102.   Include {
  103.     Options {
  104.       signature = MD5
  105.     }
  106.     File = "D:\\Doki"
  107.   }
  108.   Exclude {
  109.     File = .avi
  110.     File = .mp3
  111.   }
  112. }
  113.  
  114.  
  115. FileSet {
  116.   Name = "fileserver-Set"
  117.   Include {
  118.     Options {
  119.     signature = MD5
  120.     }
  121.     File = /home/ubuntu
  122.   }
  123.   Exclude {
  124.     File = .mp3
  125.     File = .avi
  126.     File = .mp4
  127.   }
  128. }
  129.  
  130. Schedule {
  131.   Name = "WeeklyCycle"
  132.   Run = Full 1st sun at 23:05
  133.   Run = Differential 2nd-5th sun at 23:05
  134.   Run = Incremental mon-sat at 23:05
  135. }
  136.  
  137. Schedule {
  138.   Name = "WeeklyCycleAfterBackup"
  139.   Run = Full sun-sat at 23:10
  140. }
  141.  
  142. FileSet {
  143.   Name = "Catalog"
  144.   Include {
  145.     Options {
  146.       signature = MD5
  147.     }
  148.     File = "/var/lib/bacula/bacula.sql"
  149.   }
  150. }
  151.  
  152. Client {
  153.   Name = fileserver-fd
  154.   Address = 192.168.0.55
  155.   FDPort = 9102
  156.   Catalog = bacula
  157.   Password = "ZCnCHPjrWw5V9f4s-LRrfvqtp_WNHmejR"          # password for FileDaemon
  158.   File Retention = 30 days            # 30 days
  159.   Job Retention = 6 months            # six months
  160.   AutoPrune = yes                     # Prune expired Jobs/Files
  161. }
  162.  
  163. Client {
  164.   Name = 201-1-fd
  165.   Address = 192.168.0.2
  166.   FDPort = 9102
  167.   Catalog = bacula
  168.   Password = "j2q1z9ZOozV0DeIUnAmvOASapiNsZRMTfXhLVBPwZfI6"
  169.   File Retention = 30 days            # 30 days
  170.   Job Retention = 6 months            # six months
  171.   AutoPrune = yes                     # Prune expired Jobs/Files
  172. }
  173.  
  174. Storage {
  175.     Name = drive-win
  176.     Device = Drive-1
  177.     Address = 192.168.0.55
  178.     Media Type = File
  179.     SDPort = 9103
  180. Password = "dhaD5QduRgkjuii5y9fuEyWSw2nnYI3N2"
  181. }
  182. Storage {
  183.     Name = "drive-lin"
  184.     Device = "Drive-2"
  185.     Address = 192.168.0.55
  186.     Media Type = File
  187.     SDPort = 9103
  188. Password = "dhaD5QduRgkjuii5y9fuEyWSw2nnYI3N2"
  189. }
  190.  
  191. Catalog {
  192.   Name = bacula
  193.   dbname = "bacula"; DB Address = ""; dbuser = "bacula"; dbpassword = "PaSSw0rd"
  194. }
  195.  
  196. Messages {
  197.   Name = Standard
  198.   mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
  199.   operatorcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
  200.   mail = root = all, !skipped            
  201.   operator = root = mount
  202.   console = all, !skipped, !saved
  203.   append = "/var/log/bacula/bacula.log" = all, !skipped
  204.   catalog = all
  205. }
  206.  
  207. Messages {
  208.   Name = Daemon
  209.   mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
  210.   mail = root = all, !skipped            
  211.   console = all, !skipped, !saved
  212.   append = "/var/log/bacula/bacula.log" = all, !skipped
  213. }
  214.  
  215. Pool {
  216.   Name = Restore
  217.   Pool Type = Backup
  218.   Recycle = yes                       # Bacula can automatically recycle Volumes
  219.   AutoPrune = yes                     # Prune expired volumes
  220.   Volume Retention = 365 days         # one year
  221. }
  222.  
  223. # File Pool definition
  224. Pool {
  225.   Name = File
  226.   Pool Type = Backup
  227.   Recycle = yes                       # Bacula can automatically recycle Volumes
  228.   AutoPrune = yes                     # Prune expired volumes
  229.   Volume Retention = 365 days         # one year
  230.   Maximum Volume Bytes = 1024G          # Limit Volume size to something reasonable
  231.   Maximum Volumes = 100               # Limit number of Volumes in Pool
  232. }
  233.  
  234.  
  235. # Scratch pool definition
  236. Pool {
  237.   Name = Default
  238.   Pool Type = Backup
  239.     Recycle = yes
  240.     AutoPrune = yes
  241.     Volume Retention = 365 days
  242. }
  243.  
  244. Console {
  245.   Name = fileserver-mon
  246.   Password = "b5s7vwEDoFYQ7GU0k7c0Y2Z19oa3bwLYH"
  247.   CommandACL = status, .status
  248. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement