echo "Configuration file is \"$conf\","
echo "using \"$conf_d\" as configuration directory."
echo
- exit 1
+ exit 2
}
CleanUp() {
for s in "$@"; do
if [ ! -r "${conf_d}/$s" ]; then
echo "$NAME: Can' read \"${conf_d}/$s\"!"
- exit 1
+ exit 3
fi
sys="$sys ${conf_d}/$s"
done
echo
echo -n "Aborted: "; date
echo
- exit 3
+ exit 4
fi
touch "$PIDFILE" 2>/dev/null
if [ $? -ne 0 ]; then
echo "Error: pre-exec command failed!"; echo
CleanUp
echo "Aborting backup."; echo
- exit 2
+ exit 5
fi
sleep 2
echo
if [ $ret -eq 20 ]; then
echo "Backup of \"$system\" interrupted. Aborting ..."
- CleanUp
- exit 1
+ GotSignal
fi
echo -n "End date: "; date
if [ $count_started -ne $count_ok ]; then
echo "-----> THERE HAVE BEEN ERRORS! <-----"
echo
- exit 1
+ exit 6
+elif [ $count_all -ne $count_started ]; then
+ exit 7
fi
# -eof-