From f7ed9ac02bc55e1d76b9c59b316e645aaf7284de Mon Sep 17 00:00:00 2001 From: emkael Date: Sun, 23 Oct 2022 13:29:58 +0200 Subject: S3 backup script for butler DBs --- dumps/backup-dbs.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 dumps/backup-dbs.sh (limited to 'dumps/backup-dbs.sh') 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 -- cgit v1.2.3