Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aljazceru/mattermost-retention
Data retention /cleanup script for mattermost
https://github.com/aljazceru/mattermost-retention
Last synced: about 5 hours ago
JSON representation
Data retention /cleanup script for mattermost
- Host: GitHub
- URL: https://github.com/aljazceru/mattermost-retention
- Owner: aljazceru
- Created: 2018-01-28T19:38:52.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-07-27T15:37:09.000Z (over 1 year ago)
- Last Synced: 2024-05-02T04:39:19.149Z (7 months ago)
- Language: Shell
- Size: 12.7 KB
- Stars: 42
- Watchers: 5
- Forks: 19
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
This script currently supports mattermost instances using both mysql or postgres database.
Just specify `mysql` or `postgres` on the [DB_DRIVE](https://github.com/aljazceru/mattermost-retention/blob/master/mattermost-retention.sh#L26) variable.