X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fbacula%2Ftemplates%2Fbacula-dir.conf.erb;h=06bd634b09a44dd23b222e19d24c53ea6d984d94;hb=1ef26f44436d93b4881fa3052e3cbd9d46b34df1;hp=9132a553f32068e54f5a95590b29dc2ea8a38692;hpb=3794acefe67b3857583e63dab7dd53ae0ea1a2d7;p=mirror%2Fdsa-puppet.git diff --git a/modules/bacula/templates/bacula-dir.conf.erb b/modules/bacula/templates/bacula-dir.conf.erb index 9132a553f..06bd634b0 100644 --- a/modules/bacula/templates/bacula-dir.conf.erb +++ b/modules/bacula/templates/bacula-dir.conf.erb @@ -39,31 +39,42 @@ Director { ######################################################################## FileSet { Name = "Standard Set" + Ignore FileSet Changes = yes Include { Options { signature = SHA1 compression = GZIP9 + aclsupport = yes + xattrsupport = yes } - File = "\\|bash -c \"df -Pkl -x tmpfs -x iso9660 | tail -n +2 | awk '{print \$NF}' \"" + Options { + wild = "/swapfile*" + exclude = yes + } + File = "\\|/usr/local/sbin/bacula-backup-dirs" # Dont backup directories that contain .nobackup files Exclude Dir Containing = .nobackup } Exclude { - File = /var/lib/bacula - File = /var/cache/apt/ + File = /.fsck + File = /.journal + File = /dev + File = /home/buildd/build-trees + File = /lib/init/rw File = /nonexistant File = /proc - File = /tmp - File = /.journal - File = /.fsck + File = /srv/chroot File = /sys - File = /lib/init/rw - File = /var/run + File = /tmp + File = /var/cache/apt + File = /var/lib/apt + File = /var/lib/bacula + File = /var/lib/munin-async File = /var/lock - File = /dev - File = /srv/chroot - File = /home/buildd/build-trees + File = /var/log/samhain + File = /var/run + File = "\\|bash -c 'grep -s -v ^# /etc/bacula/local-exclude || true'" } } @@ -75,9 +86,9 @@ FileSet { Include { Options { signature = SHA1 - compression = GZIP9 + #compression = GZIP9 } - File = "/var/lib/bacula/bacula.sql" + File = "/var/lib/bacula/bacula.sql.gz" } } @@ -90,8 +101,10 @@ FileSet { # and incremental backups other days Schedule { Name = "WeeklyCycle" - Run = Full 1st sat at 00:35 - Run = Differential 2nd-5th sat at 00:35 + # fulls are automatically run if the last full backup was 40 days ago + # for the current value of 40 look for "Max Full Interval" in this file. + # Run = Full 1st sat at 00:35 + Run = Differential sat at 00:35 Run = Incremental sun-fri at 00:35 } @@ -154,13 +167,14 @@ JobDefs { Type = Backup Level = Incremental FileSet = "Standard Set" + Accurate = yes Schedule = "WeeklyCycle" Messages = Standard - Max Full Interval = 1 month + Max Full Interval = 40 days Priority = 10 Write Bootstrap = "/var/lib/bacula/%c.bsr" Maximum Concurrent Jobs = 20 - Client Run After Job = "/usr/local/sbin/postbaculajob -c \"%c\" -d \"%d\" -i \"%i\" -l \"%l\" -n \"%n\" -o /var/log/bacula-main.log" + Client Run After Job = "/usr/local/sbin/postbaculajob -c \"%c\" -d \"%d\" -i \"%i\" -l \"%l\" -n \"%n\" -o /var/log/bacula/client-after.state" } ######################################################################## @@ -242,11 +256,6 @@ Job { Write Bootstrap = "/var/lib/bacula/%n.bsr" Priority = 15 # run after main backup Pool = "poolcatalog-<%=bacula_pool_name%>" - RunScript { - RunsWhen=After - RunsOnClient=No - Console = "purge volume action=all allpools storage=%w" - } } ########################################################################