Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle file uploads / attachments #32

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Prev Previous commit
Document GridFS export for files with mongofiles
flying-scorpio committed Jul 30, 2024
commit d3c5b39b651b656500bdc1b0da94fe5b2850ac83
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -19,6 +19,16 @@ mongoexport --collection=users --db=rocketchat --out=users.json

Export them to `inputs/`

If you are using the `GridFS` storage mode, you will also need to export files:

```shell
for file in $(mongofiles --db=rocketchat --prefix=rocketchat_uploads list | awk '{print $1}'); do
mongofiles --db=rocketchat --prefix=rocketchat_uploads get "$file"
done
```

Export them to `inputs/files/`

### Configuring the Matrix Dev Server

Generate a Synapse homeserver config with the following command (you might change `my.matrix.host` for the actual server name, as it can't be changed afterwards):