fleet/tools/backup_db/backup.sh
2024-02-23 13:49:23 -06:00

5 lines
194 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
docker run --rm --network fleet_default mysql:5.7 bash -c 'mysqldump -hmysql -uroot -ptoor --default-character-set=utf8mb4 fleet | gzip -' > backup.sql.gz