From 6caedbfc004a79e505cde0cb75abb46375dea239 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Tue, 28 May 2024 08:19:08 -0300 Subject: [PATCH] Bug 14565: Allow koha-run-backups to backup an instance called `demo` We all have a `demo` instance somewhere. It is so weird that the default script for backing up Koha has a hardcoded exclusion for instances called like that. This patch fixes that. To test: 1. Add a demo instance: $ ktd --shell k$ sudo koha-create --create-db demo 2. Run: k$ sudo debian/scripts/koha-run-backups 3. Check the backups: k$ ls -l /var/spool/koha/demo/ => FAIL: No backup for the demo instance 3. Apply this patch 4. Repeat 2 => SUCCESS: Backup made! 5. Sign off :-D Signed-off-by: Tomas Cohen Arazi Signed-off-by: David Nind Signed-off-by: Marcel de Rooy Signed-off-by: Katrin Fischer --- debian/scripts/koha-run-backups | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/scripts/koha-run-backups b/debian/scripts/koha-run-backups index 4ad2d38c94..91401ce6aa 100755 --- a/debian/scripts/koha-run-backups +++ b/debian/scripts/koha-run-backups @@ -70,7 +70,7 @@ if ! test $days -gt 0 ; then exit 1 fi -for name in $(koha-list --enabled | grep -Fxv demo) +for name in $(koha-list --enabled) do if koha-dump ${exclude_indexes} ${exclude_logs} "$name" > /dev/null; then # Only delete old backups if dump script return success. -- 2.39.5