aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2010-01-05 14:34:30 +0100
committerintrigeri <intrigeri@boum.org>2010-01-05 14:34:30 +0100
commit49bfd02bd3ee6eccc2eaa0a7c668c46b4a15af0a (patch)
tree64be01ec95e526442f12c4af85aa4ea6f03b0da1
parent172b0e3341cb60ffed14eea306373d696dacc600 (diff)
downloadbackupninja-49bfd02bd3ee6eccc2eaa0a7c668c46b4a15af0a.tar.gz
backupninja-49bfd02bd3ee6eccc2eaa0a7c668c46b4a15af0a.tar.bz2
reportspace: skip non-directories and places that don't exist on the local filesystem (Closes: #536049)
-rw-r--r--ChangeLog2
-rwxr-xr-xsrc/backupninja.in2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 586e3fd..130a544 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,8 @@ version 0.9.7 -- UNRELEASED
preliminary patch (Closes: #511299)
. new reportinfo option: when set, messages sent by handlers with
"info" are included in the report e-mail (closes #563734)
+ . reportspace: skip non-directories and places that don't exist on the
+ local filesystem (Closes: #536049)
lib changes
easydialog:
. Allow form fields input to grow up to 100 chars (Closes: #562249)
diff --git a/src/backupninja.in b/src/backupninja.in
index 34021b5..c3ec7ed 100755
--- a/src/backupninja.in
+++ b/src/backupninja.in
@@ -570,7 +570,7 @@ if [ $doit == 1 ]; then
previous=""
for i in $(ls "$configdirectory"); do
backuploc=$(grep ^directory "$configdirectory"/"$i" | @AWK@ '{print $3}')
- if [ "$backuploc" != "$previous" -a -n "$backuploc" ]; then
+ if [ "$backuploc" != "$previous" -a -n "$backuploc" -a -d "$backuploc" ]; then
df -h "$backuploc"
previous="$backuploc"
fi