Moving Looker to a new host

This document details the steps required to move a customer-hosted Looker instance to a new host.

Step 1: Prepare the new system

Complete just the first part of the Looker installation steps on the new host. In other words:

  • Verify that the new server complies with the minimum server specifications
  • Enable ntpd or chronyd
  • Create the looker user and group
  • Create the looker home directory
  • Skip downloading the Looker application and all remaining installation steps

Step 2: Stop Looker on the old host

cd ~/looker
./looker stop

Step 3: Copy the Looker directory from the old to new host

From the new host, as the looker user:

rsync -av OLDHOSTNAME:/home/looker/ /home/looker

Step 4: Start Looker on the new host

cd looker
./looker start

Migrate across AWS regions using AWS KMS

AWS KMS single-region keys don't work across AWS regions. If you migrate your Looker deployment and internal database to another AWS region, then Looker fails to start on the destination Amazon EC2 instance.

You can't run the ./looker rekey command on the destination host because the rekey process must decrypt your data with the original key first. Instead, rekey the original environment with an AWS KMS multi-region key before you export the internal database.

To migrate your Looker deployment and internal database to another AWS region, complete the following steps:

  1. Verify that the original Amazon EC2 instance in the source AWS region is still available.
  2. Create an AWS KMS multi-region primary key in the source AWS region. For more information about creating and replicating multi-region keys, see the AWS KMS documentation in the AWS Key Management Service Developer Guide.
  3. On the original environment in the source AWS region, run the ./looker rekey process to re-encrypt the internal database using the multi-region key. For detailed instructions, see Changing Looker encryption keys.
  4. Replicate the multi-region key to the destination AWS region in AWS KMS.
  5. Export a database dump of the re-encrypted internal database from the source environment.
  6. Import the database dump into the destination environment, configure the destination host to use the replicated key and destination AWS_REGION, and then start Looker. For details about setting AWS KMS environment variables and IAM permissions, see If you are using AWS KMS.