Advertisement
susnake

bareos-dir

May 7th, 2014
635
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.53 KB | None | 0 0
  1. #
  2. # Default Bareos Director configuration file for disk-only backup
  3. # (C) 2013 Bareos GmbH & Co.KG
  4. #
  5. # Each configuration item has a reference number that shows
  6. # where this property can be changed in the configuration file.
  7. # Search for the number to find the correct line.
  8. #
  9. # You have to configure the following accoring to your environment:
  10. #
  11. # (#01)Email Address for bareos disaster recovery.
  12. # Specify a mailaddress outside of your backupserver.
  13. # There will be one mail per day.
  14. #
  15. # (#02)Email Address for bareos reports. (Mail Command)
  16. # This mail address will recieve a report about each backup job.
  17. # It will be sent after the backupjob is complete.
  18. # Has to be configured twice ("Standard" and "Daemon" Message Ressources)
  19. #
  20. # (#03)Email Address for bareos operator. (Operator Command)
  21. # This mail address will recieve a mail immediately when the
  22. # bareos system needs an operator intervention.
  23. # May be the same address as in (#02)
  24. #
  25. #
  26. # This disk-only setup stores all data into C:/bareos-storage
  27. #
  28. # The preconfigured backup scheme is as follows:
  29. #
  30. # Full Backups are done on first Saturday at 21:00 (#04)
  31. # Full Backups are written into the "Full" Pool (#05)
  32. # Full Backups are kept for 365 Days (#06)
  33. #
  34. # Differential Backups are done on 2nd to 5th Saturday at 21:00 (#07)
  35. # Differential Backups are written into the "Differential" Pool (#08)
  36. # Differential Backups are kept for 90 Days (#09)
  37. #
  38. # Incremental Backups are done monday to friday at 21:00 (#10)
  39. # Incremental Backups are written into the "Incremental" Pool (#11)
  40. # Incremental Backups are kept for 30 Days (#12)
  41. #
  42. # What you also have to do is to change the default fileset (#13)
  43. # to either one of the demo filesets given or create our own fileset.
  44. #
  45. #
  46. #
  47. # For Bareos release 14.1.0.git.1397033861-701.5 (04/10/14) -- Windows @DISTVER@
  48. #
  49. #
  50. Director { # define myself
  51. Name = mypc-03-dir
  52. QueryFile = "C:/Program Files/Bareos/query.sql"
  53. Maximum Concurrent Jobs = 10
  54. Password = "ZLbqHNmat8FFQ+3N7Hzawq3ByNOJSQhwHci1MNlKSNbD" # Console password
  55. Messages = Daemon
  56.  
  57. # remove comment in next line to load plugins from specified directory
  58. # Plugin Directory = C:/Program Files/Bareos/Plugins
  59. }
  60.  
  61. JobDefs {
  62. Name = "DefaultJob"
  63. Type = Backup
  64. Level = Incremental
  65. Client = mypc-03-fd
  66. FileSet = "SelfTest" # selftest fileset (#13)
  67. Schedule = "WeeklyCycle"
  68. Storage = File
  69. Messages = Standard
  70. Pool = Incremental
  71. Priority = 10
  72. Write Bootstrap = "C:/ProgramData/Bareos/working/%c.bsr"
  73. Full Backup Pool = Full # write Full Backups into "Full" Pool (#05)
  74. Differential Backup Pool = Differential # write Diff Backups into "Differential" Pool (#08)
  75. Incremental Backup Pool = Incremental # write Incr Backups into "Incremental" Pool (#11)
  76. }
  77.  
  78. #
  79. # Define the main nightly save backup job
  80. # By default, this job will back up to disk in C:/bareos-storage
  81. Job {
  82. Name = "BackupClient1"
  83. JobDefs = "DefaultJob"
  84. }
  85.  
  86. #
  87. # Backup the catalog database (after the nightly save)
  88. #
  89. Job {
  90. Name = "BackupCatalog"
  91. JobDefs = "DefaultJob"
  92. Level = Full
  93. FileSet="Catalog"
  94. Schedule = "WeeklyCycleAfterBackup"
  95.  
  96. # This creates an ASCII copy of the catalog
  97. # Arguments to make_catalog_backup.pl are:
  98. # make_catalog_backup.pl <catalog-name>
  99. RunBeforeJob = "C:/Program Files/Bareos/make_catalog_backup.pl MyCatalog"
  100.  
  101. # This deletes the copy of the catalog
  102. RunAfterJob = "C:/Program Files/Bareos/delete_catalog_backup"
  103.  
  104. # This sends the bootstrap via mail for disaster recovery.
  105. # Should be sent to another system, please change recipient accordingly
  106. Write Bootstrap = "|C:/Program Files/Bareos/bsmtp -h XXX_REPLACE_WITH_SMTP_HOST_XXX -f \"\(Bareos\) \" -s \"Bootstrap for Job %j\" XXX_REPLACE_WITH_JOB_EMAIL_XXX" # (#01)
  107. Priority = 11 # run after main backup
  108. }
  109.  
  110. #
  111. # Standard Restore template, to be changed by Console program
  112. # Only one such job is needed for all Jobs/Clients/Storage ...
  113. #
  114. Job {
  115. Name = "RestoreFiles"
  116. Type = Restore
  117. Client=mypc-03-fd
  118. FileSet = "Linux All"
  119. Storage = File
  120. Pool = Incremental
  121. Messages = Standard
  122. Where = "C:/temp/bareos-restores"
  123. }
  124.  
  125.  
  126. FileSet {
  127. Name = "Windows All Drives"
  128. Enable VSS = yes
  129. Include {
  130. Options {
  131. Signature = MD5
  132. Drive Type = fixed
  133. IgnoreCase = yes
  134. WildFile = "[A-Z]:/pagefile.sys"
  135. WildDir = "[A-Z]:/RECYCLER"
  136. WildDir = "[A-Z]:/$RECYCLE.BIN"
  137. WildDir = "[A-Z]:/System Volume Information"
  138. Exclude = yes
  139. }
  140. File = "C:\\Intel"
  141. File = "C:\\PerfLogs"
  142. File = "C:\\Program Files"
  143. File = "C:\\Program Files (x86)"
  144. File = "C:\\Windows"
  145. File = "C:\\Users"
  146. }
  147. }
  148.  
  149.  
  150. FileSet {
  151. Name = "Linux All"
  152. Include {
  153. Options {
  154. Signature = MD5 # calculate md5 checksum per file
  155. One FS = No # change into other filessytems
  156. FS Type = ext2 # filesystems of given types will be backed up
  157. FS Type = ext3 # others will be ignored
  158. FS Type = ext4
  159. FS Type = xfs
  160. FS Type = reiserfs
  161. FS Type = jfs
  162. FS Type = btrfs
  163. }
  164. File = /
  165. }
  166. # Things that usually have to be excluded
  167. # You have to exclude C:/bareos-storage
  168. # on your bareos server
  169. Exclude {
  170. File = C:/ProgramData/Bareos/working
  171. File = C:/bareos-storage
  172. File = /proc
  173. File = /tmp
  174. File = /.journal
  175. File = /.fsck
  176. }
  177.  
  178. }
  179.  
  180. # fileset just to backup some files for selftest
  181. FileSet {
  182. Name = "SelfTest"
  183. Include {
  184. Options {
  185. Signature = MD5 # calculate md5 checksum per file
  186. }
  187. File = "C:/Program Files/Bareos"
  188. }
  189. }
  190.  
  191. Schedule {
  192. Name = "WeeklyCycle"
  193. Run = Full 1st thu at 15:00 # (#04)
  194. Run = Differential 2nd-5th thu at 15:00 # (#07)
  195. Run = Incremental mon-fri at 15:00 # (#10)
  196. }
  197.  
  198. # This schedule does the catalog. It starts after the WeeklyCycle
  199. Schedule {
  200. Name = "WeeklyCycleAfterBackup"
  201. Run = Full mon-fri at 15:10
  202. }
  203.  
  204. # This is the backup of the catalog
  205. FileSet {
  206. Name = "Catalog"
  207. Include {
  208. Options {
  209. signature = MD5
  210. }
  211. File = "C:/ProgramData/Bareos/working/bareos.sql" # database dump
  212. File = "C:/ProgramData/Bareos" # configuration
  213. }
  214. }
  215.  
  216. # Client (File Services) to backup
  217. Client {
  218. Name = mypc-03-fd
  219. Address = mypc-03
  220. Password = "EvdXZheZYcEBuozMLiFoLkGtTzHk/9OJzxUbaDQWeVlE" # password for FileDaemon
  221. File Retention = 30 days # 30 days
  222. Job Retention = 6 months # six months
  223. AutoPrune = no # Prune expired Jobs/Files
  224. }
  225.  
  226. #
  227. # Definition of file storage device
  228. #
  229. Storage {
  230. Name = File
  231. # Do not use "localhost" here
  232. Address = mypc-03 # N.B. Use a fully qualified name here
  233. Password = "DJVIZc8jaYhfI4VImJ5XCT4GZdGIFfsxCBTLsmu18hOg"
  234. Device = FileStorage
  235. Media Type = File
  236. }
  237.  
  238. #
  239. # Generic catalog service
  240. #
  241. Catalog {
  242. Name = MyCatalog
  243. # Uncomment the following lines if you want the dbi driver
  244. #@ dbdriver = "dbi:XXX_REPLACE_WITH_DEFAULT_DB_TYPE_XXX"; dbaddress = 127.0.0.1; dbport = 5432
  245. #dbdriver = "XXX_REPLACE_WITH_DEFAULT_DB_TYPE_XXX"
  246. dbdriver = "postgresql"
  247. dbname = "bareos"
  248. dbuser = "bareos"
  249. dbpassword = "bareos"
  250. }
  251.  
  252. #
  253. # Reasonable message delivery -- send most everything to email address and to the console
  254. #
  255. Messages {
  256. Name = Standard
  257. mailcommand = "C:/Program Files/Bareos/bsmtp -h XXX_REPLACE_WITH_SMTP_HOST_XXX -f \"\(Bareos\) \<%r\>\" -s \"Bareos: %t %e of %c %l\" %r"
  258. operatorcommand = "C:/Program Files/Bareos/bsmtp -h XXX_REPLACE_WITH_SMTP_HOST_XXX -f \"\(Bareos\) \<%r\>\" -s \"Bareos: Intervention needed for %j\" %r"
  259. # mail = XXX_REPLACE_WITH_JOB_EMAIL_XXX = all, !skipped # (#02)
  260. mail = [email protected] = all, !skipped
  261. operator = XXX_REPLACE_WITH_JOB_EMAIL_XXX = mount # (#03)
  262. console = all, !skipped, !saved
  263. append = "C:/ProgramData/Bareos/logs/bareos.log" = all, !skipped
  264. catalog = all
  265. }
  266.  
  267. #
  268. # Message delivery for daemon messages (no job).
  269. #
  270. Messages {
  271. Name = Daemon
  272. mailcommand = "C:/Program Files/Bareos/bsmtp -h XXX_REPLACE_WITH_SMTP_HOST_XXX -f \"\(Bareos\) \<%r\>\" -s \"Bareos daemon message\" %r"
  273. mail = XXX_REPLACE_WITH_JOB_EMAIL_XXX = all, !skipped # (#02)
  274. console = all, !skipped, !saved
  275. append = "C:/ProgramData/Bareos/logs/bareos.log" = all, !skipped
  276. }
  277.  
  278.  
  279. #
  280. # Full Pool definition
  281. #
  282. Pool {
  283. Name = Full
  284. Pool Type = Backup
  285. Recycle = yes # Bareos can automatically recycle Volumes
  286. AutoPrune = yes # Prune expired volumes
  287. Volume Retention = 365 days # How long should the Full Backups be kept? (#06)
  288. Maximum Volume Bytes = 50G # Limit Volume size to something reasonable
  289. Maximum Volumes = 100 # Limit number of Volumes in Pool
  290. Label Format = "Full-" # Volumes will be labeled "Full-<volume-id>"
  291. }
  292.  
  293. #
  294. # Differential Pool definition
  295. #
  296. Pool {
  297. Name = Differential
  298. Pool Type = Backup
  299. Recycle = yes # Bareos can automatically recycle Volumes
  300. AutoPrune = yes # Prune expired volumes
  301. Volume Retention = 90 days # How long should the Differential Backups be kept? (#09)
  302. Maximum Volume Bytes = 10G # Limit Volume size to something reasonable
  303. Maximum Volumes = 100 # Limit number of Volumes in Pool
  304. Label Format = "Differential-" # Volumes will be labeled "Differential-<volume-id>"
  305. }
  306.  
  307. #
  308. # Incremental Pool definition
  309. #
  310. Pool {
  311. Name = Incremental
  312. Pool Type = Backup
  313. Recycle = yes # Bareos can automatically recycle Volumes
  314. AutoPrune = yes # Prune expired volumes
  315. Volume Retention = 30 days # How long should the Incremental Backups be kept? (#12)
  316. Maximum Volume Bytes = 1G # Limit Volume size to something reasonable
  317. Maximum Volumes = 100 # Limit number of Volumes in Pool
  318. Label Format = "Incremental-" # Volumes will be labeled "Incremental-<volume-id>"
  319. }
  320.  
  321. #
  322. # Scratch pool definition
  323. #
  324. Pool {
  325. Name = Scratch
  326. Pool Type = Backup
  327. }
  328.  
  329. #
  330. # Restricted console used by tray-monitor to get the status of the director
  331. #
  332. Console {
  333. Name = mypc-03-mon
  334. Password = "Tu5i9dnq4Jkl9fA4Nuy7DFmNudXTm3gY9BeCsU6qDIQL"
  335. CommandACL = status, .status
  336. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement