# # For Bacula release 5.0.1 (24 February 2010) -- ubuntu 10.04 # Director { # define myself Name = backup-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 = 3 Password = "xx" Messages = Daemon DirAddress = 127.0.0.1 } # Generic catalog service Catalog { Name = MyCatalog # Uncomment the following line if you want the dbi driver # dbdriver = "dbi:sqlite3"; dbaddress = 127.0.0.1; dbport = dbname = bacula; DB Address = ""; dbuser = "bacula"; dbpassword = "xx" } # Definition of file storage device Storage { Name = File # Do not use "localhost" here Address = xxx.xxx.xxx.87 # host running bacula director SDPort = 9103 Password = "xx" Device = FileStorage Media Type = File Maximum Concurrent Jobs = 3 } # File Pool definition Pool { Name = File Pool Type = Backup Recycle = no # Bacula can automatically recycle Volumes AutoPrune = yes # Prune expired volumes Volume Retention = 180 days # one year Maximum Volume Jobs = 1 Label Format = "${Job}_${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}_${Hour:p/2/0/r}h${Minute:p/2/0/r}m" Storage = File } # Reasonable message delivery -- send most everything to email address and to the console Messages { Name = Standard 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 = all, !skipped operator = root = mount console = all, !skipped, !saved 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 = all, !skipped console = all, !skipped, !saved append = "/var/lib/bacula/log" = all, !skipped } # # Restricted console used by tray-monitor to get the status of the director # Console { Name = backup-mon Password = "xx" CommandACL = status, .status } # SCHEDULES # ----------------------------------------------------------------------------- # 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 23:05 Run = Differential 2nd-5th sun at 23:05 #Run = Incremental mon-sat at 23:05 Run = Incremental mon-sat at 10:05 } # This schedule does the catalog. It starts after the WeeklyCycle Schedule { Name = "WeeklyCycleAfterBackup" #Run = Full sun-sat at 23:10 Run = Full sun-sat at 10:05 } Schedule { Name = "Desktop" Run = Incremental mon-fri at 10:30 } # FILE SET # ----------------------------------------------------------------------------- # List of files to be backed up FileSet { Name = "Full Set" Include { Options { signature = MD5 } File = / } Exclude { File = /var/lib/bacula File = /media/storage File = /proc File = /tmp File = /.journal File = /.fsck } } # This is the backup of the catalog FileSet { Name = "Catalog" Include { Options { signature = MD5 } File = "/var/lib/bacula/bacula.sql" } } FileSet { Name = "FullWin7Set" Ignore FileSet Changes = yes Include { Options { compression = GZIP signature = MD5 IgnoreCase = yes Exclude = yes # Exclude junction points WildDir = "[A-Z]:/Dokumente und Einstellungen" WildDir = "[A-Z]:/Documents and Settings" WildDir = "[A-Z]:/Program Files/Gemeinsame Dateien" WildDir = "[A-Z]:/Program Files/Windows NT/Zubehör" WildDir = "[A-Z]:/ProgramData/Anwendungsdaten" WildDir = "[A-Z]:/ProgramData/Application Data" WildDir = "[A-Z]:/ProgramData/Desktop" WildDir = "[A-Z]:/ProgramData/Documents" WildDir = "[A-Z]:/ProgramData/Dokumente" WildDir = "[A-Z]:/ProgramData/Favoriten" WildDir = "[A-Z]:/ProgramData/Favorites" WildDir = "[A-Z]:/ProgramData/Microsoft/Windows/Start Menu/Programme" WildDir = "[A-Z]:/ProgramData/Start Menu" WildDir = "[A-Z]:/ProgramData/Startmenü" WildDir = "[A-Z]:/ProgramData/Templates" WildDir = "[A-Z]:/ProgramData/Vorlagen" WildDir = "[A-Z]:/Programme" WildDir = "[A-Z]:/Documents and Settings" WildDir = "[A-Z]:/Users/All Users" WildDir = "[A-Z]:/Users/Default User" WildDir = "[A-Z]:/Users/*/AppData/Local/Application Data" WildDir = "[A-Z]:/Users/*/AppData/Local/Anwendungsdaten" WildDir = "[A-Z]:/Users/*/AppData/Local/History" WildDir = "[A-Z]:/Users/*/AppData/Local/Verlauf" WildDir = "[A-Z]:/Users/*/AppData/Local/Temporary Internet Files" WildDir = "[A-Z]:/Users/*/Application Data" WildDir = "[A-Z]:/Users/*/Anwendungsdaten" WildDir = "[A-Z]:/Users/*/Gemeinsame Dateien" WildDir = "[A-Z]:/Users/*/Cookies" WildDir = "[A-Z]:/Users/*/Documents/My Music" WildDir = "[A-Z]:/Users/*/Documents/Eigene Musik" WildDir = "[A-Z]:/Users/*/Documents/My Pictures" WildDir = "[A-Z]:/Users/*/Documents/Eigene Bilder" WildDir = "[A-Z]:/Users/*/Documents/My Videos" WildDir = "[A-Z]:/Users/*/Documents/Eigene Videos" WildDir = "[A-Z]:/Users/*/Local Settings" WildDir = "[A-Z]:/Users/*/Lokale Einstellungen" WildDir = "[A-Z]:/Users/*/My Documents" WildDir = "[A-Z]:/Users/*/Eigene Dateien" WildDir = "[A-Z]:/Users/*/NetHood" WildDir = "[A-Z]:/Users/*/Netzwerkumgebung" WildDir = "[A-Z]:/Users/*/PrintHood" WildDir = "[A-Z]:/Users/*/Druckumgebung" WildDir = "[A-Z]:/Users/*/Recent" WildDir = "[A-Z]:/Users/*/SendTo" WildDir = "[A-Z]:/Users/*/Start Menu" WildDir = "[A-Z]:/Users/*/Startmenü" WildDir = "[A-Z]:/Users/*/Templates" WildDir = "[A-Z]:/Users/*/Vorlagen" # Temporary directories & files WildDir = "[A-Z]:/Windows/Temp" WildDir = "[A-Z]:/Users/*/AppData/Local/Mozilla/Firefox/Profiles/*/Cache" # Recycle bins WildDir = "[A-Z]:/$Recycle.Bin" # Swap files WildFile = "[A-Z]:/pagefile.sys" } ExcludeDirContaining = "bacula_exclude.dir" File = "C:/" File = "E:/" File = "\\ 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 } # # 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 = backup.localdomain FileSet = "Full Set" Pool = File Messages = Standard } Job { Name = "R25" Client = r25-fd JobDefs = "Win7" } Job { Name = "R33" Client = r33-fd JobDefs = "Win7" } Job { Name = "R35" Client = r35-fd Enabled = no JobDefs = "Win7" }