From: Gregg A. D. <gdi...@ca...> - 2008-03-12 18:11:36
|
This is my bacula-dir.conf Director { # define myself Name = backup.carana.com-dir DIRport = 9101 QueryFile = "/etc/bacula/scripts/query.sql" WorkingDirectory = /var/lib/bacula PidDirectory = "/var/run/bacula" Maximum Concurrent Jobs = 1 Password = "XXXXXXXXXXXXXXXXXXXXXXX" # Console password Messages = Daemon DirAddress = 192.168.0.245 } JobDefs { Name = DefaultJob Type = Backup Level = Incremental Client = backup.carana.com-fd FileSet = "Full Set" Schedule = WeeklyCycle Storage = SuperLoader3 Messages = Standard Pool = Default } JobDefs { Name = DefaultShared Type = Backup Level = Differential Client = shared.carana.com-fd FileSet = "Shared Set" Schedule = WeeklyCycle Storage = SuperLoader3 Messages = Standard Pool = Default } Job { Name = "Client1" JobDefs = "DefaultJob" Write Bootstrap = "/var/lib/bacula/Client1.bsr" } Job { Name = Client2 Client = shared.carana.com-fd JobDefs = DefaultShared Write Bootstrap = "/var/lib/bacula/Client2.bsr" Storage = SuperLoader3 } # 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 RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup <dbname> <user> <password>" # This deletes the copy of the catalog RunAfterJob = "/etc/bacula/scripts/delete_catalog_backup" Write Bootstrap = "/var/lib/bacula/BackupCatalog.bsr" Priority = 11 # run after main backup } # Job { Name = "RestoreFiles" Type = Restore Client=backup.carana.com-fd FileSet="Full Set" Storage = File Pool = Default Messages = Standard Where = /tmp/bacula-restores } # List of files to be backed up FileSet { Name = "Full Set" Include { Options { signature = MD5 } File = / } Exclude { File = /proc File = /tmp File = /.journal File = /.fsck } } FileSet { Name = "Shared Set" Include { Options { signature = MD5 } File = / File = /usr File = /home } Exclude { File = /proc File = /.journal File = /.fsck File = /backup } } Schedule { Name = WeeklyCycle Run = Level=Full 1st sun at 23:05 Run = Level=Full Differential 2nd-5th sun at 23:05 Run = Level=Full Differential mon-sat at 23:05 } Schedule { Name = DailyOffsite Run = Level=Differential mon-sat at 22:15 } # This schedule does the catalog. It starts after the WeeklyCycle Schedule { Name = "WeeklyCycleAfterBackup" Run = Full sun-sat at 23:10 } # This is the backup of the catalog FileSet { Name = "Catalog" Include { Options { signature = MD5 } File = /var/lib/bacula/bacula.sql } } # Client (File Services) to backup Client { Name = backup.carana.com-fd Address = backup.carana.com FDPort = 9102 Catalog = MyCatalog Password = "XXXXXXXXXXXXXXXXXXXXXXX" # password for FileDaemon File Retention = 30 days # 30 days Job Retention = 6 months # six months AutoPrune = yes # Prune expired Jobs/Files } Client { Name = shared.carana.com-fd Address = 192.168.0.230 FDPort = 9102 Catalog = MyCatalog Password = "XXXXXXXXXXXXXXXXXXXXXXX" # password for FileDaemon 2 File Retention = 30 days # 30 days Job Retention = 6 months # six months AutoPrune = yes # Prune expired Jobs/Files } # Definition of file storage device Storage { Name = File # Do not use "localhost" here Address = backup.carana.com # N.B. Use a fully qualified name here SDPort = 9103 Password = "XXXXXXXXXXXXXXXXXXXXXXX" Device = FileStorage Media Type = File } Storage { Name = SuperLoader3 Address = backup.carana.com SDPort = 9103 Password = "XXXXXXXXXXXXXXXXXXXXXXX" Device = SuperLoader3 Media Type = DLT-8000 Autochanger = yes } Catalog { Name = MyCatalog dbname = bacula; DB Address = ""; user = "bacula"; password = "smmb#200" } mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula: %t %e of %c %l\" %r" operatorcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula: Intervention needed for %j\" %r" mail = root@localhost = all, !skipped operator = root@localhost = mount console = all, !skipped, !saved 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 } Console { Name = backup.carana.com-mon Password = "XXXXXXXXXXXXXXXXXXXXXXX" CommandACL = status, .status } Storage { Name = DAT72 Password = "XXXXXXXXXXXXXXXXXXXXXXX" Address = backup.carana.com SDPort = 9103 Device = DDS-4 Media Type = DAT72 } Job { Name = OffsiteShared JobDefs = DefaultShared Type = Backup Level = Differential Client = shared.carana.com-fd FileSet = "Shared Set" Schedule = DailyOffsite Storage = DAT72 Pool = Default Messages = Standard } ##EOF Everything else works fine, though I'm still trying to set up the biweekly full backup to slot 8 of the autoloader which will be moved offsite for disaster recovery. That part, I'll tackle once the daily offsite differential is solved. Thanks for you help, -Gregg -----Original Message----- From: John Drescher [mailto:dre...@gm...] Sent: Wednesday, March 12, 2008 1:59 PM To: Gregg A. Discenza Cc: bac...@li... Subject: Re: [Bacula-users] Preventing auto-escalation On Wed, Mar 12, 2008 at 1:55 PM, Gregg A. Discenza <gdi...@ca...> wrote: > I have an autoloader with a LTO-3 drive as well as a DAT72 drive attached to > my bacula server. > > I am trying to schedule differential backups onto the DAT72 drive to be > taken offsite daily, but for some reason bacula insists on doing an initial > full backup (which won't fit on a single tape) onto the DAT72, even though a > full backup of the same file set has been written to the LTO-3 the day > before. > > Is there any way to prevent this auto-escalation of a defined differential > job to a full job? > > I'm already writing a differential to the autoloader every night for > standard restores, the DAT72 tape is for bare metal disaster recovery. > Are you using 1 job for both devices or more than 1? John |