Migrate to a New Server
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:
To migrate from the cloud to a self-hosted server:
- Install and deployBitwarden to your server. At a high-level, this procedure involves:
- Configuring a domainfor Bitwarden.
Installing
Docker and Docker Compose.Running the
installation shell script.- Configuring your environmentto 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.tip
There are separate files for an
organization licenseand anindividual license. You don't need both license files. If you are migrating an organization, you only need to retrieve the organization license and must be anorganization ownerto do so.Still in the cloud web vault,
export your individual vault data,export your organization vault data, orsecrets data. If you are migrating an organization, encourage your end-users to export their individual 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.tip
There are separate locations in which to upload an
organization licenseor anindividual license. As before, only upload the one that's relevant for you.Still in the self-hosted web vault, import your
individual vault data,organization vault data, orsecrets data.note
Importing data to an organization will automatically re-create your
collectionsand add the relevant vault items to them.
Organizations-only next steps
If you are migrating an organization to a self-hosted server, continue with the following steps:
(Enterprise organizations only) Re-implement your
enterprise policyspecifications and/or configurelogin with SSO.Manually
re-create user groupsin your self-hosted web vault and assign them to the proper collections.Start
inviting users to your organizationmanually or usingdirectory connector.