adrema/bin/copydb

9 lines
292 B
Plaintext
Raw Normal View History

2021-07-04 16:56:07 +02:00
#/bin/bash
echo "drop database scoutrobot;" | sudo mysql
echo "create database scoutrobot;" | sudo mysql
2023-10-18 14:10:34 +02:00
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
2021-07-04 16:56:07 +02:00
rm db.tmp