SHARE
TWEET

Untitled

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