You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #!/bin/bash
- # -------------------------------------------------------
- # db-export.sh — Lokale DDEV-DB exportieren
- # Exportiert nach db/dump.sql (wird ins Git eingecheckt)
- # -------------------------------------------------------
- set -e
-
- SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
- cd "$SCRIPT_DIR/.."
-
- DUMP_PATH="db/dump.sql"
-
- echo "🗄️ Exportiere lokale Datenbank..."
-
- ddev export-db --file=$DUMP_PATH
-
- echo "✅ Datenbank exportiert nach: $DUMP_PATH"
- echo ""
- echo "Nicht vergessen:"
- echo " git add db/dump.sql"
- echo " git commit -m 'db: update dump'"
|