From ea48ffc5960f707e8684a1846040015a617820ae Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Tue, 16 Mar 2021 14:48:49 +1100 Subject: [PATCH] refstack: fix backup script typo This got copied from another command that also had this typo. Also, don't bother backing up the on-disk backups, as we backup directly via the stream dumps. Change-Id: Ie200a29eec2b1a0725a8872ab548bcb0f26980e6 --- inventory/service/host_vars/refstack01.openstack.org.yaml | 2 ++ playbooks/roles/refstack/tasks/main.yaml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/inventory/service/host_vars/refstack01.openstack.org.yaml b/inventory/service/host_vars/refstack01.openstack.org.yaml index 603e104c1b..dce1055974 100644 --- a/inventory/service/host_vars/refstack01.openstack.org.yaml +++ b/inventory/service/host_vars/refstack01.openstack.org.yaml @@ -5,3 +5,5 @@ letsencrypt_certs: borg_backup_excludes_extra: # live db files - /var/lib/refstack/db + # on-disk backups + - /var/backups/refstack-mariadb diff --git a/playbooks/roles/refstack/tasks/main.yaml b/playbooks/roles/refstack/tasks/main.yaml index 49b68d97ba..938f28fc8e 100644 --- a/playbooks/roles/refstack/tasks/main.yaml +++ b/playbooks/roles/refstack/tasks/main.yaml @@ -150,5 +150,5 @@ copy: content: >- /usr/local/bin/docker-compose -f /etc/refstack-docker/docker-compose.yaml exec -T mariadb - bash -c '/usr/bin/mysqldump --skip-extended-insert --databases gitea --single-transaction -uroot -p"$MYSQL_ROOT_PASSWORD"'T_PASSWORD"' + bash -c '/usr/bin/mysqldump --skip-extended-insert --databases refstack --single-transaction -uroot -p"$MYSQL_ROOT_PASSWORD"' dest: /etc/borg-streams/mysql