Initial clean version

This commit is contained in:
root
2026-11-11 09:24:28 +01:00
commit ab58b33f9c
156 changed files with 5697 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -euo pipefail
umask 077
# Run from the project root. Dumps all business records, accounts and report snapshots.
backup_dir="${1:-./backups}"
mkdir -p "$backup_dir"
backup_path="$backup_dir/esbsc-$(date +%Y%m%d-%H%M%S).sql.gz"
docker compose exec -T db sh -c 'exec mariadb-dump --single-transaction --routines --triggers --user="$MARIADB_USER" --password="$MARIADB_PASSWORD" "$MARIADB_DATABASE"' | gzip > "$backup_path"
printf 'Sauvegarde créée : %s\n' "$backup_path"