]> git.koha-community.org Git - koha.git/commit
Bug 14565: Allow koha-run-backups to backup an instance called `demo`
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 28 May 2024 11:19:08 +0000 (08:19 -0300)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Fri, 28 Jun 2024 11:49:22 +0000 (13:49 +0200)
commit6caedbfc004a79e505cde0cb75abb46375dea239
tree769221c2d251f6ce640d4788cc26ad993f56a3ed
parent8a90ec5432a4d282a22456ab99e05b3c0e22f97d
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>
debian/scripts/koha-run-backups