Transfer Block Storage data between data centers

Block Storage volumes cannot be directly migrated to a different data center. These steps will outline how to transfer a volume's data to a different data center via the SCP tool.

šŸ“˜

Consult our Network Transfer Usage and Costs guide for information on charges related to outbound traffic when transferring data over the public internet.

  1. Attach and mount your existing volume to a Compute Instance, if you have not already.

  2. Create, attach, and mount a volume to a Compute Instance within the new data center you wish to use.

  3. Log in to your new receiving Compute Instance using SSH or Lish.

  4. Use the Secure Copy Protocol (SCP) to download your volume's data to the receiving Compute Instance.

    scp [source-user]@[source-ip]:[source-path] [destination-path]
    

    Replace the above values with your own. In the example below, the user is root, the IP of the original Compute Instance is 192.0.2.1, the path to the volume's data on the source machine is /mnt/source-volume/, and the path to the new volume on the new Compute Instance in the other data center is /mnt/destination-volume/.

    scp root@192.0.2.1:/mnt/source-volume/ /mnt/destination-volume/
    

    šŸ“˜

    You will need a volume or device that has enough storage capacity to receive the entirety of your source data.

  5. Once the transfer is complete and you have confirmed the original data is now located on the new volume in your desired data center, the original volume can be deleted to avoid further charges for that volume.