User:Leucosticte/scripts

mirrorDump
mysqldump -uroot -p9780451 mirrorbot > mirrorbot.sql
 * 1) !/bin/bash
 * 2) Dump mirrorbot database to mirrorbot.sql

mirrorRestore
mysql -p9780451 -uroot -e "drop database mirrorbot;create database mirrorbot;" mysql -p9780451 -uroot mirrorbot < mirrorbot.sql
 * 1) !/bin/bash
 * 2) Restore mirrorbot.sql to mirrorbot database