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.
-
Attach and mount your existing volume to a Compute Instance, if you have not already.
-
Create, attach, and mount a volume to a Compute Instance within the new data center you wish to use.
-
Log in to your new receiving Compute Instance using SSH or Lish.
-
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 is192.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.
-
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.
Updated 4 months ago