Sensible defaults for data retention and cleanup for SAP Commerce, based on my CX Works article Data Maintenance and Cleanup
-
Download the repository as zip file
-
Unpack to
hybris/bin/custom
-
Review and adapt the retention rules and cronjobs defined in
sanecleanup/resources/impex/*.impex
\ -
If possible, disable storing of saved values / change history too! (help.sap.com, further recommendations in my article)
-
Add extension to your
localextensions.xml
<extension name="sanecleanup" />
-
Build and deploy.
(The rules will be imported during system update)
Warning
The first run of cronJobLogCleanupCronJob
will take a very long time, if you have never removed any cronjob log files (type LogFile
).
Please consider importing and executing the script job defined in bulkdelete-cronjoblogs.impex before you set up the automated cleanup!
The job will remove all log files except the five most recent ones per CronJob.
(Disclaimer: the script was tested on MS SQL / Azure SQL. It is not guaranteed to work for other Databases)
Please open an issue describing your problem or your feature request.
Any and all pull requests are welcome.
Please describe your change and the motiviation behind it.