Merge "Only backup the gitea database on gitea hosts"

This commit is contained in:
Zuul 2019-07-01 20:53:23 +00:00 committed by Gerrit Code Review
commit 784ee20501
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@
user: root
job: >
/usr/bin/docker-compose -f /etc/gitea-docker/docker-compose.yaml exec -T mariadb
bash -c '/usr/bin/mysqldump --opt --ignore-table mysql.event --all-databases --single-transaction -uroot -p"$MYSQL_ROOT_PASSWORD"' |
bash -c '/usr/bin/mysqldump --opt --databases gitea --single-transaction -uroot -p"$MYSQL_ROOT_PASSWORD"' |
gzip -9 > /var/backups/gitea-mariadb/gitea-mariadb.sql.gz
minute: 42
hour: 4