* update to lastpass export article to match their updated procedure * typo - thankyou Sugi! * clarification on the export event courtesy of Tony * shift around 'Using SSO' for JIT & (as a result) de-emphasize linking * language list * redirect
9.0 KiB
layout, title, categories, featured, popular, tags, order, description
| layout | title | categories | featured | popular | tags | order | description | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| article | Migration Procedures |
|
false | false |
|
04 | This article explains how to migrate from the Bitwarden Cloud to a self-hosted server and vice versa. |
This article will walk you through procedures for transitioning from Cloud to Self-hosted, from Self-hosted to Cloud, and from one self-hosted server to another:
Migrate Cloud to Self-hosted
To migrate from the Cloud to a self-hosted server:
-
Install and deploy Bitwarden to your server. At a high-level, this procedure involves:
- Configuring a domain for Bitwarden.
- Installing Docker and Docker Compose.
- Running the installation shell script.
- Configuring your environment to setup the Admin Portal, an SMTP Server connection, and more.
-
Start your server by running
./bitwarden.sh start. -
Open the Cloud Web Vault and download your license.
{% callout success %}There are separate files for an Organization license and an Individual license. You don't need both license files. If you're migrating an Organization, you only need to retrieve the Organization license and must be an Organization Owner to do so.{% endcallout %}
-
Still in the Cloud Web Vault, export your personal Vault data or export your Organization Vault data. If you're migrating an Organization, encourage your end-users to export their Personal Vaults as well.
-
Open your self-hosted Web Vault and create an account. This account must use the same email address as the Cloud account you downloaded the license with.
-
Still in your self-hosted Web Vault, upload your license.
{% callout success %}There are separate locations in which to upload an Organization license versus an Individual license. As before, only upload the one that's relevant for you.{% endcallout %}
-
Still in the self-hosted Web Vault, import data to your Personal Vault or Organization Vault.
{% callout info %}Importing data to an Organization will automatically re-create your Collections and add the relevant Vault items to them.{% endcallout %}
Organizations-only Next Steps
If you're migrating an Organization to a self-hosted server, continue with the following steps:
- (Enterprise Organizations Only) Re-implement your Enterprise Policy specifications and/or configure Login with SSO.
- Manually re-create user Groups in your self-hosted Web Vault and assign them to the proper Collections.
- Start inviting users to your Organization manually or using Directory Connector.
{% endcapture %} {{ mobile_info | markdownify}}
Migrate Self-hosted to Cloud
To migrate from a self-hosted server to the Cloud:
-
Create a full backup of the
./bwdatadirectory of your self-hosted Bitwarden server. In particular, you will need access to./bwdata/core/attachmentsto manually upload file attachments to the Cloud (Step 5).{% callout success %} If users are exporting their Personal Vaults over a period of time, you may need to re-sync the items from your
./bwdata/core/attachmentsdirectory to your backup location and upload any new items in the event that they change during the cut-over period.{% endcallout %} -
In your self-hosted Web Vault, export your personal Vault data or export your Organization Vault data. If you're migrating an Organization, encourage your end-users to export their Personal Vaults as well.
-
Open the Cloud Web Vault. Most users will have previously created Cloud accounts for billing purposes, so log in to that account. If you were previously a free user without a Cloud account for billing, create an account now.
{% callout success %}If you're migrating an Organization, you'll already have a Cloud Organization established for billing and licensing purposes. For smoothest transition, we recommend using this already-established Organization rather than creating a new one.{% endcallout %}
-
Still in the Cloud Web Vault, import data to your Personal Vault or Organization Vault.
{% callout info %}Importing data to an Organization will automatically re-create your Collections and add the relevant Vault items to them.{% endcallout %}
-
Manually upload file attachments to your Personal or Organization Vault.
Organizations-only Next Steps
If you're migrating an Organization to the Cloud, continue with the following steps:
- (Enterprise Organizations Only) Re-implement your Enterprise Policy specifications and/or configure Login with SSO.
- Manually re-create user Groups in the Cloud and assign them to the proper Collections.
- Start inviting users to your Organization manually or using Directory Connector.
{% endcapture %} {{ desktop_info | markdownify}}
Migrate from one host to another
To migrate from one self-hosted Bitwarden server to another:
- Stop your existing Bitwarden server by running
./bitwarden.sh stop. When you run this command, Bitwarden will go down for anyone currently using it. - Make a full copy of the
./bwdatadirectory of the old server. This copy will be used to recreate your configuration, database, attachments, etc. on the new server. - Install and deploy Bitwarden to your new server.
- Once the new Bitwarden server is set up, replace the newly-created
./bwdatadirectory with the copy from the old server. - Print the new Bitwarden server's UID by running
id -u bitwarden. - Open the file
./bwdata/env/uid.envand check that the listed values match what was printed in the previous step. If they do not match, replace both values with the result ofid -u bitwarden. - If you specified a different server domain during Step 2, edit the following:
- In
./bwdata/config.yml, change theurl:value to the new domain. - In
./bwdata/env/global.override.env, changeglobalSettings__baseServiceUri__vault=to the new domain.
- In
- Run
./bitwarden.sh rebuildto apply changes toconfig.ymlandglobal.override.env. - Start your Bitwarden server with
./bitwarden.sh start.
{% endcapture %} {{ browser_extension | markdownify}}