Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Documentation: Migrating user data #2040

Closed
emiljoha opened this issue Mar 21, 2017 · 6 comments
Closed

Documentation: Migrating user data #2040

emiljoha opened this issue Mar 21, 2017 · 6 comments

Comments

@emiljoha
Copy link

It would be very helpful if the documentation included instructions on how to migrate the user data (users, passwords, rooms, conversations etc.. ) to another server or in my case migrating from one operating system to another. Maybe it does already but I did not find it.

@croulibri
Copy link

To give you an idea, you can have a look on the Yunohost backup script (at https://github.com/YunoHost-Apps/synapse_ynh/blob/master/scripts/backup) and the Yunohost restore script (at https://github.com/YunoHost-Apps/synapse_ynh/blob/master/scripts/restore)

I understood you have mainly to backup and restore Synapse config (at /etc/matrix-synapse/) and Synapse database (at /var/lib/matrix-synapse/ ), set up properly files permission, and allows access to domain certs.

Waiting for a proper documentation, have a look on the well described scripts, they are much more knowledgeable than me.

@richvdh
Copy link
Member

richvdh commented Mar 22, 2017

you'll need to back up and restore the database, media store, and configuration.

You can't just move the users to another server without taking the room data, so I think you want documentation on something you can't do?

@emiljoha
Copy link
Author

@richvdh A bit confused. Why is it not possible to move the room data and in that case what does the YunoHosts backup scripts protect against?

@richvdh
Copy link
Member

richvdh commented Mar 22, 2017

That's my point. It is possible to move the room data. It's not possible to move the user data without the room data. I thought you were asking for the latter.

If you'd like documentation on how to back up and restore a synapse server, that would certainly make sense. Raised as #2046.

Can't comment on the yunohost stuff.

@ara4n
Copy link
Member

ara4n commented Oct 2, 2017

@monochromec
Copy link

You will find a server_transfer script at https://github.com/monochromec/matrix_server_transfer addressing some of the most important issues discussed above. Please read the README.md carefully (including the caveats) in order to avoid disappointment :-).

This code is very much beta / a PoC, so any PRs are welcome!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants