#
# The script is halfway Norwegian and halfway English. Newer modifications are
# in English, we should probably stick to that.
-#
-# Known issues:
-#
-# o $R has no proper meaning because of the forking subshell stuff. We need a
-# more robust way of returning non-zero on errors, which we probably don't
-# right now.
-#
# The computer to backup.
computer=$1
# Check that the target filesystem is mounted (actually check that it's not
# the root filesystem)
+ if [ ! -d "$storagedir/$computer" ]; then
+ echo `date`" $computer: Target filesystem ($storagedir/$computer) does not exist. Aborting"
+ die
+ fi
rootfilesystem=`df -P /`
targetfilesystem=`df -P "$storagedir/$computer"`
if [ "$rootfilesystem" == "$targetfilesystem" ]; then