18 lines
632 B
Markdown
18 lines
632 B
Markdown
# 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](https://github.com/matrix-org/rust-synapse-compress-state) 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
|
|
```
|