How do I deploy a backup?

Deploy WordPress backup; Now that you’ve made your WordPress backup, you need to know how to deploy it. This procedure is relatively simple and is almost the backup process in reverse.

There are many reasons to deploy a backup of your site, the main being: user error (accidental deletion) or an issue with a plugin or theme. 

Deploying the Backup

This guide assumes you intend to deploy the backup into a fresh cPanel or Plesk control panel (If you’re backing up because of Malware, this is critical).  

To deploy the backup, you must first transfer in your existing WordPress files. You can do this using your FTP client.

  • Connect to your server via your FTP client.
  • Navigate to or create the WordPress directory. For instance [public_html]
  • Using your previously made backup directory. Drag over all the website content.
  • If you get a “target file already exists” pop-up, then select overwrite, always use this action and apply to current queue only, then click OK.

Now you have transferred in your files, you will need to tie them together with their database counterpart. This is a slightly different procedure for each control panel, whether that be cPanel or Plesk.

Deploy backup to cPanel

  • Re-create the database using the name in the “wp-config.php” file. 
  • This database will require a user that has the same username and password as within the “wp-config.php” file.
  • Under databases, click “phpMyAdmin” 
  • Select the database on the left, click “Import”.
  • Choose the SQL file from your backup folder.
  • Click “Go”.

Deploy backup to Plesk

  • After the upload has completed, login to your Plesk control panel.
  • Whilst viewing your domain, click databases in the right sidebar.
  • From here, click add database and enter the database name. Create a database user with a username and password. Click OK.
  • For the database you have just created, enter phpMyAdmin.
  • Inside phpMyAdmin select the database on the left-hand side. Click Import.
  • Browse to the backup of your database and select it.
  • Leave all the other settings as they are and click go. Your site’s database will upload.
  • Once this is complete, you need to set up your wp-config file.
  • Open the wp-config file in an editor, and change the DB_NAME, DB_USER and DB_PASSWORD to the details you made a note of earlier.
  • DB_HOST should be set to localhost, change it if this is not the case. Save the file.
  • Drag the wp-config file into your ftp client to overwrite the original.
  • You have, successfully, deployed your backup to Plesk. You can now view your WordPress site in your browser.