backup script

This commit is contained in:
Alexey 2020-04-30 13:17:05 +03:00
parent dcc7123b83
commit a79cd95314

6
backup.sh Executable file
View File

@ -0,0 +1,6 @@
#!/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