diff -Nur e-smith-backup-2.6.0.old/root/etc/e-smith/web/functions/backup e-smith-backup-2.6.0.new/root/etc/e-smith/web/functions/backup --- e-smith-backup-2.6.0.old/root/etc/e-smith/web/functions/backup 2016-02-05 00:08:22.000000000 +0100 +++ e-smith-backup-2.6.0.new/root/etc/e-smith/web/functions/backup 2016-07-26 10:54:08.847578357 +0200 @@ -57,6 +57,8 @@ my @directories = $es_backup->restore_list; @directories = grep { -e "/$_" } @directories; +my @backup_excludes = $es_backup->excludes; + # Unbuffer standard output so that files and directories are listed as # they are restored $| = 1; @@ -460,6 +462,7 @@ StartEpochTime => $now, }); my $CompressionLevel = $conf->get_prop("backupconsole", "CompressionLevel") || "-6"; + my @exclude = map (" --exclude=$_",@backup_excludes); # Dump the current mysql tables so that they are part of the image. # The events handle cases where mysqld is not enabled, and/or is @@ -495,7 +498,7 @@ open(RD, "/bin/tar --directory / --create @directories --file=-" - . " | /usr/bin/gzip $CompressionLevel |" + . "@exclude | /usr/bin/gzip $CompressionLevel |" ); while ()