Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
424
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.57 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 5.0.3 (04 August 2010) -- suse 11.4
  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.  
  15. Director { # define myself
  16. Name = backupserver-dir
  17. DIRport = 9101 # where we listen for UA connections
  18. QueryFile = "/etc/bacula/query.sql"
  19. WorkingDirectory = "/var/bacula/working"
  20. PidDirectory = "/var/run"
  21. Maximum Concurrent Jobs = 1
  22. Password = "123456" # Console password
  23. Messages = Daemon
  24. }
  25.  
  26. #JobDefs {
  27. # Name = "DefaultJob"
  28. # Type = Backup
  29. # Level = Incremental
  30. # Client = linux-wt9v-fd
  31. # FileSet = "Full Set"
  32. # Schedule = "WeeklyCycle"
  33. # Storage = File
  34. # Messages = Standard
  35. # Pool = File
  36. # Priority = 10
  37. # Write Bootstrap = "/var/bacula/working/%c.bsr"
  38. #}
  39.  
  40. JobDefs {
  41.  
  42. Name = "Backup"
  43. Type = Backup
  44. Level = Incremental
  45. Schedule = "FullSexta"
  46. Client = backupserver4-fd
  47. Messages = Standard
  48. FileSet = "Full Set"
  49. Write Bootstrap = "/var/bacula/working/backupserver4.bsr"
  50. Priority = 10
  51. Storage = Backup
  52. Pool = Default
  53. }
  54.  
  55. #
  56. # Define the main nightly save backup job
  57. # By default, this job will back up to disk in /tmp
  58. Job {
  59. Name = "BackupClient1"
  60. JobDefs = "Backup"
  61. }
  62.  
  63. #Job {
  64. # Name = "BackupClient2"
  65. # Client = linux-wt9v2-fd
  66. # JobDefs = "DefaultJob"
  67. #}
  68.  
  69. # Backup the catalog database (after the nightly save)
  70. Job {
  71. Name = "BackupCatalog"
  72. JobDefs = "Backup"
  73. Level = Full
  74. FileSet="Catalog"
  75. Schedule = "WeeklyCycleAfterBackup"
  76. # This creates an ASCII copy of the catalog
  77. # Arguments to make_catalog_backup.pl are:
  78. # make_catalog_backup.pl <catalog-name>
  79. RunBeforeJob = "/etc/bacula/make_catalog_backup.pl MyCatalog"
  80. # This deletes the copy of the catalog
  81. RunAfterJob = "/etc/bacula/delete_catalog_backup"
  82. Write Bootstrap = "/var/bacula/working/%n.bsr"
  83. Priority = 11 # run after main backup
  84. }
  85.  
  86. #
  87. # Standard Restore template, to be changed by Console program
  88. # Only one such job is needed for all Jobs/Clients/Storage ...
  89. #
  90. Job {
  91. Name = "RestoreFiles"
  92. Type = Restore
  93. Client=backupserver4-fd
  94. FileSet="Full Set"
  95. Storage = Backup
  96. Pool = Default
  97. Messages = Standard
  98. Where = /tmp/bacula-restores
  99. }
  100.  
  101.  
  102. # List of files to be backed up
  103. FileSet {
  104. Name = "Full Set"
  105. Include {
  106. Options {
  107. signature = MD5
  108. }
  109.  
  110. #
  111. # Put your list of files here, preceded by 'File =', one per line
  112. # or include an external list with:
  113. #
  114. # File = <file-name
  115. #
  116. # Note: / backs up everything on the root partition.
  117. # if you have other partitions such as /usr or /home
  118. # you will probably want to add them too.
  119. #
  120. # By default this is defined to point to the Bacula binary
  121. # directory to give a reasonable FileSet to backup to
  122. # disk storage during initial testing.
  123. #
  124. File = /backup
  125. File = /etc
  126. File = /var
  127. File = /home
  128. }
  129.  
  130. #
  131. # If you backup the root directory, the following two excluded
  132. # files can be useful
  133. #
  134. Exclude {
  135. File = /var/bacula/working
  136. File = /tmp
  137. File = /proc
  138. File = /tmp
  139. File = /.journal
  140. File = /.fsck
  141. }
  142. }
  143.  
  144. #
  145. # When to do the backups, full backup on first sunday of the month,
  146. # differential (i.e. incremental since full) every other sunday,
  147. # and incremental backups other days
  148. Schedule {
  149. Name = "FullSexta"
  150. Run = Full 1st sun at 23:05
  151. Run = Differential 2nd-5th sun at 23:05
  152. Run = Incremental mon-sat at 23:05
  153. }
  154.  
  155. # This schedule does the catalog. It starts after the WeeklyCycle
  156. Schedule {
  157. Name = "WeeklyCycleAfterBackup"
  158. Run = Full sun-sat at 23:10
  159. }
  160.  
  161. # This is the backup of the catalog
  162. FileSet {
  163. Name = "Catalog"
  164. Include {
  165. Options {
  166. signature = MD5
  167. }
  168. File = "/var/bacula/working/bacula.sql"
  169. }
  170. }
  171.  
  172. # Client (File Services) to backup
  173. Client {
  174. Name = backupserver4-fd
  175. Address = 192.168.0.4
  176. FDPort = 9102
  177. Catalog = MyCatalog
  178. Password = "123456" # password for FileDaemon
  179. File Retention = 30 days # 30 days
  180. Job Retention = 2 months # six months
  181. AutoPrune = yes # Prune expired Jobs/Files
  182. }
  183.  
  184. Client {
  185. Name = backupserver5-fd
  186. Address = 192.168.0.5
  187. FDPort = 9102
  188. Catalog = MyCatalog
  189. Password = "123456" # password for FileDaemon
  190. File Retention = 30 days # 30 days
  191. Job Retention = 6 months # six months
  192. AutoPrune = yes # Prune expired Jobs/Files
  193. }
  194. #
  195. # Second Client (File Services) to backup
  196. # You should change Name, Address, and Password before using
  197. #
  198. #Client {
  199. # Name = linux-wt9v2-fd
  200. # Address = linux-wt9v2
  201. # FDPort = 9102
  202. # Catalog = MyCatalog
  203. # Password = "123456" # password for FileDaemon 2
  204. # File Retention = 30 days # 30 days
  205. # Job Retention = 6 months # six months
  206. # AutoPrune = yes # Prune expired Jobs/Files
  207. #}
  208.  
  209.  
  210. # Definition of file storage device
  211. Storage {
  212. Name = Backup
  213. # Do not use "localhost" here
  214. Address = 192.168.0.5 # N.B. Use a fully qualified name here
  215. SDPort = 9103
  216. Password = "123456"
  217. Device = Backup
  218. Media Type = File
  219. }
  220.  
  221.  
  222.  
  223. # Definition of DDS tape storage device
  224. #Storage {
  225. # Name = DDS-4
  226. # Do not use "localhost" here
  227. # Address = linux-wt9v # N.B. Use a fully qualified name here
  228. # SDPort = 9103
  229. # Password = "123456" # password for Storage daemon
  230. # Device = DDS-4 # must be same as Device in Storage daemon
  231. # Media Type = DDS-4 # must be same as MediaType in Storage daemon
  232. # Autochanger = yes # enable for autochanger device
  233. #}
  234.  
  235. # Definition of 8mm tape storage device
  236. #Storage {
  237. # Name = "8mmDrive"
  238. # Do not use "localhost" here
  239. # Address = linux-wt9v # N.B. Use a fully qualified name here
  240. # SDPort = 9103
  241. # Password = "123456"
  242. # Device = "Exabyte 8mm"
  243. # MediaType = "8mm"
  244. #}
  245.  
  246. # Definition of DVD storage device
  247. #Storage {
  248. # Name = "DVD"
  249. # Do not use "localhost" here
  250. # Address = linux-wt9v # N.B. Use a fully qualified name here
  251. # SDPort = 9103
  252. # Password = "123456"
  253. # Device = "DVD Writer"
  254. # MediaType = "DVD"
  255. #}
  256.  
  257.  
  258. # Generic catalog service
  259. Catalog {
  260. Name = MyCatalog
  261. # Uncomment the following line if you want the dbi driver
  262. # dbdriver = "dbi:mysql"; dbaddress = 127.0.0.1; dbport =
  263. dbname = "bacula"; dbuser = "bacula"; dbpassword = ""
  264. }
  265.  
  266. # Reasonable message delivery -- send most everything to email address
  267. # and to the console
  268. Messages {
  269. Name = Standard
  270. catalog = all, !skipped, !saved
  271. #
  272. # NOTE! If you send to two email or more email addresses, you will need
  273. # to replace the %r in the from field (-f part) with a single valid
  274. # email address in both the mailcommand and the operatorcommand.
  275. # What this does is, it sets the email address that emails would display
  276. # in the FROM field, which is by default the same email as they're being
  277. # sent to. However, if you send email to more than one address, then
  278. # you'll have to set the FROM address manually, to a single address.
  279. # for example, a 'no-reply@mydomain.com', is better since that tends to
  280. # tell (most) people that its coming from an automated source.
  281.  
  282. #
  283. mailcommand = "/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
  284. operatorcommand = "/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
  285. mail = matheus@urlogistica.com.br = all, !skipped
  286. operator = matheus@urlogistica.com.br = mount
  287. console = all, !skipped, !saved
  288. #
  289. # WARNING! the following will create a file that you must cycle from
  290. # time to time as it will grow indefinitely. However, it will
  291. # also keep all your messages if they scroll off the console.
  292. #
  293. append = "/var/bacula/working/log" = all, !skipped
  294. catalog = all
  295. }
  296.  
  297.  
  298. #
  299. # Message delivery for daemon messages (no job).
  300. Messages {
  301. Name = Daemon
  302. mailcommand = "/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
  303. mail = matheus@urlogistica.com.br = all, !skipped
  304. console = all, !skipped, !saved
  305. append = "/var/bacula/working/log" = all, !skipped
  306. }
  307.  
  308. # Default pool definition
  309. Pool {
  310. Name = Default
  311. Pool Type = Backup
  312. Recycle = yes # Bacula can automatically recycle Volumes
  313. AutoPrune = yes # Prune expired volumes
  314. Volume Retention = 365 days # one year
  315. }
  316.  
  317. # File Pool definition
  318. Pool {
  319. Name = Pool
  320. Pool Type = Backup
  321. Recycle = yes # Bacula can automatically recycle Volumes
  322. AutoPrune = yes # Prune expired volumes
  323. Volume Retention = 365 days # one year
  324. Maximum Volume Bytes = 100G # Limit Volume size to something reasonable
  325. Maximum Volumes = 100 # Limit number of Volumes in Pool
  326. }
  327.  
  328.  
  329. # Scratch pool definition
  330. Pool {
  331. Name = Scratch
  332. Pool Type = Backup
  333. }
  334.  
  335. #
  336. # Restricted console used by tray-monitor to get the status of the director
  337. #
  338. Console {
  339. Name = backupserver-mon
  340. Password = "wkqPu71vGJMumohbYfMYF+ALkTMXO9lvr3uEXoyrW6lH"
  341. CommandACL = status, .status
  342. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement