-
Notifications
You must be signed in to change notification settings - Fork 18
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
Data rentention management #189
Comments
This script looks pretty neat. I guess it could be integrated pretty easily, by putting it into a cron directory, and have it look at the yunohost settings to get the number of days of retention. I don't really have the bandwidth to do improvements (other than bug fixes) right now (because life™), but I can definitely mentor someone willing to give it a shot :) |
Do you think that it's could be possible to just deleted old attached files ? |
quick implantation https://github.com/YunoHost-Apps/mattermost_ynh/tree/retention |
I had to use a slightly different syntax: |
Yes! I can make sense also from my point of view on a server with low resources to purge files and keep text messages which are much less consuming. You just have to comment this line https://github.com/YunoHost-Apps/mattermost_ynh/blob/retention/conf/retention.sh#L25 . Probably we could split this script with 2 different parameters for posts and for files, add a cron task to automatise, and the job is done :) |
Data retention management is provided only in the Enterprise Edition : https://docs.mattermost.com/administration/data-retention.html
I think it is however a important function for the privacy management and also to control the disk usage of Mattermost, therefore I would suggest to provide the following script to help Yunohost's administrators (it deletes all messages and medias older than a given number of days) :
Based on https://github.com/aljazceru/mattermost-retention
I personally stop the Mattermost service before running this script but I don't know if it is a strong requirement.
I don't know what's the best way to integrate it.
The text was updated successfully, but these errors were encountered: