docs: Add docs for exporting from gitlab omnibus mattermost.

This commit is contained in:
Vishnu Ks
2019-04-12 23:48:01 +05:30
committed by Tim Abbott
parent 7718c00a36
commit 877d2bb68f
2 changed files with 27 additions and 0 deletions

View File

@@ -88,6 +88,32 @@ running Mattermost inside a Docker container. Replace `<username>` and
scp <username>@<server_ip>:mattermost-docker/volumes/app/mattermost/data/export.tar.gz . scp <username>@<server_ip>:mattermost-docker/volumes/app/mattermost/data/export.tar.gz .
``` ```
{tab|mm-gitlab-omnibus}
1. SSH into your GitLab Omnibus server.
2. Run the following commands to export the data from all teams on your server as a tar file.
```
cd /opt/gitlab/embedded/service/mattermost
sudo -u \
mattermost /opt/gitlab/embedded/bin/mattermost \
--config=/var/opt/gitlab/mattermost/config.json \
export bulk export.json --all-teams
mkdir -p exported_emoji
tar --transform 's|^|mattermost/|' -czf export.tar.gz \
exported_emoji/ export.json
```
3. Now exit out of the server.
`exit`
4. Finally copy the exported tar file from GitLab Omnibus to your local computer.
```
scp <username>@<server_ip>:/opt/gitlab/embedded/bin/mattermost/export.tar.gz .
```
{end_tabs} {end_tabs}
### Import into zulipchat.com ### Import into zulipchat.com

View File

@@ -58,6 +58,7 @@ TAB_DISPLAY_NAMES = {
'mm-default': 'Default installation', 'mm-default': 'Default installation',
'mm-docker': 'Docker installation', 'mm-docker': 'Docker installation',
'mm-gitlab-omnibus': 'Gitlab Omnibus',
'send-email-invitations': 'Send email invitations', 'send-email-invitations': 'Send email invitations',
'share-an-invite-link': 'Share an invite link', 'share-an-invite-link': 'Share an invite link',