

EROS Cuts Migration Risk and Achieves Zero Data Loss with Codilar's DevOps

Electronics
Company Brief
Eros Group is a UAE-based consumer electronics retailer and distributor founded in 1967, with operations spanning the UAE and select markets across the GCC and North Africa.
With over five decades in the industry, Eros has built a strong multi-brand portfolio, distributing and retailing products across consumer electronics, home appliances, IT, and mobility categories through a network of retail stores, service centers, and its online platform, serving customers through both physical and digital channels across the region.


Cross-region Infrastructure Migration
Ensuring Data Integrity
Resolving Critical Blockers
Optimizing Database Import
Reconfiguring Magento Application
Validating Go-live Readiness
Project Overview
Eros Group partnered with Codilar to execute a critical DevOps-led cloud infrastructure migration, moving three live Adobe Commerce (Magento) production databases from AWS Bahrain (GCC) to AWS Ireland (Europe)
Eros Group partnered with Codilar to execute a critical DevOps-led cloud infrastructure migration, moving three live Adobe Commerce (Magento) production databases from AWS Bahrain (GCC) to AWS Ireland (Europe).
Business Challenges
RDS cross-region snapshot migration was blocked, forcing an alternate approach
36.49 GB production database size risked failures during import
Long-running metadata lock on legacy table threatened data integrity during cutover
SSH session timeouts risked interrupting the large-scale database import mid-execution
Three interdependent production databases needed migration without affecting each other
Zero tolerance for data loss or downtime under a tight migration timeline
Codilar's Solution Approach
Identified the existing S3 backup infrastructure as an alternative migration path
Bypassed the blocked RDS snapshot route entirely using SQL dump files
Provisioned a fresh RDS MySQL instance in eu-west-1 with correct VPC and subnet configurations
Applied appropriate security group rules to match production network requirements
Created all three target schemas on the new instance prior to import
Downloaded and decompressed SQL dumps from S3 for each database
Applied fine-tuned MySQL client parameters with 1G packet size and extended timeouts
Used nohup for session-independent execution to eliminate SSH timeout risks
Ran post-import validation queries to confirm all schemas were intact
Verified production_EROS database was fully restored at 36.49 GB
Updated Magento env.php to redirect default and j2storage connections to the new endpoint
Executed Magento setup:upgrade, DI compile, static deploy, and cache flush
Verified full storefront and admin panel functionality at eros.ae and adm.eros.ae
Your One-stop
Total Commerce
Partner
We engineer high-converting eCommerce webstores that scale faster.
Book a 30min Consultation CallEvery blocker we hit just gave us a clearer picture of what needed to be done. For EROS, the migration timeline was critical. The store had to stay live, the data had to be intact, and we made sure it stayed that way.

Jameel Ahmad Ansari
Head of Engineering, Codilar
A Zero Downtime Cross-Region Database Migration Success Playbook
The Challenge: When the Default Path Fails
When EROS, one of the UAE's most established consumer electronics retailers, needed to shift its entire Adobe Commerce (Magento) eCommerce infrastructure from AWS Bahrain to AWS Ireland, the clock was ticking. The migration had to be clean, fast, and flawless, with a live storefront and thousands of products on the line.
The plan was straightforward: use AWS's native RDS snapshot copy feature to replicate the production database across regions. But within the first hour, it became clear that it wasn't going to work. The snapshot migration path on the source instance was completely blocked, leaving no time to wait for a fix. Compounding the pressure was the sheer size of the task. The primary production database, production_EROS, weighed in at 36.49 GB. A long-running Magento cron job had been holding a metadata lock on a critical table for over five hours, and any misstep during cutover risked deadlocks, data corruption, or worse—a downed storefront.
The Pivot: S3 as the Migration Backbone
Rather than stalling, the team immediately pivoted. A quick audit revealed that the client already had up-to-date SQL dump files stored in their S3 bucket, a ready-made alternative that bypassed the broken RDS tooling entirely.
The approach was methodical. A new RDS MySQL instance was provisioned in eu-west-1 with the correct VPC, subnet groups, and security group configurations mirroring the production environment. All three target schemas—production_EROS, production_Storage, and prod_web—were created on the new instance before a single byte of data was moved.
The Execution: Precision at Scale
Importing 36.49 GB of production data is not a trivial operation. The team fine-tuned MySQL client parameters, setting packet size to 1G, extending connection timeouts, and running each import via nohup to ensure the process would survive any SSH session interruptions. Each database was downloaded, decompressed, and imported sequentially with full monitoring at every step.
The Cutover: Reconfiguring Magento for Ireland
With all three databases validated on the new instance, attention turned to the application layer. The Magento env.php was updated to redirect both the default and j2storage database connections to the new eu-west-1 RDS endpoint. This was followed by a full Magento deployment cycle, including setup:upgrade, DI compile, static content deploy, and cache flush, ensuring the application was fully aligned with its new infrastructure.
The Result: Live, Verified, and Intact
Post-cutover validation confirmed everything the team had worked toward. The live storefront at eros.ae and the admin panel at adm.eros.ae were both fully operational. All 36.49 GB of production_EROS data was intact. All three databases were present, verified, and serving the application without issue.
A migration that began with a critical blocker ended with zero data loss, zero downtime surprises, and a client whose store never missed a beat.

Key Metrics That
Moved the Needle
Production Database
Migrated Without Data Loss
Production Databases
Successfully Migrated
Data Loss Across
All Databases
Application Connections
Reconfigured on env.php
Storefront & Admin Panel
Functionality Verified

Key Metrics That
Moved the Needle
Production Database
Migrated Without Data Loss
Production Databases
Successfully Migrated
Data Loss Across
All Databases
Application Connections
Reconfigured on env.php
Storefront & Admin Panel
Functionality Verified

“We are deeply grateful to the Codilar team for the outstanding support during our AWS server migration from Bahrain to Ireland. Their expertise made a complex process feel effortless, and their assistance was truly invaluable.”
Vishnupriyan Durairaj
Asst. Manager - Ecommerce and Web Applications
Eros Group
The Accountable Partnership
Migrations of this complexity rarely go exactly as planned, and that's precisely where Codilar's expertise makes the difference. With deep hands-on experience across Adobe Commerce (Magento) infrastructure, AWS cloud environments, and high-stakes production deployments, Codilar brings the technical depth and problem-solving agility to handle the unexpected without breaking stride.
For EROS, what could have been a prolonged outage and a data disaster became a clean, validated, on-time migration. If your eCommerce platform is due for a cloud migration, infrastructure overhaul, or performance optimization and you need a partner who can deliver under pressure, let's talk.



