From f136cfec2ae8c5f8b2d18185be0aba26eefffb7a Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Sun, 1 Jun 2025 08:02:12 -0700 Subject: [PATCH] mariadb: set single-transaction on backups We are seeing the backups here cause the wiki to become unresponsive. This might help it out and prevent it locking things while doing the backups. Signed-off-by: Kevin Fenzi --- roles/mariadb_server/files/backup-database | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/mariadb_server/files/backup-database b/roles/mariadb_server/files/backup-database index 6425b5d8f5..0e639d4cb6 100644 --- a/roles/mariadb_server/files/backup-database +++ b/roles/mariadb_server/files/backup-database @@ -4,7 +4,7 @@ DB=$1 # Make our latest backup -ionice -c3 /bin/mysqldump --user=root --add-drop-database $DB | /usr/bin/pxz -T2 > /backups/$DB-$(date +%F).dump.xz +ionice -c3 /bin/mysqldump --single-transaction --user=root --add-drop-database $DB | /usr/bin/pxz -T2 > /backups/$DB-$(date +%F).dump.xz # link to the latest backup ln -sf /backups/$DB-$(date +%F).dump.xz /backups/$DB-latest.xz