miyagi-backup.sh aktualisiert

This commit is contained in:
2025-06-12 11:56:57 +02:00
parent 2994dbffcf
commit 3714b62b2c
+3 -5
View File
@@ -6,10 +6,6 @@ PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
SCRIPT_NAME=$(basename "$0")
LOGFILE="/var/log/${SCRIPT_NAME%.sh}.log"
echo "Sleeping for one Minute to be interruped if necessary"
sleep 60
log() {
echo "[$(date '+%Y-%m-%d %H:%M:%S')] $*" | tee -a "$LOGFILE"
}
@@ -271,5 +267,7 @@ elif [[ "${1:-}" =~ ^[a-zA-Z0-9_]+$ && "$(type -t "$1")" == "function" ]]; then
"$FUNC" "$@"
exit 0
else
echo "Sleeping for another 60 seconds before starting main routine..."
sleep 60
main
fi
fi