fleet/tools/backup_db/backup.sh
Zach Wasserman 9ec122c249
Backup and restore for development database (#480)
Tooling to make backup and restore of the development database easy.
2021-03-16 08:33:42 -07:00

5 lines
162 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 fleet | gzip -' > backup.sql.gz