mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
data_import: Document Rocket.Chat import tool.
This commit is contained in:
committed by
Tim Abbott
parent
24dd0ff96c
commit
e68b1989b3
@@ -34,8 +34,8 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="bottom-text">
|
<div class="bottom-text">
|
||||||
Or import
|
Or import
|
||||||
from <a href="/help/import-from-slack">Slack</a>, <a href="/help/import-from-mattermost">Mattermost</a>
|
from <a href="/help/import-from-slack">Slack</a>, <a href="/help/import-from-mattermost">Mattermost</a>,
|
||||||
or <a href="/help/import-from-gitter">Gitter</a>.
|
<a href="/help/import-from-gitter">Gitter</a>, or <a href="/help/import-from-rocketchat">Rocket.Chat</a>.
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -251,7 +251,7 @@
|
|||||||
<a class="feature-block" href="/help/import-from-slack" target="_blank" rel="noopener noreferrer">
|
<a class="feature-block" href="/help/import-from-slack" target="_blank" rel="noopener noreferrer">
|
||||||
<h3>DATA IMPORT</h3>
|
<h3>DATA IMPORT</h3>
|
||||||
<p>
|
<p>
|
||||||
Import an existing Slack, Mattermost or Gitter workspace into Zulip.
|
Import an existing Slack, Mattermost, Gitter or Rocket.Chat workspace into Zulip.
|
||||||
</p>
|
</p>
|
||||||
</a>
|
</a>
|
||||||
<a class="feature-block" href="/help/add-custom-profile-fields" target="_blank" rel="noopener noreferrer">
|
<a class="feature-block" href="/help/add-custom-profile-fields" target="_blank" rel="noopener noreferrer">
|
||||||
|
|||||||
@@ -333,7 +333,7 @@
|
|||||||
<a href="/for/events/">conferences</a>.
|
<a href="/for/events/">conferences</a>.
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li><div class="list-content">Getting started or moving from another platform is easy! Import your existing organization from <a href="/help/import-from-slack">Slack</a>, <a href="/help/import-from-mattermost">Mattermost</a>, or <a href="/help/import-from-gitter">Gitter</a>.</div></li>
|
<li><div class="list-content">Getting started or moving from another platform is easy! Import your existing organization from <a href="/help/import-from-slack">Slack</a>, <a href="/help/import-from-mattermost">Mattermost</a>, <a href="/help/import-from-gitter">Gitter</a>, or <a href="/help/import-from-rocketchat">Rocket.Chat</a>.</div></li>
|
||||||
<li><div class="list-content">Fully <a href="/help/stream-notifications">customizable notifications</a> let participants keep an eye on the discussions they care about.</div></li>
|
<li><div class="list-content">Fully <a href="/help/stream-notifications">customizable notifications</a> let participants keep an eye on the discussions they care about.</div></li>
|
||||||
<li><div class="list-content">If you have any questions, please contact us at <a href="mailto:sales@zulip.com">sales@zulip.com</a>. You can also drop by our <a href="/developer-community/">friendly developer community at chat.zulip.org</a> to ask for help or suggest improvements!</div></li>
|
<li><div class="list-content">If you have any questions, please contact us at <a href="mailto:sales@zulip.com">sales@zulip.com</a>. You can also drop by our <a href="/developer-community/">friendly developer community at chat.zulip.org</a> to ask for help or suggest improvements!</div></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
@@ -127,8 +127,9 @@ improvements into Zulip.
|
|||||||
|
|
||||||
Many communities that migrated from
|
Many communities that migrated from
|
||||||
[Slack](/help/import-from-slack),
|
[Slack](/help/import-from-slack),
|
||||||
[Mattermost](/help/import-from-mattermost), or
|
[Mattermost](/help/import-from-mattermost),
|
||||||
[Gitter](/help/import-from-gitter) to Zulip tell us
|
[Gitter](/help/import-from-gitter), or
|
||||||
|
[Rocket.Chat](/help/import-from-rocketchat) to Zulip tell us
|
||||||
that Zulip helped them manage and grow an inclusive, healthy
|
that Zulip helped them manage and grow an inclusive, healthy
|
||||||
community. We hope Zulip can help your community succeed too!
|
community. We hope Zulip can help your community succeed too!
|
||||||
|
|
||||||
|
|||||||
@@ -120,11 +120,12 @@ account](/help/configure-authentication-methods), instead of with a
|
|||||||
username and password.
|
username and password.
|
||||||
[github-auth]: https://github.com/zulip/zulip/blob/7e9926233/zproject/prod_settings_template.py#L112
|
[github-auth]: https://github.com/zulip/zulip/blob/7e9926233/zproject/prod_settings_template.py#L112
|
||||||
|
|
||||||
### Import from Slack, Mattermost, or Gitter.
|
### Import from Slack, Mattermost, Gitter, or Rocket.Chat.
|
||||||
|
|
||||||
Import your existing organization from [Slack](/help/import-from-slack),
|
Import your existing organization from [Slack](/help/import-from-slack),
|
||||||
[Mattermost](/help/import-from-mattermost), or
|
[Mattermost](/help/import-from-mattermost),
|
||||||
[Gitter](/help/import-from-gitter).
|
[Gitter](/help/import-from-gitter), or
|
||||||
|
[Rocket.Chat](/help/import-from-rocketchat).
|
||||||
|
|
||||||
### Collaborate on code and formulas
|
### Collaborate on code and formulas
|
||||||
|
|
||||||
|
|||||||
101
templates/zerver/help/import-from-rocketchat.md
Normal file
101
templates/zerver/help/import-from-rocketchat.md
Normal file
@@ -0,0 +1,101 @@
|
|||||||
|
# Import from Rocket.Chat
|
||||||
|
|
||||||
|
Starting with Zulip 5.0, Zulip supports importing data from Rocket.Chat,
|
||||||
|
including users, teams, channels, discussions, messages, and more.
|
||||||
|
|
||||||
|
**Note:** You can only import a Rocket.Chat workspace as a new Zulip
|
||||||
|
organization. In particular, you cannot use this tool to import data
|
||||||
|
into an existing Zulip organization.
|
||||||
|
|
||||||
|
## Import from Rocket.Chat
|
||||||
|
|
||||||
|
First, you need to export your data from Rocket.Chat. Rocket.Chat does
|
||||||
|
not provide an official data export feature, so the Zulip import tool
|
||||||
|
works by importing data from a Rocket.Chat database dump.
|
||||||
|
|
||||||
|
If you're self-hosting your Rocket.Chat instance, you can create a
|
||||||
|
database dump using the `mongodump` utility.
|
||||||
|
|
||||||
|
If your organization is hosted on Rocket.Chat Cloud or another hosting
|
||||||
|
provider that doesn't provide you with database access, you will need
|
||||||
|
to request a database dump by contacting their support.
|
||||||
|
|
||||||
|
In either case, you should end up with a directory containing many
|
||||||
|
`.bson` files.
|
||||||
|
|
||||||
|
### Import into Zulip Cloud
|
||||||
|
|
||||||
|
Email support@zulip.com with your database dump and your desired
|
||||||
|
Zulip subdomain. Your imported organization will be hosted at
|
||||||
|
`<subdomain>.zulipchat.com`.
|
||||||
|
|
||||||
|
If you've already created a test organization at
|
||||||
|
`<subdomain>.zulipchat.com`, let us know, and we can rename the old
|
||||||
|
organization first.
|
||||||
|
|
||||||
|
### Import into a self-hosted Zulip server
|
||||||
|
|
||||||
|
First [install a new Zulip
|
||||||
|
server](https://zulip.readthedocs.io/en/stable/production/install.html)
|
||||||
|
with Zulip 5.0 or newer, skipping "Step 3: Create a Zulip
|
||||||
|
organization, and log in" (you'll create your Zulip organization via
|
||||||
|
the data import tool instead).
|
||||||
|
|
||||||
|
Now, get the directory containing all the `bson` files in your database
|
||||||
|
dump and save it inside `/home/zulip/rocketchat` on your Zulip server and rename it
|
||||||
|
to `rocketchat` (the directory at `/home/zulip/rocketchat` should contain
|
||||||
|
all the `bson` files).
|
||||||
|
|
||||||
|
Log in to a shell on your Zulip server as the `zulip` user. To import with
|
||||||
|
the most common configuration, run the following commands:
|
||||||
|
|
||||||
|
```
|
||||||
|
cd /home/zulip/deployments/current
|
||||||
|
./scripts/stop-server
|
||||||
|
./manage.py convert_rocketchat_data /home/zulip/rocketchat --output /home/zulip/converted_rocketchat_data
|
||||||
|
./manage.py import "" /home/zulip/converted_rocketchat_data
|
||||||
|
./scripts/start-server
|
||||||
|
```
|
||||||
|
|
||||||
|
This could take a few seconds to several minutes to run, depending on how
|
||||||
|
much data you're importing. The server stop/restart is only necessary
|
||||||
|
when importing on a server with minimal RAM, where an OOM kill might
|
||||||
|
otherwise occur.
|
||||||
|
|
||||||
|
**Import options**
|
||||||
|
|
||||||
|
The commands above create an imported organization on the root domain
|
||||||
|
(`EXTERNAL_HOST`) of the Zulip installation. You can also import into a
|
||||||
|
custom subdomain, e.g. if you already have an existing organization on the
|
||||||
|
root domain. Replace the last line above with the following, after replacing
|
||||||
|
`<subdomain>` with the desired subdomain.
|
||||||
|
|
||||||
|
```
|
||||||
|
./manage.py import <subdomain> /home/zulip/converted_rocketchat_data
|
||||||
|
```
|
||||||
|
|
||||||
|
{!import-login.md!}
|
||||||
|
|
||||||
|
[upgrade-zulip-from-git]: https://zulip.readthedocs.io/en/latest/production/upgrade-or-modify.html#upgrading-from-a-git-repository
|
||||||
|
|
||||||
|
## Caveats
|
||||||
|
|
||||||
|
This import tool is currently beta and does not support importing
|
||||||
|
the following data:
|
||||||
|
|
||||||
|
- Custom emoji
|
||||||
|
- User avatars
|
||||||
|
- Uploaded files
|
||||||
|
- Default channels for new users
|
||||||
|
- Wildcard mentions such as `@all` and `@here` are not converted.
|
||||||
|
- Starred messages
|
||||||
|
- Threads as separate topics
|
||||||
|
- Messages longer than Zulip's limit of 10,000 characters.
|
||||||
|
|
||||||
|
Additionally, because Rocket.Chat does not provide a stable data
|
||||||
|
export API, the import tool may require small changes from time to
|
||||||
|
time to account for changes in the Rocket.Chat database format.
|
||||||
|
Please [contact us](/help/contact-support) if you counter any problems
|
||||||
|
using this tool.
|
||||||
|
|
||||||
|
[upgrade-zulip-from-git]: https://zulip.readthedocs.io/en/latest/production/upgrade-or-modify.html#upgrading-from-a-git-repository
|
||||||
@@ -116,6 +116,7 @@
|
|||||||
* [Import from Mattermost](/help/import-from-mattermost)
|
* [Import from Mattermost](/help/import-from-mattermost)
|
||||||
* [Import from Slack](/help/import-from-slack)
|
* [Import from Slack](/help/import-from-slack)
|
||||||
* [Import from Gitter](/help/import-from-gitter)
|
* [Import from Gitter](/help/import-from-gitter)
|
||||||
|
* [Import from Rocket.Chat](/help/import-from-rocketchat)
|
||||||
* [Roles and permissions](/help/roles-and-permissions)
|
* [Roles and permissions](/help/roles-and-permissions)
|
||||||
* [Set the default language for new users](/help/change-the-default-language-for-your-organization)
|
* [Set the default language for new users](/help/change-the-default-language-for-your-organization)
|
||||||
* [Export your organization](/help/export-your-organization)
|
* [Export your organization](/help/export-your-organization)
|
||||||
|
|||||||
@@ -880,6 +880,7 @@ help_markdown_rules = RuleList(
|
|||||||
"pattern": "[a-z][.][A-Z]",
|
"pattern": "[a-z][.][A-Z]",
|
||||||
"description": "Likely missing space after end of sentence",
|
"description": "Likely missing space after end of sentence",
|
||||||
"include_only": {"templates/zerver/help/"},
|
"include_only": {"templates/zerver/help/"},
|
||||||
|
"exclude_pattern": "Rocket.Chat",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"pattern": r"\b[rR]ealm[s]?\b",
|
"pattern": r"\b[rR]ealm[s]?\b",
|
||||||
|
|||||||
Reference in New Issue
Block a user