Giter Club home page Giter Club logo

mattermost_housekeeping's Introduction

Mattermost housekeeping script

Deletes old entries in Post and FileInfo on MatterMost GPLv2.

General

Free as in freedom mattermost housekeeping script.

The current change log can be found here.

The current documentation can be found here.

This script supports MySQL/MariaDB only right now. If you need something for postgresql, take a look to mattermost-retention.

Setup

Please read the installation docmentation.

The script comes with an install- and an uninstall routine.

All configurable values are configured in <project_path>/data/local_configuration.sh.

What

This is a full blown cronjob/systemd.service to cleanup the mattermost database tables Posts and FileInfo.

Entries older than x days where removed. This includes the attachments on the disk.

Why

I am using my private mattermost server to communicate with each other. A german saying is "was interessiert mich mein geschwätz von Gestern" ("what do I care about my chatter from yesterday"). Also a german word called "Datenhygiene" ("data hygiene") is important. Plus, as the administrator, I want to keep the system fast for daily use. Because of that, I wanted an easy way to remove messages older than x days. There is no official configuration section in the open source version of mattermost, so I've written this little script.

The script removes entries older than <configured value> days from the database tables Posts and FileInfo. The script also removes the deleted files from the filesystem.

Right now, only mysql is supported. Right now, you have to duplicate the configuration values from your /usr/share/webapps/mattermost/config/config.json. Since the configuration is written in json and json is !fun in bash, we have to keep it that way.

Thanks to matterclean and rsyslog_mysql_housekeeping.

mattermost_housekeeping's People

Contributors

stevleibelt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.