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> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
8a90ec5432
commit
6caedbfc00
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue