Skip to content

Instantly share code, notes, and snippets.

View nightcoding's full-sized avatar
💻
coding every night

Martin nightcoding

💻
coding every night
View GitHub Profile
@nightcoding
nightcoding / mysql_backup.sh
Created April 28, 2026 16:04
Simple mysql backup bash script
#!/usr/bin/env bash
set -euo pipefail
# ====== Konfiguration ======
DB_NAME="your_database"
DB_HOST="127.0.0.1"
DB_PORT="3306"
DB_USER="backup_user"
# Empfehlung: Passwort NICHT hier hardcoden (siehe Hinweis unten).