# # For Bacula release 3.0.1 (30 April 2009) -- ubuntu 9.04 # # You might also want to change the default email address # from root to your address. See the "mail" and "operator" # directives in the Messages resource. # Director { # define myself Name = bayer-dir DIRport = 9101 # where we listen for UA connections QueryFile = "/etc/bacula/query.sql" WorkingDirectory = "/var/lib/bacula/working" PidDirectory = "/var/run" Maximum Concurrent Jobs = 1 Password = "********************8OX+xZkXYblh/L2C+PBFWZq9" # Console password Messages = Daemon } JobDefs { Name = "DefaultJob" Type = Backup Level = Incremental Client = ws123-fd FileSet = "Full Set" Schedule = "WeeklyCycle" Storage = File Messages = Standard Pool = Internal Priority = 10 Allow Duplicate Jobs = yes Accurate = yes } # # Define the main nightly save backup job # By default, this job will back up to disk in #Job { # Name = "Client1" # JobDefs = "DefaultJob" # Write Bootstrap = "/var/lib/bacula/working/Client1.bsr" #} # Backup the catalog database (after the nightly save) Job { Name = "BackupCatalog" JobDefs = "DefaultJob" Level = Full FileSet="Catalog" Schedule = "WeeklyCycleAfterBackup" # This creates an ASCII copy of the catalog # WARNING!!! Passing the password via the command line is insecure. # see comments in make_catalog_backup for details. # Arguments to make_catalog_backup are: # make_catalog_backup RunBeforeJob = "/etc/bacula/make_catalog_backup bacula bacula" # This deletes the copy of the catalog RunAfterJob = "/etc/bacula/delete_catalog_backup" Write Bootstrap = "/var/lib/bacula/working/BackupCatalog.bsr" Priority = 12 # run after main backup } # # Standard Restore template, to be changed by Console program # Only one such job is needed for all Jobs/Clients/Storage ... # Job { Name = "RestoreFiles" Type = Restore Client=ws123-fd FileSet="Full Set" Storage = File Pool = Internal Messages = Standard Where = /bacula-restores } # List of files to be backed up FileSet { Name = "Full Set" Include { Options { signature = MD5 } File = /home/jbb/Desktop/Bacula/bacula-3.0.1 } # # If you backup the root directory, the following two excluded # files can be useful # Exclude { File = /proc File = /tmp File = /.journal File = /.fsck } } # # When to do the backups, full backup on first sunday of the month, # differential (i.e. incremental since full) every other sunday, # and incremental backups other days Schedule { Name = "WeeklyCycle" Run = Full 1st sun at 1:05 Run = Differential 2nd-5th sun at 1:05 Run = Incremental mon-sat at 1:05 Run = VirtualFull daily at 5:05 } # This schedule does the catalog. It starts after the WeeklyCycle Schedule { Name = "WeeklyCycleAfterBackup" Run = Full sun-sat at 1:10 Run = VirtualFull daily at 5:05 } # This is the backup of the catalog FileSet { Name = "Catalog" Include { Options { signature = MD5 } File = /var/lib/bacula/working/bacula.sql } } # Definition of file storage device Storage { Name = File Address = ws123.regiscope.net SDPort = 9103 Password = "****************sD0Tr2kZPuyoYQce2PwMITAlasEV" Device = FileStorage Media Type = File Maximum Concurrent Jobs = 1 } # Definition of file storage device Storage { Name = ExternalFileStorage # Do not use "localhost" here Address = ws123.regiscope.net SDPort = 9103 Password = "*****************D0Tr2kZPuyoYQce2PwMITAlasEV" Device = ExternalFileStorage Media Type = File Maximum Concurrent Jobs = 1 } # Generic catalog service Catalog { Name = MyCatalog # Uncomment the following line if you want the dbi driver # dbdriver = "dbi:postgresql"; dbaddress = 127.0.0.1; dbport = dbname = "bacula"; dbuser = "bacula"; dbpassword = "bacula00" } # Reasonable message delivery -- send most everything to email address # and to the console Messages { Name = Standard # mailcommand = "/sbin/bsmtp -h mail.regiscope.com -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r" operatorcommand = "/sbin/bsmtp -h mail.regiscope.com -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r" mail = jbayer AT regiscope DOT com = all, !skipped operator = jbayer AT regiscope DOT com = mount console = all, !skipped, !saved # # WARNING! the following will create a file that you must cycle from # time to time as it will grow indefinitely. However, it will # also keep all your messages if they scroll off the console. # append = "/var/lib/bacula/working/log" = all, !skipped } # # Message delivery for daemon messages (no job). Messages { Name = Daemon mailcommand = "/sbin/bsmtp -h mail.regiscope.com -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r" mail = jbayer AT regiscope DOT com = all, !skipped console = all, !skipped, !saved append = "/var/lib/bacula/working/log" = all, !skipped } # Default pool definition Pool { Name = Internal Pool Type = Backup Recycle = yes # Bacula can automatically recycle Volumes AutoPrune = yes # Prune expired volumes Volume Retention = 365 days # one year NextPool = External Storage = File } # Default pool definition Pool { Name = External Pool Type = Backup Recycle = yes # Bacula can automatically recycle Volumes AutoPrune = yes # Prune expired volumes Volume Retention = 365 days # one year Storage = ExternalFileStorage } # Scratch pool definition Pool { Name = Scratch Pool Type = Backup } # # Restricted console used by tray-monitor to get the status of the director # Console { Name = bayer-mon Password = "*****************rEStNzjCrOHFGVBQIvt4ygP0eGY" CommandACL = status, .status } # ## All Client-specific files are stored in the bacula-dir.d directory and included here # @bacula-dir.d/brian.conf @bacula-dir.d/brian-desktop.conf @bacula-dir.d/clonezilla.conf @bacula-dir.d/darkroast.conf @bacula-dir.d/demowebsrv.conf @bacula-dir.d/dns.conf @bacula-dir.d/ids.conf @bacula-dir.d/imagebuilder.conf @bacula-dir.d/mail.conf @bacula-dir.d/nagios.conf @bacula-dir.d/peaberry.conf @bacula-dir.d/repository.conf @bacula-dir.d/rdi.conf @bacula-dir.d/regvpn1.conf @bacula-dir.d/ws123.conf @bacula-dir.d/www.conf