--- rpms/e-smith-backup/sme10/e-smith-backup-2.6.0.Do_Dar_Exclusion.patch 2016/07/31 07:26:33 1.1 +++ rpms/e-smith-backup/sme10/e-smith-backup-2.6.0.Do_Dar_Exclusion.patch 2016/08/02 20:45:19 1.2 @@ -11,7 +11,7 @@ diff -Nur e-smith-backup-2.6.0.old/creat # events for pre-backup action diff -Nur e-smith-backup-2.6.0.old/root/etc/e-smith/events/actions/workstation-backup-dar e-smith-backup-2.6.0.new/root/etc/e-smith/events/actions/workstation-backup-dar --- e-smith-backup-2.6.0.old/root/etc/e-smith/events/actions/workstation-backup-dar 2016-02-05 00:08:22.000000000 +0100 -+++ e-smith-backup-2.6.0.new/root/etc/e-smith/events/actions/workstation-backup-dar 2016-07-26 10:41:26.365197149 +0200 ++++ e-smith-backup-2.6.0.new/root/etc/e-smith/events/actions/workstation-backup-dar 2016-07-28 11:02:39.939632127 +0200 @@ -30,6 +30,7 @@ use POSIX qw(:sys_wait_h strftime); use File::Glob qw(bsd_glob); @@ -29,14 +29,17 @@ diff -Nur e-smith-backup-2.6.0.old/root/ my $report = "From: $frommail\n"; $report .= "To: $tomail\n"; -@@ -74,6 +77,10 @@ +@@ -74,6 +77,13 @@ $report .= "DAILY BACKUP TO WORKSTATION REPORT \n"; $report .= "================================== \n"; $report .= "Backup of $id started at " .localtime() . "\n"; +$report .= "================================== \n"; -+$report .= "Some parts are excluded of your backup: \n"; -+$report .= "@backup_excludes"; -+$report .= "================================== \n"; ++ ++if (@backup_excludes) { ++ $report .= "Some parts are excluded of your backup: \n"; ++ $report .= "@backup_excludes"; ++ $report .= "================================== \n"; ++ } # ping the SMB Host to see if it is awake $report .= wol ($ether,$smbhost,$smbhostmac,$smbhostdelay);