Intermediate
How to migrate data between regions on DigitalOcean
Quick Answer
Migrate data between DigitalOcean regions by creating snapshots of your droplets or volumes, then restoring them in the target region. This process involves taking a snapshot, selecting the destination region, and deploying new resources from the snapshot.
Prerequisites
- Active DigitalOcean account with billing enabled
- Source droplet or volume with data to migrate
- Basic understanding of SSH and command line
- Backup of critical data before migration
1
Create a snapshot of your source droplet
Navigate to the Droplets section in your DigitalOcean dashboard. Click on your source droplet, then select Snapshots from the left sidebar. Click Take a Snapshot, enter a descriptive name like
migration-snapshot-2026, and click Take Snapshot. Wait for the snapshot process to complete (this may take several minutes depending on disk size).Tip
Power off your droplet before taking a snapshot to ensure data consistency and avoid corruption.
2
Create volume snapshots (if applicable)
If you have attached volumes, go to Volumes in the dashboard. Select each volume you want to migrate and click More > Take Snapshot. Name each volume snapshot clearly, such as
database-volume-snapshot. Ensure all volume snapshots complete before proceeding to the next step.Tip
Detach volumes from droplets before taking snapshots to prevent any I/O operations during the process.
3
Select the target region for migration
Go to Images in your dashboard and locate your droplet snapshot. Click the More dropdown next to your snapshot and select Create Droplet. In the droplet creation form, scroll to the Choose a datacenter region section and select your desired target region (e.g., New York 3, London 1, or Singapore 1).
Tip
Choose a region closest to your users or applications for optimal performance and lower latency.
4
Configure the new droplet settings
Select your desired droplet size (can be the same or different from the original). Choose authentication method by adding your SSH keys or setting up a password. Configure any additional options like VPC, Monitoring, or Backups. Review the monthly cost estimate and click Create Droplet.
Tip
Consider upgrading your droplet size during migration if you need better performance in the new region.
5
Restore volume snapshots in the new region
Navigate to Images and find your volume snapshots. For each volume snapshot, click More > Create Volume. Select the same region as your new droplet, choose the volume size (must be equal or larger than the original), and click Create Volume. Once created, go to Volumes and attach each volume to your new droplet using the Attach to Droplet option.
Tip
Mount the restored volumes using the same mount points as the original setup to maintain application compatibility.
6
Update DNS and application configuration
Update your DNS records to point to the new droplet's IP address. If using DigitalOcean DNS, go to Networking > Domains and edit the relevant A records. Update any application configuration files that reference the old IP address or region-specific settings. Test all applications and services to ensure they're working correctly in the new region.
Tip
Consider using a low TTL (like 300 seconds) for DNS records during migration to minimize downtime during the switch.
7
Verify migration and clean up
SSH into your new droplet using
ssh root@NEW_DROPLET_IP and verify all data, applications, and services are functioning properly. Run any necessary tests to confirm the migration was successful. Once satisfied, you can safely destroy the original droplet and volumes from the source region. Delete the migration snapshots from Images to avoid ongoing storage costs.Tip
Keep the original resources running for 24-48 hours after migration to ensure everything works before cleanup.
Troubleshooting
Snapshot creation fails or takes too long
Ensure the droplet is powered off and has sufficient disk space. Large droplets may take several hours to snapshot. Check for any running processes that might be writing to disk and stop them temporarily.
New droplet won't boot after restoration
Check the droplet console in the DigitalOcean dashboard for boot errors. The issue might be kernel-related or due to region-specific differences. Try creating the droplet with a different size or kernel version.
Volume attachments fail in new region
Ensure the volume and droplet are in the exact same datacenter region. Volumes cannot be attached across regions. Verify the volume is not already attached to another droplet and try detaching/reattaching.
Application performance issues after migration
Check network latency to external services and databases. Update connection strings and regional endpoints. Consider using DigitalOcean's VPC feature for better internal networking performance.
Ready to get started with DigitalOcean?
Put this tutorial into practice. Visit DigitalOcean and follow the steps above.
Visit DigitalOcean →