diff --git a/debian/koha-common.cron.daily b/debian/koha-common.cron.daily index ef01f154ad..242b3f27bc 100644 --- a/debian/koha-common.cron.daily +++ b/debian/koha-common.cron.daily @@ -16,6 +16,7 @@ # along with this program. If not, see . koha-run-backups --days 2 --output /var/spool/koha +#koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/archive_purchase_suggestions.pl -c --age=years:1 koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/automatic_renewals.pl -c koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/automatic_checkin.pl koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/recalls/expire_recalls.pl diff --git a/misc/cronjobs/crontab.example b/misc/cronjobs/crontab.example index 1f61b54187..4d609cf081 100644 --- a/misc/cronjobs/crontab.example +++ b/misc/cronjobs/crontab.example @@ -88,6 +88,9 @@ KOHA_CRON_PATH = /usr/share/koha/bin/cronjobs # clean up databases nightly. Be sure not to run this with --sessions during a time when the system is in use! 16 1 * * * __KOHA_USER__ $KOHA_CRON_PATH/cleanup_database.pl --confirm --sessions --zebraqueue 10 --list-invites --temp-uploads --del-unv-selfreg 14 +# archive older purchase suggestions. Replace XX to define age in years (or change to days or months) +@daily __KOHA_USER__ $KOHA_CRON_PATH/archive_purchase_suggestions.pl -c --age=years:XX + # delete old purchase suggestions weekly. Replace XX with a number to define the age of suggestions to delete. @weekly __KOHA_USER__ $KOHA_CRON_PATH/purge_suggestions.pl --confirm --days XX > /dev/null 2>&1