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
This commit is contained in:
Ian Wienand 2021-03-16 14:48:49 +11:00
parent 40471d7ec0
commit ea48ffc596
2 changed files with 3 additions and 1 deletions

View File

@ -5,3 +5,5 @@ letsencrypt_certs:
borg_backup_excludes_extra:
# live db files
- /var/lib/refstack/db
# on-disk backups
- /var/backups/refstack-mariadb

View File

@ -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