]> git.koha-community.org Git - koha.git/commit
Bug 21111: Add --exclude-indexes to koha-run-backups
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 13 Jul 2020 13:25:02 +0000 (10:25 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 4 Nov 2020 11:59:34 +0000 (12:59 +0100)
commitc2293d5c602b27b8f88d64d15eaa4de94e6bc16c
tree9034b069118422c81932b0e657268798a9eca151
parentee028855c246b1496003fbfccfd20042594ac4bf
Bug 21111: Add --exclude-indexes to koha-run-backups

This patch adds a trivial switch so koha-run-backups can pass the
--exclude-indexes option switch to koha-dump. This way if the sysadmin
doesn't want to backup the Zebra indexes, it can be controlled by
tweaking the cron definition.

To test:
1. Apply this patch
2. Run:
   $ debian/scripts/koha-run-backups --days 2 --output /var/spool/koha
3. Notice the size of the backups:
   $ ls -lh /var/spool/koha/kohadev
4. Try the new option switch:
   $ debian/scripts/koha-run-backups \
       --exclude-indexes \
       --days 2 --output /var/spool/koha
5. Repeat 3
=> SUCCESS: Backups are smaller!
6. Sign off :-D

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
JD amended patch: fix --exclude_indexes vs --exclude-indexes in koha-run-backups.xml

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
debian/docs/koha-run-backups.xml
debian/scripts/koha-run-backups