6. Create an [access key](https://developers.cloudflare.com/r2/api/s3/tokens/).
7. Configure `config.yml` with your R2 credentials.
8. Set up an [object lifecycle rule](https://developers.cloudflare.com/r2/buckets/object-lifecycles) to auto-delete old exports from your bucket. 24 hours is a good choice.
9. Set up a [matrix-org/pantalaimon](https://github.com/matrix-org/pantalaimon) for encrypted sync.
10. Create a new Matrix user and configure it in `config.yml`
11. Add your username to `allowed_to_export` in `config.yml`
Remember, if your room is encrypted and new members can't see old history prior to their joining then the bot won't be able to export anything earlier than when it joined.