Advertisement
Guest User

dir.conf

a guest
Apr 28th, 2015
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 10.96 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.0.5 (28 July 2014) -- archlinux
  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 = rquid-dir
  17.   DIRAddress = 192.168.1.35
  18.   DIRport = 9101                # where we listen for UA connections
  19.   QueryFile = "/etc/bacula/scripts/query.sql"
  20.   WorkingDirectory = "/etc/bacula/working"
  21.   PidDirectory = "/run"
  22.   Maximum Concurrent Jobs = 1
  23.   Password = "jMlvDvHvYgBatvaxyYCi5GzR9iFIR4JQdPyNn+V8di9N"
  24.   Messages = Daemon
  25. }
  26.  
  27. Storage {
  28.  Name = rquid-sd
  29.  Address = 192.168.1.35
  30.  SDPort = 9103
  31.  Password = "yIWu/LvFPT2jQP8rT3/lWsD8F54qggvunCN6rem1StMx"
  32.  Device = FileStorage
  33.  Media Type = File
  34. }
  35.  
  36. Schedule {
  37.  Name = "WeeklyDiff"
  38.  Run = Level=Full on fri at 23:59
  39.  Run = Level=Differential on mon-thu at 23:59
  40. }
  41.  
  42. Job {
  43.  Name = "win-2avefaklcqs"
  44.  Type = Backup
  45.  Level = Differential
  46.  Client=win-2avefaklcqs-fd
  47.  FileSet="win-2avefaklcqs"
  48.  Storage = rquid-sd
  49.  Pool = mainpool
  50.  Messages = Standard
  51.  Schedule = "WeeklyDiff"
  52. }
  53.  
  54. FileSet {
  55.  Name = "win-2avefaklcqs"
  56.      Include {
  57.          Options {
  58.          signature = MD5
  59.          Compression=GZIP
  60.                  }
  61.      File = "D:\\Document"
  62.      File = "D:\\Торги"
  63.      File = "D:\\1C"
  64.      File = "D:\\DB1C_SQL"
  65.      File = "D:\\Налогоплательщик ЮЛ"
  66.      File = "D:\\Обмен"
  67.      File = "D:\\Сбис\\db"
  68.             }
  69. }
  70.  
  71. Client {
  72.   Name = win-2avefaklcqs-fd
  73.   Address = dc1.foo.local
  74.   FDPort = 9102
  75.   Catalog = MyCatalog
  76.   Password = "Ep0EWmizjQP6paqLGncTP9F0Tmc9NdMltKUCc6//eW4A"      # password for FileDaemon
  77.   File Retention = 14 days
  78.   Job Retention = 14 days
  79.   AutoPrune = yes
  80. }
  81.  
  82. Pool {
  83.  Name = mainpool
  84.  Pool Type = Backup
  85.  Recycle = yes
  86.  AutoPrune = yes
  87.  Volume Retention = 14 days
  88.  Maximum Volume Jobs = 7
  89.  Maximum Volumes = 3
  90.  Label Format = "win-${Year}${Month:p/2/0/r}${Day:p/2/0/r}"
  91. }
  92.  
  93. Job {
  94.  Name = "win-2avefaklcqs-restore"
  95.  Type = Restore
  96.  Client = win-2avefaklcqs-fd
  97.  FileSet="win-2avefaklcqs"
  98.  Storage = rquid-sd
  99.  Pool = mainpool
  100.  Messages = Standard
  101.  Where = "G:\\backup"
  102. }
  103. # JobDefs {
  104. #   Name = "DefaultJob"
  105. #   Type = Backup
  106. #   Level = Incremental
  107. #   Client = rquid-fd
  108. #   FileSet = "Full Set"
  109. #   Schedule = "WeeklyCycle"
  110. #   Storage = File1
  111. #   Messages = Standard
  112. #   Pool = File
  113. #   SpoolAttributes = yes
  114. #   Priority = 10
  115. #   Write Bootstrap = "/etc/bacula/working/%c.bsr"
  116. # }
  117.  
  118.  
  119. #
  120. # Define the main nightly save backup job
  121. #   By default, this job will bac#k up to disk in /tmp
  122. # Job {
  123. #   Name = "BackupClient1"
  124. #   JobDefs = "DefaultJob"
  125. # }
  126.  
  127. #Job {
  128. #  Name = "BackupClient2"
  129. #  Client = rquid2-fd
  130. #  JobDefs = "DefaultJob"
  131. #}
  132.  
  133. #Job {
  134. #  Name = "BackupClient1-to-Tape"
  135. #  JobDefs = "DefaultJob"
  136. #  Storage = LTO-4
  137. #  Spool Data = yes    # Avoid shoe-shine
  138. #  Pool = Default
  139. #}
  140.  
  141. #}
  142.  
  143. # Backup the catalog database (after the nightly save)
  144. # Job {
  145. #   Name = "BackupCatalog"
  146. #   JobDefs = "DefaultJob"
  147. #   Level = Full
  148. #   FileSet="Catalog"
  149. #   Schedule = "WeeklyCycleAfterBackup"
  150. #   # This creates an ASCII copy of the catalog
  151. #   # Arguments to make_catalog_backup.pl are:
  152. #   #  make_catalog_backup.pl <catalog-name>
  153. #   RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup.pl MyCatalog"
  154. #   # This deletes the copy of the catalog
  155. #   RunAfterJob  = "/etc/bacula/scripts/delete_catalog_backup"
  156. #   Write Bootstrap = "/etc/bacula/working/%n.bsr"
  157. #   Priority = 11                   # run after main backup
  158. # }
  159.  
  160. #
  161. # Standard Restore template, to be changed by Console program
  162. #  Only one such job is needed for all Jobs/Clients/Storage ...
  163. #
  164. # Job {
  165. #   Name = "RestoreFiles"
  166. #   Type = Restore
  167. #   Client=rquid-fd
  168. #   FileSet="Full Set"
  169. #   Storage = File1
  170. #   Pool = File
  171. #   Messages = Standard
  172. #   Where = /tmp/bacula-restores
  173. # }
  174.  
  175.  
  176. # List of files to be backed up
  177. # FileSet {
  178. #   Name = "Full Set"
  179. #   Include {
  180. #     Options {
  181. #       signature = MD5
  182. #     }
  183. #
  184. #  Put your list of files here, preceded by 'File =', one per line
  185. #    or include an external list with:
  186. #
  187. #    File = <file-name
  188. #
  189. #  Note: / backs up everything on the root partition.
  190. #    if you have other partitions such as /usr or /home
  191. #    you will probably want to add them too.
  192. #
  193. #  By default this is defined to point to the Bacula binary
  194. #    directory to give a reasonable FileSet to backup to
  195. #    disk storage during initial testing.
  196. #
  197. #     File = /usr/bin
  198. #   }
  199.  
  200. #
  201. # If you backup the root directory, the following two excluded
  202. #   files can be useful
  203. #
  204. #   Exclude {
  205. #     File = /etc/bacula/working
  206. #     File = /tmp
  207. #     File = /proc
  208. #     File = /tmp
  209. #     File = /sys
  210. #     File = /.journal
  211. #     File = /.fsck
  212. #   }
  213. # }
  214.  
  215. #
  216. # When to do the backups, full backup on first sunday of the month,
  217. #  differential (i.e. incremental since full) every other sunday,
  218. #  and incremental backups other days
  219. # Schedule {
  220. #   Name = "WeeklyCycle"
  221. #   Run = Full 1st sun at 23:05
  222. #   Run = Differential 2nd-5th sun at 23:05
  223. #   Run = Incremental mon-sat at 23:05
  224. # }
  225.  
  226. # This schedule does the catalog. It starts after the WeeklyCycle
  227. # Schedule {
  228. #   Name = "WeeklyCycleAfterBackup"
  229. #   Run = Full sun-sat at 23:10
  230. # }
  231.  
  232. # # This is the backup of the catalog
  233. # FileSet {
  234. #   Name = "Catalog"
  235. #   Include {
  236. #     Options {
  237. #       signature = MD5
  238. #     }
  239. #     File = "/etc/bacula/working/bacula.sql"
  240. #   }
  241. # }
  242.  
  243. # # Client (File Services) to backup
  244. #    Client {
  245. #    Name = rquid-fd
  246. #    Address = 192.168.1.35
  247. #    FDPort = 9102
  248. #    Catalog = MyCatalog
  249. #    Password = "jfbMw5KX5abyh0ttiLatA45I/nHWDyvw2sNbSxDStm1j"          # password for FileDaemon
  250. #    File Retention = 14 days            # 60 days
  251. #    Job Retention = 14 days           # six months
  252. #    AutoPrune = yes                     # Prune expired Jobs/Files
  253. #  }
  254.  
  255. # FileSet {
  256. # }
  257.  
  258. #
  259. # Second Client (File Services) to backup
  260. #  You should change Name, Address, and Password before using
  261. #
  262. #Client {
  263. #  Name = rquid2-fd
  264. #  Address = rquid2
  265. #  FDPort = 9102
  266. #  Catalog = MyCatalog
  267. #  Password = "jfbMw5KX5abyh0ttiLatA45I/nHWDyvw2sNbSxDStm1j2"        # password for FileDaemon 2
  268. #  File Retention = 60 days           # 60 days
  269. #  Job Retention = 6 months           # six months
  270. #  AutoPrune = yes                    # Prune expired Jobs/Files
  271. #}
  272.  
  273.  
  274. # Definition of file Virtual Autochanger device
  275. # Storage {
  276. #   Name = File1
  277. # # Do not use "localhost" here
  278. #   Address = rquid                # N.B. Use a fully qualified name here
  279. #   SDPort = 9103
  280. #   Password = "yIWu/LvFPT2jQP8rT3/lWsD8F54qggvunCN6rem1StMx"
  281. #   Device = FileChgr1
  282. #   Media Type = File1
  283. #   Maximum Concurrent Jobs = 10        # run up to 10 jobs a the same time
  284. # }
  285.  
  286. # Definition of a second file Virtual Autochanger device
  287. #   Possibly pointing to a different disk drive
  288. # Storage {
  289. #   Name = File2
  290. # # Do not use "localhost" here
  291. #   Address = rquid                # N.B. Use a fully qualified name here
  292. #   SDPort = 9103
  293. #   Password = "yIWu/LvFPT2jQP8rT3/lWsD8F54qggvunCN6rem1StMx"
  294. #   Device = FileChgr2
  295. #   Media Type = File2
  296. #   Maximum Concurrent Jobs = 10        # run up to 10 jobs a the same time
  297. # }
  298.  
  299. # Definition of LTO-4 tape Autochanger device
  300. #Storage {
  301. #  Name = LTO-4
  302. #  Do not use "localhost" here
  303. #  Address = rquid               # N.B. Use a fully qualified name here
  304. #  SDPort = 9103
  305. #  Password = "yIWu/LvFPT2jQP8rT3/lWsD8F54qggvunCN6rem1StMx"         # password for Storage daemon
  306. #  Device = LTO-4                     # must be same as Device in Storage daemon
  307. #  Media Type = LTO-4                 # must be same as MediaType in Storage daemon
  308. #  Maximum Concurrent Jobs = 10
  309. #}
  310.  
  311. # Generic catalog service
  312. Catalog {
  313.   Name = MyCatalog
  314.   dbname = "bacula"; dbuser = "bacula"; dbpassword = "bacula"
  315. }
  316.  
  317. # Reasonable message delivery -- send most everything to email address
  318. #  and to the console
  319. Messages {
  320.   Name = Standard
  321. #
  322. # NOTE! If you send to two email or more email addresses, you will need
  323. #  to replace the %r in the from field (-f part) with a single valid
  324. #  email address in both the mailcommand and the operatorcommand.
  325. #  What this does is, it sets the email address that emails would display
  326. #  in the FROM field, which is by default the same email as they're being
  327. #  sent to.  However, if you send email to more than one address, then
  328. #  you'll have to set the FROM address manually, to a single address.
  329. #  for example, a 'no-reply@mydomain.com', is better since that tends to
  330. #  tell (most) people that its coming from an automated source.
  331.  
  332. #
  333.   mailcommand = "/usr/bin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
  334.   operatorcommand = "/usr/bin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
  335.   mail = root@localhost = all, !skipped
  336.   operator = root@localhost = mount
  337.   console = all, !skipped, !saved
  338. #
  339. # WARNING! the following will create a file that you must cycle from
  340. #          time to time as it will grow indefinitely. However, it will
  341. #          also keep all your messages if they scroll off the console.
  342. #
  343.   append = "/var/log/bacula/bacula.log" = all, !skipped
  344.   catalog = all
  345. }
  346.  
  347.  
  348. #
  349. # Message delivery for daemon messages (no job).
  350. Messages {
  351.   Name = Daemon
  352.   mailcommand = "/usr/bin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
  353.   mail = root@localhost = alert,error,fatal,terminate, !skipped
  354.   console = all, !skipped, !saved
  355.   append = "/var/log/bacula/bacula.log" = alert,error,fatal,terminate, !skipped
  356. }
  357.  
  358. # Default pool definition
  359. # Pool {
  360. #   Name = Default
  361. #   Pool Type = Backup
  362. #   Recycle = yes                       # Bacula can automatically recycle Volumes
  363. #   AutoPrune = yes                     # Prune expired volumes
  364. #   Volume Retention = 365 days         # one year
  365. #   Maximum Volume Bytes = 50G          # Limit Volume size to something reasonable
  366. #   Maximum Volumes = 100               # Limit number of Volumes in Pool
  367. # }
  368.  
  369. # File Pool definition
  370. # Pool {
  371. #   Name = File
  372. #   Pool Type = Backup
  373. #   Recycle = yes                       # Bacula can automatically recycle Volumes
  374. #   AutoPrune = yes                     # Prune expired volumes
  375. #   Volume Retention = 365 days         # one year
  376. #   Maximum Volume Bytes = 50G          # Limit Volume size to something reasonable
  377. #   Maximum Volumes = 100               # Limit number of Volumes in Pool
  378. #   Label Format = "Vol-"               # Auto label
  379. # }
  380.  
  381.  
  382. # Scratch pool definition
  383. # Pool {
  384. #   Name = Scratch
  385. #   Pool Type = Backup
  386. # }
  387.  
  388. #
  389. # Restricted console used by tray-monitor to get the status of the director
  390. #
  391. Console {
  392.   Name = rquid-mon
  393.   Password = "Gtz44BpZByc6+gktfGjvkYSGHukYaUa3Ig4/CJ2gXin3"
  394.   CommandACL = status, .status
  395. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement