From e345ace428417304061be1979cc43e5116f3af91 Mon Sep 17 00:00:00 2001 From: Philipp Lang Date: Wed, 18 Oct 2023 14:10:34 +0200 Subject: [PATCH] use docker container for copydb --- bin/copydb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/copydb b/bin/copydb index 2cbb8d93..d019ee72 100755 --- a/bin/copydb +++ b/bin/copydb @@ -3,5 +3,6 @@ echo "drop database scoutrobot;" | sudo mysql echo "create database scoutrobot;" | sudo mysql -ssh -l stammsilva zoomyboy.de "mysqldump -u nami -p$SCOUTROBOT_DB_PASSWORD nami" > db.tmp && sudo mysql scoutrobot < db.tmp +ssh -l stammsilva zoomyboy.de "cd /usr/share/webapps/nami_silva && docker compose exec db mysqldump -udb -p$SCOUTROBOT_DB_PASSWORD db" > db.tmp +sudo mysql scoutrobot < db.tmp rm db.tmp