Worried that moving your website to a new VPS will cause downtime or data loss? Follow this VPS migration checklist. It tells you exactly what to verify, how to test, and what to do if something goes wrong, so you can keep your site online and your cash flow steady.
Why a Checklist Matters Before You Migrate
Even a small mistake—like forgetting to copy a database or pointing DNS too early—can make customers see a broken site, which hurts sales and reputation. A checklist turns a risky, ad‑hoc process into a repeatable set of actions that anyone on your team can follow.
Prerequisites: What You Need Before Starting
- Access to both servers. You must have root (or sudo) rights on the current VPS and the target VPS.
- Current backups. A full file system backup and a separate database dump stored on a different device or cloud bucket.
- Domain control panel. Ability to edit DNS records (A, CNAME, MX) for the domain you are moving.
- Testing environment. Either a temporary sub‑domain (e.g., test.example.com) or a hosts‑file entry on your computer to resolve the domain to the new server’s IP.
- Budget awareness. Know the cost of the new VPS, any data‑transfer fees, and the time you’ll spend on the migration.
Step‑by‑Step VPS Migration Checklist
- Document the current environment. List OS version, web server (Apache/Nginx), PHP version, database type, and any custom services (e.g., Redis, cron jobs). This helps you match the target VPS configuration.
- Take a fresh backup. Run tar -czf /tmp/site-backup.tar.gz /var/www/html and mysqldump -u root -p db_name > /tmp/db.sql. Verify the archive size and checksum (e.g., sha256sum).
- Provision the new VPS. Choose a plan that meets CPU, RAM, and storage needs for your traffic. If you need managed support, note that as an extra cost.
- Install the same OS version (or a compatible newer version).
- Set up the web server, PHP, and database software matching the documented versions.
- Transfer files and database. Use scp or rsync to copy the backup archive, then extract it on the new server. Import the database with mysql -u root -p db_name < /tmp/db.sql. Adjust file permissions as required.
- Configure the application. Update configuration files for new paths, database credentials, and any environment variables. Test that the site runs locally on the new server using the testing host entry.
- Run a functional test suite. Check homepage load, product pages, forms, and any API calls. Verify SSL certificates are installed (you can reuse the same cert if you control the private key).
- Prepare DNS TTL reduction. Lower the TTL of your A record to 300 seconds (5 minutes) at least 24 hours before the cut‑over. This ensures the change propagates quickly.
- Schedule the cut‑over. Choose a low‑traffic window (often early morning in your target market). When ready, change the A record to point to the new VPS IP.
- Monitor the transition. Keep both servers running for at least 30 minutes. Watch error logs, uptime monitors, and sales dashboards for any spikes.
- If errors appear, you can revert by restoring the original A record (TTL is low, so it propagates fast).
- Decommission the old VPS. After 48 hours of stable operation, back up the old server one last time, then shut it down. Keep the backup for at least a month in case you need to retrieve a missed file.
Realistic Example: Moving a Small Online Store from a $10/month VPS to a $25/month Managed VPS
Ali runs a boutique clothing store hosted on a basic unmanaged VPS in Pakistan. He wants better support and a backup service, so he upgrades to a managed VPS offered by Nextpath Solutions.
- Current setup: Ubuntu 20.04, Nginx 1.18, PHP 7.4, MySQL 5.7, 1 GB RAM, 20 GB SSD.
- Target setup: Same OS, Nginx 1.22, PHP 8.1, MariaDB 10.5, 2 GB RAM, 40 GB SSD, managed backups.
- Steps taken:
- Backed up /var/www/html and the shop_db database.
- Created the new VPS, installed the required packages, and imported the backups.
- Added a temporary sub‑domain test.aliclothing.com that pointed to the new IP via the hosts file.
- Tested checkout flow, payment gateway callbacks, and email notifications—all worked.
- Reduced TTL to 300 s, then changed the main A record at 02:00 AM.
- Monitored for 1 hour, saw zero 5xx errors, and confirmed orders were recorded in the new database.
- Kept the old VPS for 3 days, then cancelled it.
- Result: No downtime reported by customers, a smoother checkout experience, and peace of mind thanks to daily managed backups.
Common Mistakes and How to Fix Them
- Skipping the TTL reduction. DNS changes can take hours, causing half of your visitors to see the old site. Fix: Always lower TTL at least a day before migration.
- Relying on a single backup. If the backup is corrupted, you lose data. Fix: Store backups in two locations (e.g., local archive + cloud storage).
- Copying files without preserving permissions. Web server may refuse to serve files. Fix: Use rsync -a or tar to keep ownership and mode bits.
- Changing DNS before testing. You can’t easily roll back if the new server fails. Fix: Test with a hosts‑file entry or a sub‑domain first.
- Forgetting to update environment variables. Database connections or API keys may still point to the old server. Fix: Review all .env or config files after the copy.
Quick Migration Checklist (Copy‑Paste)
- ☐ Document current OS, web server, PHP, DB versions
- ☐ Create fresh full‑site backup (files + DB) and verify checksum
- ☐ Provision new VPS with matching software
- ☐ Transfer backups via scp/rsync
- ☐ Extract files, import DB, set permissions
- ☐ Update config files (paths, credentials, env vars)
- ☐ Test site using hosts‑file or temporary sub‑domain
- ☐ Reduce DNS TTL to 300 s (24 h before cut‑over)
- ☐ Schedule cut‑over during low traffic
- ☐ Change A record to new IP
- ☐ Monitor logs, uptime, and transactions for 30 min+
- ☐ Keep old VPS alive for 48 h, then decommission
When to Call a Professional
If any of the following apply, consider hiring a server specialist or using a managed migration service:
- Complex multi‑server architecture (e.g., separate app and database servers).
- Custom firewall rules or VPN tunnels that need recreation.
- Limited technical staff or tight launch windows where downtime cannot be tolerated.
- Compliance requirements that mandate verified backup retention.
A professional can script the migration, perform a pre‑flight check, and provide a rollback plan, reducing risk and saving you time.
Conclusion
Moving a website to a new VPS doesn’t have to be a gamble. By following the VPS migration checklist—backing up, testing, lowering TTL, and monitoring—you protect your customers, cash flow, and reputation. Use the checklist above, adapt it to your own stack, and only bring in expert help when the migration scope exceeds your comfort zone.
Review VPS plans and discuss your workload. Tell us about your current hosting, management needs, and any bottlenecks you’ve observed, and we’ll help you pick the right solution.