trusted-setup-server/backup.sh
2020-04-30 13:17:05 +03:00

7 lines
278 B
Bash
Executable File

#!/bin/bash
docker exec trusted-setup-server_mysql_1 sh -c 'mysqldump -u $MYSQL_USER -p$MYSQL_PASSWORD $MYSQL_DATABASE > /var/lib/mysql/backup_dump.sql'
docker cp trusted-setup-server_mysql_1:/var/lib/mysql/backup_dump.sql /tmp/
scp /tmp/backup_dump.sql ip.tornado.cash:/root