Inter-Region Cloud Instance Migration
1. Objective
The objective of this setup is to implement cross-region data replication between two cloud instances using Rsync.
This includes:
Deploying an Ubuntu Cloud Instance in the Indore region (Primary Site)
Deploying an Ubuntu Cloud Instance in the Mumbai region (Target Site)
Installing and configuring Rsync on both instances
Transferring application data from Indore to Mumbai
Verifying successful data synchronization
Ensuring reliable and consistent data availability across regions
2. Architecture Overview
This architecture consists of two cloud instances located in different regions:
Primary Instance (Indore): Source of data where application data is generated
Target Instance (Mumbai): Destination where data is replicated
Data transfer is performed using Rsync over SSH, ensuring secure and efficient synchronization. Automation can be implemented using cron jobs for periodic updates.
3. Prerequisites
Before starting the data replication setup, ensure the following requirements are met:
3.1 Infrastructure Requirements
One Ubuntu Cloud Instance in the Indore region (Primary)
One Ubuntu Cloud Instance in the Mumbai region (Target)
Public IP assigned to both instances
Network connectivity between both instances
3.2 Security Configuration
Secure communication is established using SSH
SSH access is enabled on both instances
Authentication is configured using SSH key-based authentication
Security Note:
Data transfer between the two instances is secured using end-to-end encryption via SSH, ensuring confidentiality and integrity of data.
4. Phase 1 : Connect to Primary VM & Install rsync
Step 1 : Connect to Primary VM(ssh)
Run from Local Laptop / PowerShell / Terminal(cmd)
Step 2 : Update System
Run inside Primary VM(indore region)
Step 3 : Install rsync
Run inside Primary VM
Expected output:

5. Phase 2 : Create Test Data on Primary VM
Step 4 : Create Test Directory and Files
Run inside Primary VM

Step 5 : Verify Data Creation
Run inside Primary VM
Expected Output:
7. Phase 3: Prepare SSH Access to Destination Instance (Mumbai region)
Step 6 : Exit Primary VM
Run inside Primary VM
Step 7: Copy DR SSH Key to Primary VM
Run from Local Laptop

Step 8: Login Back to Primary VM
Step 9: Set Proper Permission
8. Phase 4 : Transfer Data from Primary to Destination Instance
Step 10: Execute rsync
Run inside Primary VM
Expected Output:

9. Phase 5 : Verify Data on DR VM
Step 11: Login to Destination Instance( Mumbai region)
Run from Local Laptop
Step 12: Verify Transferred Data
Run on Destination Instance
Expected Output:

Last updated