fleet/tools/backup_db/restore.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

6 lines
168 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
docker run --rm -i --network fleet_default mysql:5.7 bash -c 'gzip -kdc - | mysql -hmysql -uroot -ptoor fleet' < backup.sql.gz