diff --git a/restore.sh b/restore.sh index f1a718c..8d58788 100644 --- a/restore.sh +++ b/restore.sh @@ -2,7 +2,7 @@ # ============================================================================= # /opt/windmill-restore/restore.sh # Windmill Backup Restore Worker -# Version: 1.0.16 +# Version: 1.0.17 # # Unterstützt sowohl VM (qm) als auch CT (pct) Backups. # Backup-Typ wird automatisch aus dem Backup-Pfad erkannt (vm/ oder ct/). @@ -73,8 +73,11 @@ done LOG_DIR="/opt/windmill-restore/logs" mkdir -p "$LOG_DIR" SAFE_CLIENT="${CLIENT_NAME//\//_}" -LOG_FILE="$LOG_DIR/${SAFE_CLIENT}_$(date +%Y%m%d_%H%M%S).log" -exec > >(tee -a "$LOG_FILE") 2>&1 +SAFE_CLIENT="${SAFE_CLIENT//:/_}" +# LOG_FILE = gleicher Name wie nohup-Redirect aus Step D/E +# So landen alle Ausgaben in derselben Datei +LOG_FILE="$LOG_DIR/${SAFE_CLIENT}.log" +exec >> "$LOG_FILE" 2>&1 # ── Backup-Pfad zerlegen ────────────────────────────────────────────────────── # Format: "tnp-Invest-GmbH:vm/100/2024-01-15T02:00:00Z"