PeGaSuS 9ca2a5981d Update mattermost-retention.sh
- Added some help text above configuration variables 
- Set `DB_HOST` to "127.0.0.1", since we'll usually run this script in the same machine as the database server
- Set `RETENTION` to 30 days as default, since it's a reasonable time lapse
- Set `DATA_PATH` to "/opt/mattermost/data/", since it's the default path for manual installations recommended on the Mattermost docs
- Removed unused `delete_before` since it was commented
- Some rewording
2021-11-30 22:55:59 +01:00
2020-11-22 21:27:31 +01:00

Mattermost data cleanup/retention

Free version of mattermost doesn't provide any message/attachment retention settings so this simple script cleans up posts and attachments

Usage

Script can work on standalone or dockerized deployment, however in the case of docker you must run it on application container (otherwise it wont be able to delete the files from the system. It was tested with official mattermost docker deployment.

Note

Currently this script only supports mattermost instaces using postgres database.

Description
No description provided
Readme 86 KiB
Languages
Shell 100%