diff --git a/templates/zerver/help/import-from-mattermost.md b/templates/zerver/help/import-from-mattermost.md index 71c0963fc7..19bed6642e 100644 --- a/templates/zerver/help/import-from-mattermost.md +++ b/templates/zerver/help/import-from-mattermost.md @@ -14,6 +14,45 @@ First, export your data. The following instructions assume you're running Mattermost inside a Docker container. Replace `` and `` with appropriate values accordingly. +{start_tabs} + +{tab|mm-default} + +1. SSH into your Mattermost production server. + + ``` + ssh @> + ``` + +2. Navigate to the directory which contains the Mattermost executable. + On a default install of Mattermost, the directory is `/opt/mattermost/bin`. + + ``` + cd /opt/mattermost/bin + ``` + +3. Run the following commands to export the data from all teams on your server as a tar file. + + ``` + sudo ./mattermost export bulk export.json --all-teams + mkdir -p exported_emoji + tar --transform 's|^|mattermost/|' -czf export.tar.gz \ + exported_emoji/ export.json + ``` + +4. Now exit out of the Mattermost server. + + `exit` + +5. Finally copy the exported tar file from the server to your local computer. Make sure to + replace `/opt/mattermost/bin/` with the correct directory if it is different in your case. + + ``` + scp @:/opt/mattermost/bin/export.tar.gz . + ``` + +{tab|mm-docker} + 1. SSH into your Mattermost server running the docker containers. ``` @@ -48,7 +87,9 @@ running Mattermost inside a Docker container. Replace `` and ``` scp @:mattermost-docker/volumes/app/mattermost/data/export.tar.gz . ``` - + +{end_tabs} + ### Import into zulipchat.com Email support@zulipchat.com with your exported archive and your desired Zulip diff --git a/zerver/lib/bugdown/tabbed_sections.py b/zerver/lib/bugdown/tabbed_sections.py index 9fe4c52521..e6ba10605b 100644 --- a/zerver/lib/bugdown/tabbed_sections.py +++ b/zerver/lib/bugdown/tabbed_sections.py @@ -56,6 +56,9 @@ TAB_DISPLAY_NAMES = { 'server': 'HipChat Server or Data Center', 'stride': 'Stride', + 'mm-default': 'Default installation', + 'mm-docker': 'Docker installation', + 'send-email-invitations': 'Send email invitations', 'share-an-invite-link': 'Share an invite link', 'allow-anyone-to-join': 'Allow anyone to join',