mailiverse/deploy/tools/db-backup
2013-08-09 17:31:37 -04:00

8 lines
217 B
Plaintext
Executable File

V=`date "+%Y%m%d_%H%M%S"`
mysqldump -u root -p --all-databases > all.database.$V.sql
scp all.database.$V.sql mailiverse-backup@red:db-backup && rm all.database.$V.sql
ssh mailiverse-backup@red ./db-backup-finished