diff -Nur e-smith-backup-2.6.0.old/createlinks e-smith-backup-2.6.0.new/createlinks --- e-smith-backup-2.6.0.old/createlinks 2013-02-13 16:21:38.000000000 +0100 +++ e-smith-backup-2.6.0.new/createlinks 2016-06-30 15:43:04.012136084 +0200 @@ -34,6 +34,7 @@ templates2events("/etc/crontab", $event); templates2events("/etc/dar/CIFScredentials", $event); +templates2events("/etc/dar/DailyBackup.dcf", $event); #-------------------------------------------------- # 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-28 11:02:39.939632127 +0200 @@ -30,6 +30,7 @@ use POSIX qw(:sys_wait_h strftime); use File::Glob qw(bsd_glob); use esmith::ConfigDB; +use esmith::Backup; sub ldie; sub start_dar_killer; @@ -66,6 +67,8 @@ my $mntdir = $backupwk->prop('Mount') || '/mnt/smb'; $mntdir = "\/$smbshare" if ($VFSType eq 'usb'); # ToDo change to $backupwk->prop('Mount') my $deleteearly = $backupwk->prop('DeleteEarly') || 'false'; +my @backup_excludes = esmith::Backup->excludes; +@backup_excludes = map "\t/$_\n", sort @backup_excludes; my $report = "From: $frommail\n"; $report .= "To: $tomail\n"; @@ -74,6 +77,13 @@ $report .= "DAILY BACKUP TO WORKSTATION REPORT \n"; $report .= "================================== \n"; $report .= "Backup of $id started at " .localtime() . "\n"; +$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); diff -Nur e-smith-backup-2.6.0.old/root/etc/e-smith/templates/etc/dar/DailyBackup.dcf/45prune e-smith-backup-2.6.0.new/root/etc/e-smith/templates/etc/dar/DailyBackup.dcf/45prune --- e-smith-backup-2.6.0.old/root/etc/e-smith/templates/etc/dar/DailyBackup.dcf/45prune 1970-01-01 01:00:00.000000000 +0100 +++ e-smith-backup-2.6.0.new/root/etc/e-smith/templates/etc/dar/DailyBackup.dcf/45prune 2016-06-30 15:54:52.836309465 +0200 @@ -0,0 +1,7 @@ +{ + use esmith::Backup; + my @exclusion_list = esmith::Backup->excludes; + foreach my $dir ( @exclusion_list ) { + $OUT .= "--prune $dir\n"; + } +}