Commit 7cfdb436 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

Added more default exclusions & fixed tar dev vers

parent 1505f1b9
......@@ -41,18 +41,36 @@ use MIME::Base64;
my $VERSION = "0.0.17a";
my $VERSION = "0.0.19a";
# System dirs we don't care about
my @defaultSystemExcl = ("/dev","/run","/proc","/sys","/tmp","/var/tmp","/misc","/media","/mnt");
# These should be backed up separately
my @defaultDataExcl = (
# We cannot backup the DB reliably by just copying files
"/var/lib/mysql","/var/lib/pgsql",
# Exclude amavis working files
"/var/amavis/tmp/",
"/var/lib/amavis/tmp/",
"/var/spool/amavis/virusmails/",
"/var/spool/mailman/retry",
# Exclude postfix queues
"/var/spool/postfix/active",
"/var/spool/postfix/defer",
"/var/spool/postfix/deferred",
"/var/spool/postfix/public",
"/var/spool/postfix/private",
# Exclude squid cache
"/var/spool/squid",
"/var/cache/yum"
# Yum cache
"/var/cache/yum",
# Apt cache
"/var/cache/apt/archives",
# cPanel
"/home/virtfs"
);
......@@ -1522,6 +1540,7 @@ sub getNumericVer
# Quick fix for devel versions
$a[2] = 0 if ($a[2] eq "x");
$a[2] =~ s/[a-z]$//;
return ( ($a[0]*1000000) + ($a[1]*1000) + $a[2] );
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment