diff options
author | emkael <emkael@tlen.pl> | 2022-10-23 13:29:58 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2022-10-23 13:29:58 +0200 |
commit | f7ed9ac02bc55e1d76b9c59b316e645aaf7284de (patch) | |
tree | 1186315bf414422d6f80d5effa727e2d8b1df08f /dumps/backup-dbs.sh | |
parent | 958f4509286b2e45c805d6dc583be3b5e570db25 (diff) |
S3 backup script for butler DBs
Diffstat (limited to 'dumps/backup-dbs.sh')
-rwxr-xr-x | dumps/backup-dbs.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dumps/backup-dbs.sh b/dumps/backup-dbs.sh new file mode 100755 index 0000000..29e6367 --- /dev/null +++ b/dumps/backup-dbs.sh @@ -0,0 +1,6 @@ +#!/bin/bash +cd $(dirname $0) +grep -v '^#' .backup | while read DB +do + mysqldump --column-statistics=0 ${LIGA_MYSQL_CONNECTION_OPTS} $DB > backup/$DB.sql +done |