2019-01-29 21:18:49 +01:00
|
|
|
# Import from HipChat/Stride
|
2018-10-07 01:19:00 +02:00
|
|
|
|
2019-01-29 21:18:49 +01:00
|
|
|
Starting with Zulip 1.9, Zulip supports importing data from HipChat and Stride,
|
2018-10-07 01:19:00 +02:00
|
|
|
including users, rooms, messages, avatars, and custom emoji.
|
|
|
|
|
2018-12-18 21:07:56 +01:00
|
|
|
This tool has been used to import HipChat teams with thousands of
|
|
|
|
members, thousands of streams and millions of messages. If you're
|
|
|
|
planning on doing an import much larger than that, or run into
|
2020-05-05 15:52:32 +02:00
|
|
|
performance issues when importing, [contact us](/help/contact-support).
|
2018-12-18 21:07:56 +01:00
|
|
|
|
2019-01-29 21:18:49 +01:00
|
|
|
**Note:** You can only import a HipChat or Stride group as a new Zulip
|
2018-10-07 01:19:00 +02:00
|
|
|
organization. In particular, you cannot use this tool to import data
|
2019-01-29 21:18:49 +01:00
|
|
|
into an existing Zulip organization.
|
2018-10-07 01:19:00 +02:00
|
|
|
|
2019-01-29 21:18:49 +01:00
|
|
|
## Import from HipChat or Stride
|
2018-10-07 01:19:00 +02:00
|
|
|
|
2019-01-29 21:18:49 +01:00
|
|
|
First, export your data.
|
2018-10-07 01:19:00 +02:00
|
|
|
|
|
|
|
{start_tabs}
|
|
|
|
{tab|cloud}
|
|
|
|
|
|
|
|
1. Log in at `yourdomain.hipchat.com/admin/`.
|
|
|
|
|
|
|
|
1. Click on the **Data Export** tab.
|
|
|
|
|
|
|
|
1. Select the data to export.
|
|
|
|
|
2018-12-13 23:13:17 +01:00
|
|
|
1. Set a **Password** to encrypt your export.
|
|
|
|
|
2018-10-07 01:19:00 +02:00
|
|
|
1. Click **Export**.
|
|
|
|
|
|
|
|
Once the export has completed, the export will be available to you in the
|
|
|
|
admin console.
|
|
|
|
|
|
|
|
{tab|server}
|
|
|
|
|
|
|
|
1. Upgrade to the latest version to ensure you have the latest updates to
|
|
|
|
the HipChat export dashboard.
|
|
|
|
|
|
|
|
1. Log in at the domain name configured for your Hipchat Server.
|
|
|
|
|
|
|
|
1. Click on **Server Admin > Export**.
|
|
|
|
|
|
|
|
1. Select the data to export.
|
|
|
|
|
2018-12-13 23:13:17 +01:00
|
|
|
1. Set a **Password** to encrypt your export.
|
|
|
|
|
2018-10-07 01:19:00 +02:00
|
|
|
1. Click **Export**.
|
|
|
|
|
|
|
|
Once the export has completed, you will receive an **email** with a link to
|
|
|
|
download the file.
|
|
|
|
|
|
|
|
!!! tip ""
|
|
|
|
If you are not on the latest version of Hipchat Server / Data Center,
|
|
|
|
you can do a command line export with `hipchat export --export`. See
|
|
|
|
HipChat's [command line export docs][cli-export] for more information.
|
|
|
|
|
2019-01-29 21:18:49 +01:00
|
|
|
{tab|stride}
|
|
|
|
|
|
|
|
1. Log in at `yourdomain.atlassian.net/admin/`.
|
|
|
|
|
|
|
|
1. Click on **Stride** in the bottom left in Application Settings.
|
|
|
|
|
|
|
|
1. Click **Create export**.
|
|
|
|
|
|
|
|
1. Select the data to export.
|
|
|
|
|
|
|
|
1. Set a **Password** to encrypt your export.
|
|
|
|
|
|
|
|
1. Click **Export**.
|
|
|
|
|
2018-10-07 01:19:00 +02:00
|
|
|
{end_tabs}
|
|
|
|
|
|
|
|
!!! warn ""
|
|
|
|
**Note:** Only HipChat Group Administrators can export data from HipChat.
|
|
|
|
|
|
|
|
[cli-export]: https://confluence.atlassian.com/hipchatdc3/export-data-from-hipchat-data-center-913476832.html
|
|
|
|
|
2020-06-09 00:58:42 +02:00
|
|
|
### Import into Zulip Cloud
|
2018-10-07 01:19:00 +02:00
|
|
|
|
2020-05-28 02:00:13 +02:00
|
|
|
Email support@zulip.com with your exported archive and your desired Zulip
|
2018-10-07 01:19:00 +02:00
|
|
|
subdomain. Your imported organization will be hosted at
|
|
|
|
`<subdomain>.zulipchat.com`.
|
|
|
|
|
2019-01-10 00:42:38 +01:00
|
|
|
Also, see the [caveats section notes on room subscribers](#caveats)
|
|
|
|
and consider whether you want to also send a HipChat API key to
|
|
|
|
provide a more faithful import.
|
|
|
|
|
2018-10-07 01:19:00 +02:00
|
|
|
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
|
|
|
|
|
2018-11-15 01:58:34 +01:00
|
|
|
First
|
|
|
|
[install a new Zulip server](https://zulip.readthedocs.io/en/stable/production/install.html),
|
|
|
|
skipping "Step 3: Create a Zulip organization, and log in" (you'll
|
|
|
|
create your Zulip organization via the data import tool instead).
|
|
|
|
|
2019-01-06 18:45:03 +01:00
|
|
|
Use [upgrade-zulip-from-git][upgrade-zulip-from-git] to
|
|
|
|
upgrade your Zulip server to the latest `master` branch.
|
2018-10-07 01:19:00 +02:00
|
|
|
|
|
|
|
Log in to a shell on your Zulip server as the `zulip` user. To import with
|
|
|
|
the most common configuration, run the following commands, replacing
|
2018-12-13 23:13:17 +01:00
|
|
|
`<exported_file>` with the HipChat export file and `<password>` with the
|
|
|
|
password you set during the HipChat export.
|
2018-10-07 01:19:00 +02:00
|
|
|
|
|
|
|
```
|
|
|
|
cd /home/zulip/deployments/current
|
2020-05-12 22:23:17 +02:00
|
|
|
supervisorctl stop all # Stop the Zulip server
|
2018-12-13 23:13:17 +01:00
|
|
|
openssl aes-256-cbc -d -in <exported_file> -out hipchat.tar.gz -md md5 -pass pass:<password>
|
|
|
|
./manage.py convert_hipchat_data hipchat.tar.gz --output converted_hipchat_data
|
2018-10-07 01:19:00 +02:00
|
|
|
./manage.py import '' converted_hipchat_data
|
2020-05-12 22:23:17 +02:00
|
|
|
./scripts/restart-server
|
2018-10-07 01:19:00 +02:00
|
|
|
```
|
|
|
|
|
2020-05-12 22:23:17 +02:00
|
|
|
This could take 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.
|
2018-10-07 01:19:00 +02:00
|
|
|
|
|
|
|
**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> converted_hipchat_data
|
|
|
|
```
|
|
|
|
|
|
|
|
{!import-login.md!}
|
|
|
|
|
2019-10-14 21:40:48 +02:00
|
|
|
[upgrade-zulip-from-git]: https://zulip.readthedocs.io/en/latest/production/upgrade-or-modify.html#upgrading-from-a-git-repository
|
2019-01-10 00:42:38 +01:00
|
|
|
|
|
|
|
## Caveats
|
|
|
|
|
2019-04-03 00:41:14 +02:00
|
|
|
While the import tool will correctly import the subscribers of private
|
|
|
|
rooms, HipChat does not store or export the list of subscribers for public
|
2019-01-10 00:42:38 +01:00
|
|
|
rooms. You can pick one of the following options for handling this:
|
2019-04-03 00:41:14 +02:00
|
|
|
|
2019-04-12 20:01:03 +02:00
|
|
|
1. Subscribe all users to all public streams (the default, which is good for small organizations).
|
2019-04-03 00:41:14 +02:00
|
|
|
|
2019-04-12 20:01:03 +02:00
|
|
|
1. Subscribe only HipChat room owners to public streams (and plan for users
|
2019-04-03 00:41:14 +02:00
|
|
|
to subscribe to the imported Zulip streams manually after the import
|
|
|
|
completes) using the `--slim-mode` option to `manage.py convert_hipchat_data`.
|
|
|
|
|
2019-04-12 20:01:03 +02:00
|
|
|
1. Use the [HipChat API][hipchat-api-tokens] to fetch each room's current
|
2019-04-03 00:41:14 +02:00
|
|
|
room subscribers as of the moment the import is run. Because HipChat
|
|
|
|
doesn't store subscribers to a room when clients are not connected, these
|
|
|
|
subscriptons will be incomplete for users who don't have an actively
|
|
|
|
connected client at the time of the import. You need to pass a HipChat
|
|
|
|
access token via `--token=abcd1234` in `manage.py convert_hipchat_data`
|
|
|
|
(or include it in your request, if importing into Zulip Cloud).
|
2019-01-10 00:42:38 +01:00
|
|
|
|
2019-10-14 21:40:48 +02:00
|
|
|
[upgrade-zulip-from-git]: https://zulip.readthedocs.io/en/latest/production/upgrade-or-modify.html#upgrading-from-a-git-repository
|
2019-01-10 00:42:38 +01:00
|
|
|
[hipchat-api-tokens]: https://developer.atlassian.com/server/hipchat/hipchat-rest-api-access-tokens/
|