Fix: mariadb-dump || echo instead of hard fail on missing tables

This commit is contained in:
root
2026-06-05 23:17:03 +02:00
parent 1ee60405ce
commit 0f0de43da5
+1 -1
View File
@@ -56,7 +56,7 @@ git pull
# --- Automatic Safe Database Backup ---
echo "--> Creating automatic database backup before update..."
mkdir -p "$BACKUP_DIR"
mariadb-dump $MYSQL_CRED --force --skip-lock-tables "$DB_NAME" > "$BACKUP_DIR/backup_$(date +%Y%m%d_%H%M%S).sql"
mariadb-dump $MYSQL_CRED --force --skip-lock-tables "$DB_NAME" > "$BACKUP_DIR/backup_$(date +%Y%m%d_%H%M%S).sql" || echo "--> Backup heeft ontbrekende tabellen (niet kritisch) — update gaat verder"
# --- Automatic SQL Import ---
echo "--> Checking for new SQL files..."