Initial commit

This commit is contained in:
2026-02-15 15:16:36 +01:00
commit 7c1a67be4e
12 changed files with 207 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
#!/bin/bash
set -euo pipefail
echo "==> [mailcow] Dumping MariaDB database"
mkdir -p /mnt/staging
mariadb-dump \
--socket=/var/run/mysqld/mysqld.sock \
--skip-ssl \
-u "$MYSQL_USER" \
-p"$MYSQL_PASSWORD" \
--single-transaction \
"$MYSQL_DATABASE" > /mnt/staging/mailcow.sql
echo "==> [mailcow] Database dump complete ($(du -h /mnt/staging/mailcow.sql | cut -f1))"