How to Restore WordPress Backups on CloudPanel Easily Step by StepThere’s no exact guide on how to restore WordPress backups on CloudPanel. So, I made this step by step guide for you so it could help you restore your own WordPress websites hosted on CloudPanel.

As a rule of thumb in the IT world, always backup your files. CloudPanel is free and open-source.

Prerequisite

  1. A fully functional CloudPanel. You have already installed CloudPanel on you server.
  2. Access to CloudPanel dashboard. You need valid credentials to log in to the CloudPanel dashboard.
  3. Backup availability. Before restoring, you must have a backup of the data you want to restore. CloudPanel should have previously created and stored these backups.

How to Restore WordPress Backups on CloudPanel

In this tutorial, I have backed up my site on Dropbox. I installed CloudPanel on RackNerd VPS.

Step 1: Access CloudPanel Dashboard

Log in to the CloudPanel dashboard using your credentials created during installation process.

Access CloudPanel

Step 2: Add Site

Go to Sites > Add Site and choose WordPress.

CloudPanel Add Site

Fill in the necessary details and click Create. Be sure your domain name should be the one to be restored.

Fill New WordPress Details CloudPanel

Store the credentials on a safe place. We will need the database password later on.

Newly Created WP Credentials CloudPanel

Step 3. Add DNS Records and Issue SSL

You can skip this step if you are using the same server, assuming your DNS records are intact. If you are on a new server, add two A Records for your site, one with www and the other without.


I am using Namecheap as my DNS provider. Go to Namecheap and add your DNS records.

DNS Records for Restoring WP Site CloudPanel

After adding your DNS records, go back to CloudPanel and we’ll issue a Let’s Encrypt Certificate.

Issue New Let's Encrypt Certificate CloudPanel

Just click Create and Install.

Create and Install New Let's Encrypt Certificate

Step 4: Download Your Backup

Since I have stored all backups on Dropbox, I will download the backup file. It is in .tar format.

Typically, backups are listed with timestamps or identifiable names. You should see a list of available backups under CloudPanel folder. Choose the backup you want to restore.

Download CloudPanel Backup on Dropbox

Step 5: Upload File on CloudPanel

Go back to CloudPanel and click Sites > choose the site you want to restore.

CloudPanel Sites

Choose File Manager.


CloudPanel File Manager

On the left side bar, click on tmp. Then click Add New > Upload File. Choose the file you download on Dropbox.

CloudPanel Upload File

 

Step 6: Initiate Restore Process

Now we have the file uploaded in tmp folder, it’s time to extract all contents. Hover to the backup file and right click and choose Extract. It will create a folder called backup.

Extract File CloudPanel

Once extracted, open the folder backup > home > webshanks > htdocs > webshanks.store and cut all contents. Do not copy because it will create a double file with -copy name.

Cut Files CloudPanel

Next, let’s paste it on our main htdocs folder where our newly created WordPress site is located.

On the left side bar, click htdocs > webshanks.store (this is your newly created domain). Under that folder, remove all contents before pasting out backup contents. Just ctrl + A, right click and select Delete.

Delete New WP Content

Then mouse right click and paste the contents.

We will now proceed to restoring the database. Go to Database tab scroll down and click Manage. You will be redirected to PHPMyAdmin.

CloudPanel Database

Once you are in PHPMyAdmin, select the site and drop all tables. We will upload the database file later on.

Drop All Tables CloudPanel

You will be asked “Do you really want to execute the following query?”, just choose Yes.

Next, go back to the backup file you have downloaded. Find the folder called backups and look for the SQL file. The should be like webshanks_1701072901.sql. Extract it.

Go back to PHPMyAdmin and import the SQL File.

Import SQL File

Scroll down and you will see an Import button and click it.

Imported SQL File CloudPanel

Now you have successfully uploaded the SQL file.

Go back to File Manager. Choose htdocs > webshanks and edit wp-config.php.

Find Database password and replace it with the new credentials database password you saved earlier.

Change DB Password CloudPanel

Step 7: Test Restoration

After the restoration process is complete, verify that your data has been successfully restored to its previous state.

Acces Newly Restored Site CloudPanel

Success! We have restored a WordPress site on CloudPanel using backup created.

Check key functionalities to ensure everything is working as expected.

You Can Also Watch This Tutorial on YouTube

Conclusion

Restoring backups from Dropbox to CloudPanel is a critical process for ensuring data integrity and business continuity.

By following the above steps I laid, you should be able to successfully restore your data. Regularly backing up your data and familiarizing yourself with the restoration process is crucial for effective disaster recovery and maintaining the stability of your web hosting environment.

Always refer to the specific documentation or support resources provided by CloudPanel for the most accurate and up-to-date information.

If you have any questions, drop them down below.

Leave a Reply

Your email address will not be published. Required fields are marked *