docker
docker copied to clipboard
Migrating channels and users from standard server install to docker install
Can I migrate existing users and channels (very small deployment, Maybe 7 channels, 10 users and 100 messages total) from an existing mattermost deployment? (don't need to migrate settings or features etc. Just the actual messages and users) This is not a docker install. Just a standard ubuntu mysql install
I was in a similar situation wanting to migrate my small system installed on a standard VM with MySQL to a new system running the docker container. I was not able to get the migration to postgresql working, so I forked this project, changed docker-compose to use MySQL, and created a migration script. The script will copy the data over, set permissions, make updates to the MySQL database including access permissions and collation updates (for MySQL 8, which I was not using), and start it running in daemon mode.
I imagine by now you have worked out something, but in case anyone else is in our situation, here is the link to my fork. Hopefully it will be of use to someone as-is or as a starting place!
https://github.com/kelderek/mattermost-mysql-docker-compose