From a79cd95314578ad0d63ec151a091a5392b3944f6 Mon Sep 17 00:00:00 2001 From: Alexey Date: Thu, 30 Apr 2020 13:17:05 +0300 Subject: [PATCH] backup script --- backup.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 backup.sh diff --git a/backup.sh b/backup.sh new file mode 100755 index 0000000..2475dfd --- /dev/null +++ b/backup.sh @@ -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 +