matrixbridge/purge
2022-07-21 22:53:21 +02:00
..
matrixpurge.sh add purge script 2022-07-21 22:53:21 +02:00
README.md add purge script 2022-07-21 22:53:21 +02:00

Purge old meia

Shell script that cleans up the matrix postgresql database, removes push notifications that aren't needed, kicks out inactive users from rooms, cleans up states with synapse_auto_compressor and so on.

Running

  1. Set SQL credentials and URL to local matrix in the script
  2. build synapse_auto_compressor and set its path in the script
  3. make sure that the bridge did start at least once (it creates rooms and adds an admin user that we need)
  4. add it as a cron job all 6h or so, like:
0 */6 * * * root /etc/matrix-synapse/matrixpurge.sh