descriptionnone
last changeWed, 24 Feb 2021 23:55:18 +0000 (00:55 +0100)
readme

Someone's privileged Mattermost scripts.

Beware: These scripts run regularily and are well tested. BUT by using these scripts, MM inc. may refuse to help you, if you run into (unrelated) issues with your MM.

It all started with me starting to write my own DB+FS cleaner, after posting this: https://mattermost.uservoice.com/forums/306457/suggestions/15357861 But eventually grew to include other scripts too.

consider running as cronjobs:

00 23 * * *   (cd /srv/mattermost/mattermost-privileged; git pull --recurse-submodules=yes; git gc) &>/dev/null
55 23 * * *   (cd /srv/mattermost/mattermost-privileged/maintenance; python3 -u db.py |tee /tmp/maintenance_db.log; python3 -u fs.py echo ""; du -sch /srv/mattermost/data/* | tail)
59 11 * * MON (cd /srv/mattermost/mattermost-privileged/profile_badges; python3 -u main.py)
0 0 * * 2-7   (cd /srv/mattermost/mattermost-privileged/stats; python3 -u main.py)
0 0 * * MON   (cd /srv/mattermost/mattermost-privileged/stats; python3 -u main.py week)

maintenance

Beware: running this WILL break your instance's audit-trails. This IS intended behavior

profile_badges

stats

shortlog
36 hours ago Someonestats/userstats.py master
36 hours ago Someonestats/posts_with_reactions.py
36 hours ago Someonestats/channel_activity.py
6 days ago Someone modified: db.py
2021-02-02 Someonestats/users_online.py
2021-02-02 Someoneusers_online.py
2021-02-01 Someoneprofile_badges/main.py
2021-01-23 SomeoneLICENSE.txt
2021-01-23 daJu[stats] utils
2021-01-23 daJu[stats] userstats
2021-01-23 Someone[stats] posts_with_reactions
2021-01-23 Someone[stats] channel_activity
2021-01-23 Someone[stats] base for dumping various stats into channels.
2021-01-23 Someone[profile_badges] post-count and channel-membership...
2021-01-23 Someone[maintenance] Permanently delete {"deleted",orphaned...
2021-01-23 gitREADME.md
...
tags
4 years ago InitialCommit
heads
36 hours ago master