Bugzilla – Attachment 167218 Details for
Bug 14565
koha-run-backups does not backup an instance called demo
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14565: Allow koha-run-backups to backup an instance called `demo`
Bug-14565-Allow-koha-run-backups-to-backup-an-inst.patch (text/plain), 1.36 KB, created by
Tomás Cohen Arazi (tcohen)
on 2024-05-28 11:23:40 UTC
(
hide
)
Description:
Bug 14565: Allow koha-run-backups to backup an instance called `demo`
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2024-05-28 11:23:40 UTC
Size:
1.36 KB
patch
obsolete
>From 30fe2f5e8efde7459645a64b2224088b7d6510fc Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >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 <tomascohen@theke.io> >--- > 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 4ad2d38c94e..91401ce6aaa 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.45.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 14565
:
167218
|
167235
|
168224