mkugithub / sanecleanup

Sensible defaults for data retention and cleanup for SAP Commerce

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sanecleanup

SAP Commerce 1811+

Sensible defaults for data retention and cleanup for SAP Commerce, based on my CX Works article Data Maintenance and Cleanup

  1. Download the repository as zip file

  2. Unpack to hybris/bin/custom

  3. Review and adapt the retention rules and cronjobs defined in sanecleanup/resources/impex/*.impex\

  4. If possible, disable storing of saved values / change history too! (help.sap.com, further recommendations in my article)

  5. Add extension to your localextensions.xml

    <extension name="sanecleanup" />
  6. 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)

Support

Please open an issue describing your problem or your feature request.

Contributing

Any and all pull requests are welcome.
Please describe your change and the motiviation behind it.

About

Sensible defaults for data retention and cleanup for SAP Commerce

License:Apache License 2.0


Languages

Language:Java 100.0%