Koha/misc/cronjobs
Nick Clemens 9515875626 Bug 18631: Add option to specify logs to preserve or delete in cleanup_database.pl
This adds two new parameters:
--log_module
--preserve_log

These can be repeated to include or exclude specific modules from the cleanup

To test:
0 - Apply patch
1 - Enable cataloging log and borrowers log
2 - Make some changes to borrowers and records
3 - run cleanup databse with --logs 0 --preserve_log=MEMBERS --preserve_log=CATALOGUING
4 - nothing is removed
5 - run cleanup databse with --logs 0 --log_module=MEMBERS
6 - the borrower logs are removed, the record changes remain
7 - run cleanup database with --logs 0
8 - record changes are removed (all other logs too)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Rebecca Coert <rcoert@arlingtonva.us>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-10-07 11:07:05 +02:00
..
holds Bug 17600: (follow-up) Fully qualify routine in cancel_expired_holds.pl 2021-07-30 15:53:18 +02:00
rss Bug 17600: Fix POSIX imports 2021-07-29 14:37:26 +02:00
social_data
thirdparty Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
advance_notices.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
archive_purchase_suggestions.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
automatic_checkin.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
automatic_item_modification_by_age.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
automatic_renewals.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
backup.sh
batch_anonymise.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
build_browser_and_cloud.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
cart_to_shelf.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
check-url-quick.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
cleanup_database.pl Bug 18631: Add option to specify logs to preserve or delete in cleanup_database.pl 2021-10-07 11:07:05 +02:00
cloud-kw.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
cloud-sample.conf
CONFIGURE.gmail Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
create_koc_db.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
crontab.example Bug 23207: (QA follow-up) Add to cron files 2021-04-22 11:11:05 +02:00
delete_items.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
delete_patrons.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
delete_records_via_leader.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
edi_cron.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
fines.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
gather_print_notices.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
import_webservice_batch.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
longoverdue.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
membership_expiry.pl Bug 28456: Add WHERE option to membership_expiry cronjob 2021-08-30 17:02:07 +02:00
merge_authorities.pl Bug 17600: Fix missing C4::AuthoritiesMARC import 2021-07-29 15:34:25 +02:00
notice_unprocessed_suggestions.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
overdue_notices.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
patron_emailer.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
plugins_nightly.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
printoverdues.sh
process_message_queue.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
purge_suggestions.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
reconcile_balances.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
remove_temporary_edifiles.pl
runreport.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
serialsUpdate.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
share_usage_with_koha_community.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
sitemap.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
staticfines.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
stockrotation.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
update_patrons_category.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
update_totalissues.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
writeoff_debts.pl Bug 22435: Update for bug 27049 2021-08-04 14:06:43 +02:00