Skip to content
VDS · FAQ

Moving to our machine from another host

How to migrate a website, database, and mail to Millida VDS without downtime: the sequence of steps, migration commands, and common mistakes when changing the address.

Updated August 23, 2026

A migration is moving data plus switching the domain. Mistakes almost always happen in the second part: data copies easily, but DNS records get switched too early and you end up with downtime.

Preparation

Where to start?

Order a machine at /hosting/vds/new of a suitable tier and with the OS you're used to. Provisioning takes about a minute. Don't touch the old platform for now — it must keep running until the migration is complete.

Which tier should you choose?

The one that matches your current usage, not “for future growth”: you can always upgrade a tier with a prorated payment for the remaining term, but you can't downgrade — the disk doesn't shrink. See Plan tiers and what they include.

What must you migrate?

Website files, the database, cron jobs, web server configuration, certificates (or reissue them), email accounts if email was on the old machine.

Migration

How do you copy files?

Directly from the old machine to the new one:

rsync -avz --progress /var/www/ root@<new address>:/var/www/

If there's no direct access between the machines, copy through your computer in two steps using the same rsync or scp.

How do you migrate the database?

By dumping it with its own tool, not by copying files on a running service:

mysqldump -u root -p --single-transaction mydb > mydb.sql
pg_dump -U postgres -Fc mydb > mydb.dump

On the new machine, load it back:

mysql -u root -p mydb < mydb.sql
pg_restore -U postgres -d mydb mydb.dump

How do you check the site before switching the domain?

Add a line with the new address and your domain to your /etc/hosts (or the hosts file on Windows). Your browser will go to the new machine, while the rest of the world goes to the old one. That way you can see the real site before the migration.

What about certificates?

It's easier to reissue them on the new machine after switching the domain than to migrate them. While the domain points to the old address, ownership validation won't pass.

Switching and after

When should you change the A record?

Only after you've checked the site on the new machine via hosts. In advance, reduce the record's time to live (TTL) at your registrar to 300 seconds — a day before the migration. Then the switch will propagate across the network in minutes, not hours.

Why do some visitors still go to the old machine?

DNS cache is at work. Keep the old platform alive for at least a day after the switch, otherwise some people will see an error. And make sure both machines don't write data at the same time: during the migration, it's better to put the old one in read-only mode.

What should you do about email?

If the mail server is moving to the machine, set the reverse DNS record (PTR) in the “Access” tab — without it, emails are often rejected. Don't forget about the MX, SPF, and DKIM records at your registrar.

What can't you migrate?

The address itself: it's tied to the machine, and there's no transferring addresses between machines and nodes. You also can't migrate a machine from another hosting provider entirely as an image — only systems from our list can be installed, and you copy the data yourself.

When should you shut down the old platform?

When you've made sure that all DNS records point to the new machine, email is flowing, and the old machine's logs show no live traffic for a week. Before that, take a final copy of the data from it: Machine deletion and buyout period.