Export a Matrix a room.
Go to file
Cyberes dcdcc15b53 add files 2024-04-03 22:57:54 -06:00
exporter add files 2024-04-03 22:57:54 -06:00
.gitignore add files 2024-04-03 22:57:54 -06:00
LICENSE Initial commit 2024-04-03 19:41:36 -06:00
README.md add files 2024-04-03 22:57:54 -06:00
config.yml.sample add files 2024-04-03 22:57:54 -06:00
main.py add files 2024-04-03 22:57:54 -06:00
matrix-room-exporter.service add files 2024-04-03 22:57:54 -06:00
requirements.txt add files 2024-04-03 22:57:54 -06:00

README.md

matrix-room-exporter

Export a Matrix a room.

This is a simple bot that can export a Matrix room and upload the compressed archive to a Cloudflare R2 bucket for the room to download.

Install

  1. pip install -r requirements.txt
  2. cp config.yml.sample config.yml
  3. Create a Cloudflare R2 bucket.
  4. Enable public access.
  5. Create an access key.
  6. Set up an object lifecycle rule to auto-delete old exports from your bucket. 24 hours is a good choice.
  7. Configure config.yml with your R2 credentials.
  8. Set up a matrix-org/pantalaimon for encrypted sync.
  9. Create a new Matrix user and configure it in config.yml.
  10. Start the bot with python3 main.py

Use

  1. Invite the new bot to the room you want to export.
  2. Send the message !export to start the export process.

The bot will upload the exported room to your R2 bucket and share the link with the room.