Magento migration: how to move your store
Last updated: 31 December 2025
Magento migration is a complex process. Whether you're moving to a new server or upgrading to Magento 2, good planning is essential. This guide helps you through the process.
Types of migrations
Server migration
Moving to another hosting provider with the same Magento version.
When:
- Better performance needed
- Lower costs desired
- Provider issues
Version upgrade
From Magento 1 to Magento 2, or minor version updates.
When:
- End-of-life of current version
- New features needed
- Security patches require upgrade
Platform migration
From Magento to another platform (Shopify, WooCommerce).
When:
- Magento too complex
- Costs too high
- Different requirements
Server migration: step by step
Preparation
-
Make complete backup
- Database dump
- All files (pub/media, var, app/etc)
- .htaccess and configuration files
-
Document current setup
- PHP version
- MySQL version
- Installed extensions
- Custom modifications
-
Test new server
- Check requirements
- Test PHP and MySQL versions
Execute migration
# 1. Enable maintenance mode
bin/magento maintenance:enable
# 2. Export database
mysqldump -u user -p database > backup.sql
# 3. Compress files
tar -czvf magento_files.tar.gz /var/www/magento
# 4. Transfer to new server
rsync -avz magento_files.tar.gz user@newserver:/var/www/
# 5. Import database on new server
mysql -u user -p database < backup.sql
# 6. Adjust config for new server
# Edit app/etc/env.php
# 7. Clear cache
bin/magento cache:flush
# 8. Change DNS
# Update A-records to new server IP
After migration
- Test all functionality
- Check orders and customer data
- Test checkout process
- Monitor performance
- Keep old server 2 weeks as backup
Magento 1 to 2 migration
This is the most complex migration.
What gets migrated
| Data type | Migrated | Note |
|---|---|---|
| Products | Yes | Via Data Migration Tool |
| Categories | Yes | Structure preserved |
| Customers | Yes | Passwords need reset |
| Orders | Yes | Historical data |
| CMS pages | Partially | Manual adjustment needed |
| Extensions | No | New versions needed |
| Theme | No | Completely new |
Data Migration Tool
Adobe offers an official migration tool.
Installation:
composer require magento/data-migration-tool
Configuration in:
vendor/magento/data-migration-tool/etc/<edition>/
Migration step plan
- Inventory extensions - Which are essential?
- Find Magento 2 alternatives - For all extensions
- Plan custom development - For unique functionality
- Set up staging environment - With Magento 2
- Test data migration - Multiple times
- Migrate theme - Rebuild or buy new
- Extensive testing - All functionality
- Plan go-live - During low traffic period
Time indication
| Store size | Complexity | Duration |
|---|---|---|
| Small (<1000 products) | Standard | 4-8 weeks |
| Medium (1000-10000) | Average | 8-16 weeks |
| Enterprise (>10000) | Complex | 16-32+ weeks |
Common problems
URL structure changes:
- Set up 301 redirects for all old URLs
- Update sitemap
- Inform Google via Search Console
Passwords don't work:
- Magento 2 uses different hashing
- Customers must reset password
Performance issues:
- Reconfigure cache settings
- Run indexers
- Optimize database
Tips for successful migration
- Plan well ahead - Minimum 2-3 months
- Test extensively - On staging environment
- Communicate with customers - Expected downtime
- Keep backup ready - To be able to revert
- Monitor after migration - First weeks intensively
Was this article helpful?
Compare hosting packages directly to find the best choice for your situation.
Related articles
What is web hosting? Explanation for beginners
Discover what web hosting is and how it works. Complete explanation about servers, domains and different hosting types for beginners.
What is VPS Hosting?
VPS hosting explained: what is a Virtual Private Server, who is it suitable for and what are the advantages compared to shared hosting?
What is an SSL Certificate?
Everything about SSL certificates: what is SSL, why do you need it and how do you recognize a secure website? Essential for every website.
What is Uptime in Web Hosting?
What does uptime mean in web hosting? Learn about uptime percentages, SLA guarantees and why 99.9% uptime is important for your website.
How much storage do I need for my website?
Discover how much disk space you really need for your website. Practical guide with examples per website type.