From fe23839aaf866d857d5cd9cab7e71159255518c2 Mon Sep 17 00:00:00 2001 From: hjp Date: Thu, 20 May 2010 09:25:20 +0000 Subject: [PATCH] log mounts --- scripts/backup | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/backup b/scripts/backup index a39b788..21d5f3f 100755 --- a/scripts/backup +++ b/scripts/backup @@ -33,11 +33,13 @@ my $base_device = $st->dev; for (glob("/backup/*")) { my $st = stat($_); my $dir_device = $st->dev; + $ca->log(0, "checking $_"); if ($base_device == $dir_device) { # not a mount point (my $basedir = $_) =~ s{^/backup/}{}; if (-e "/dev/disk/by-id/$basedir") { # matching device exists + $ca->log(0, "mounting /dev/disk/by-id/$basedir on $_"); system("/bin/mount", "-o", "nodev,noexec,nomand,nosuid", "/dev/disk/by-id/$basedir", $_); } }