adrema/bin/copydb

8 lines
241 B
Plaintext
Raw Permalink 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
ssh -l stammsilva zoomyboy.de "mysqldump -u nami -p$SCOUTROBOT_DB_PASSWORD nami" > db.tmp && sudo mysql scoutrobot < db.tmp
rm db.tmp