diff -ruN e-smith-backup-2.2.0.old/root/etc/e-smith/events/actions/workstation-backup-dar e-smith-backup-2.2.0/root/etc/e-smith/events/actions/workstation-backup-dar --- e-smith-backup-2.2.0.old/root/etc/e-smith/events/actions/workstation-backup-dar 2010-10-10 13:23:42.000000000 +0100 +++ e-smith-backup-2.2.0/root/etc/e-smith/events/actions/workstation-backup-dar 2010-10-10 13:57:47.000000000 +0100 @@ -311,6 +311,17 @@ unless move($_, $setdirname); } +# Check free disk space +my $df = qx(/bin/df -Ph $mntdir); +if ($df =~ /^\S+\s+(\S+)\s+(\S+)\s+(\S+)\s+(\d*%)/mi) +{ + $report .= "Disk usage $2, $4 full, $3 available\n"; +} +else +{ + $report .= "Disk space not available\n"; +} + # unmount shared folder system("/bin/umount", "-f", "$mntdir");