trusted-setup-server/backup.sh

7 lines
278 B
Bash
Raw Normal View History

2020-04-30 12:17:05 +02:00
#!/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