BlogHow-toMigration

How to move a WordPress site to a new server or domain with Restora Pro

Prepare the move on the old site (a full backup plus a one-file installer), upload both to the new server, open the installer, give it the new address and database, and let it rewrite every link and delete itself.

3 min readPerforks

A site moving from an old domain to a new one

Moving a site with Restora Pro is two files and one page: a full backup, an installer, and the installer's own screen on the new server. No WordPress has to be installed first, and the old address is rewritten to the new one everywhere in the database. Here is the whole procedure.

On the old site: prepare the move

  1. On the Restora screen, under What do you want to do?, choose Move to another server (“A full backup plus the installer, to set the site up somewhere else.”) and press Prepare the move. A full backup is made.
  2. When it is done, the Ready to move panel appears. Choose an Installer password of at least 12 characters: “The installer asks for it before it does anything, so nobody who finds it on the new server can use it. It works for 7 days.”
  3. Press Download backup and Download installer. The installer is a single PHP file named restora-installer-<random>.php; it is generated for the download and not kept on the site.

Do this just before the move: the installer expires after 7 days, and the backup should be as fresh as possible. Do not rename the installer; it “only runs under the name it was downloaded with”.

On the new server

  1. Create an empty database (host, name, user, password) in the hosting panel, and point the new domain at the server.
  2. Upload both files to the empty folder the site will live in.
  3. Open https://new-address/restora-installer-….php in a browser and enter the installer password. After too many wrong passwords it locks (“Too many wrong passwords. Try again in 15 minutes.”), and if the wrong passwords go on, “the installer has deleted itself. Download a new one from the old site.”
  4. The installer checks the server: PHP 7.4 or newer, 64-bit; the zip and mysqli extensions; a writable folder; and that a full Restora backup is in the folder.
  5. Fill in the New address (“Every link to the old address inside the site is rewritten to this one.”), the Database on this server and the table prefix. For an encrypted backup, its password or private key. If the folder or database is not empty, the installer says so and asks you to tick before it installs over them.
  6. Press Install the site and keep the page open. The backup is checked from start to finish before anything is written, then the database is loaded, the old address rewritten to the new one, the files written and the database put in place.
  7. “The site is installed and the installer has removed itself.” Open the site and log in with the users from the backup.

What the installer takes care of

  • It rewrites siteurl, home and every other occurrence of the old address in the database, and points wp-config.php at the new database. If the backup's wp-config.php sets the database in an unusual way, the new settings are added at its top and the installer tells you to have a look.
  • Files that set up the old server and could stop this one (host-specific configuration) are left out, and the installer names them so you can create the new server's own.
  • It warns about an index.html in the folder that some servers show instead of the site, and reminds you to remove the backup zip once you are happy.

On the new site Restora starts with clean settings: no schedules, remote storage or recovery page are carried over, and the Pro licence is tied to the old address. Add the new address to your licence and activate the key there (see which sites a licence works on), then set the schedule, remote storage and recovery page up again.

Moving a multisite network

Under Network Admin › Restora, Move to another server always takes every site, one backup file per site, plus the installer. Upload all of them and open the installer: it checks every file, installs the main site first and then the others, and moves every address. Sites in folders follow the network to its new folder; sites on subdomains become subdomains of the new domain; a site with a domain of its own keeps it, and the installer says so. The rules are in multisite backups.

Without Pro

The free plugin can bring a site back on a new, empty WordPress: install WordPress and Restora there, upload the backup from your computer with Upload a backup, and restore it; the restore moves it to the new site's address. The steps are in restoring a backup.