How to purge the action logs
As your instance ages, you will want to reduce the size of the action_logs
table by dropping old entries persisted in the database.
At least the ones that do not log sensitive actions. Passbolt provides a command to do so.
This will enhance the performance of your instance, without compromise on security, user or password history.
Purge
The retention period in days is provided with the -r
option. Action logs
older than this argument will be irrevocably purged.
sudo su -s /bin/bash -c "/usr/share/php/passbolt/bin/cake passbolt action_logs_purge -r 90" www-data

Dry Run
The command has a --dry-run
option. The command will not purge the action logs, but instead provide the number of entries
that would be purged if not in dry-run mode.
sudo su -s /bin/bash -c "/usr/share/php/passbolt/bin/cake passbolt action_logs_purge --dry-run -r 90" www-data
