root@cablemon /etc/bacula# cat bacula-dir.conf # # Default Bacula Director Configuration file # # The only thing that MUST be changed is to add one or more # file or directory names in the Include directive of the # FileSet resource. # # For Bacula release 5.0.1 (24 February 2010) -- ubuntu 10.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 = cablemon-dir DIRport = 9101 # where we listen for UA connections QueryFile = "/etc/bacula/scripts/query.sql" WorkingDirectory = "/var/lib/bacula" PidDirectory = "/var/run/bacula" Maximum Concurrent Jobs = 1 Password = "12345" # Console password Messages = Daemon DirAddress = 127.0.0.1 } JobDefs { Name = "DefaultJob" Type = Backup # Level = Incremental Client = cablemon-fd FileSet = "Full Set" Schedule = "WeeklyCycle" Storage = File Messages = Standard # Pool = File Pool = Default Full Backup Pool = Full-Pool Incremental Backup Pool = Inc-Pool Differential Backup Pool = Diff-Pool Priority = 10 Write Bootstrap = "/var/lib/bacula/%c.bsr" } # # Define the main nightly save backup job # By default, this job will back up to disk in /nonexistant/path/to/file/archive/dir Job { Name = "BackupClient1" JobDefs = "DefaultJob" RunBeforeJob = "/usr/local/sbin/backupdbs" } # Name = "BackupClient2" # Client = cablemon2-fd # JobDefs = "DefaultJob" #} # 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 # Arguments to make_catalog_backup.pl are: # make_catalog_backup.pl RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup.pl MyCatalog" # This deletes the copy of the catalog RunAfterJob = "/etc/bacula/scripts/delete_catalog_backup" Write Bootstrap = "/var/lib/bacula/%n.bsr" Priority = 11 # run after main backup Pool = Default } # # 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=cablemon-fd FileSet="Full Set" Storage = File Pool = Default Messages = Standard Where = /mnt/sdb1/bacula-restores } Job { Name = "Watchdog" Type = Admin Client = Watchdog FileSet = "Verify Set" Messages = Standard Storage = File Pool = Default Schedule = "Watchdog" RunAfterJob = "/etc/bacula/watchdog %c %d" } # List of files to be backed up FileSet { Name = "Full Set" Include { Options { signature = MD5 } # # or include an external list with: # # File = \" -s \"Bacula: %t %e of %c %l\" %r" # operatorcommand = "/usr/lib/bacula/bsmtp -h localhost -f "Bacula" -s \"Bacula: Intervention needed for %j\" %r" operatorcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r" #Where to send email mail = murray.davis AT vecima DOT com,root@localhost = all, !skipped #mail = root@localhost = all, !skipped operator = me AT domain DOT com,root@localhost = mount #operator = root@localhost = 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/log" = all, !skipped catalog = all } # # Message delivery for daemon messages (no job). Messages { Name = Daemon mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r" mail = root@localhost = all, !skipped console = all, !skipped, !saved append = "/var/lib/bacula/log" = all, !skipped } # Default pool definition Pool { Name = Default Pool Type = Backup Recycle = yes # Bacula can automatically recycle Volumes AutoPrune = yes # Prune expired volumes Volume Retention = 365 days # one year } Pool { Name = Full-Pool Pool Type = Backup Recycle = yes # automatically recycle Volumes AutoPrune = yes # Prune expired volumes Volume Retention = 6 months Maximum Volume Jobs = 1 Label Format = Full- Maximum Volumes = 9 } Pool { Name = Inc-Pool Pool Type = Backup Recycle = yes # automatically recycle Volumes AutoPrune = yes # Prune expired volumes Volume Retention = 20 days Maximum Volume Jobs = 6 Label Format = Inc- Maximum Volumes = 7 } Pool { Name = Diff-Pool Pool Type = Backup Recycle = yes AutoPrune = yes Volume Retention = 40 days Maximum Volume Jobs = 1 Label Format = Diff- Maximum Volumes = 10 } # File Pool definition Pool { Name = File Pool Type = Backup Recycle = yes # Bacula can automatically recycle Volumes AutoPrune = yes # Prune expired volumes Volume Retention = 365 days # one year Maximum Volume Bytes = 50G # Limit Volume size to something reasonable Maximum Volumes = 100 # Limit number of Volumes in Pool } # Scratch pool definition Pool { Name = Scratch Pool Type = Backup } # # Restricted console used by tray-monitor to get the status of the director # Console { Name = cablemon-mon Password = "12345" CommandACL = status, .status } root@cablemon /etc/bacula# root@cablemon /etc/bacula# cat bacula-fd.conf # # Default Bacula File Daemon Configuration file # # For Bacula release 5.0.1 (24 February 2010) -- ubuntu 10.04 # # There is not much to change here except perhaps the # File daemon Name to # # # List Directors who are permitted to contact this File daemon # Director { Name = cablemon-dir Password = "12345" } # # Restricted Director, used by tray-monitor to get the # status of the file daemon # Director { Name = cablemon-mon Password = "12345" Monitor = yes } # # "Global" File daemon configuration specifications # FileDaemon { # this is me Name = cablemon-fd FDport = 9102 # where we listen for the director WorkingDirectory = /var/lib/bacula Pid Directory = /var/run/bacula Maximum Concurrent Jobs = 20 FDAddress = 127.0.0.1 } # Send all messages except skipped files back to Director Messages { Name = Standard director = cablemon-dir = all, !skipped, !restored } root@cablemon /etc/bacula# cat bacula-sd.conf # # Default Bacula Storage Daemon Configuration file # # For Bacula release 5.0.1 (24 February 2010) -- ubuntu 10.04 # # You may need to change the name of your tape drive # on the "Archive Device" directive in the Device # resource. If you change the Name and/or the # "Media Type" in the Device resource, please ensure # that dird.conf has corresponding changes. # Storage { # definition of myself Name = cablemon-sd SDPort = 9103 # Director's port WorkingDirectory = "/var/lib/bacula" Pid Directory = "/var/run/bacula" Maximum Concurrent Jobs = 20 SDAddress = 127.0.0.1 } # # List Directors who are permitted to contact Storage daemon # Director { Name = cablemon-dir Password = "12345" } # # Restricted Director, used by tray-monitor to get the # status of the storage daemon # Director { Name = cablemon-mon Password = "12345" Monitor = yes } # # Note, for a list of additional Device templates please # see the directory /examples/devices # Or follow the following link: # http://bacula.svn.sourceforge.net/viewvc/bacula/trunk/bacula/examples/devices/ # # # Devices supported by this Storage daemon # To connect, the Director's bacula-dir.conf must have the # same Name and MediaType. # Device { Name = FileStorage Media Type = File Archive Device = /mnt/sdb1/backups LabelMedia = yes Random Access = yes AutomaticMount = yes RemovableMedia = no AlwaysOpen = no } # # Send all messages to the Director, # mount messages also are sent to the email address # Messages { Name = Standard director = cablemon-dir = all } root@cablemon /etc/bacula# ls