touch $LOCKFILE
echo $$ > $LOCKFILE
-#syntax of remotestat:
-#hostname:/directory/
-remotestatf=$confdir/remotestat
-[ -f $remotestatf ] && remotestat=`cat $remotestatf`
-###
-
-PATH=/local/bin:$PATH:/store/bin
-export PATH
-
echo `date`": Backup run starting" >&2
umask 027
# 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