Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add task to clean database using cron schedule #670

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

simonhammes
Copy link
Collaborator

No description provided.

@christophdb
Copy link
Member

Most users forget to create a cronjob to clean their database regularly. To avoid that database is blotted with operation log after some weeks of months, SeaTable should clean the database itself.

This adds a dtable-event job, running every night at 0:30 am. It uses the retention days, that are currently part of the clean_db script.

Still the retention days could be customized in dtable_events.conf with

[CLEAN DB]
keep_dtable_snapshot_days = 365
keep_activities_days = 30
keep_operation_log_days = 14
keep_delete_operation_log_days = 30
keep_notifications_usernotification_days = 30
keep_dtable_notifications_days = 30
keep_session_log_days = 30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants