0

I deleted my wordpress public_html folder and the database that goes with it. There is a backup on the computer I am using and I figured I would learn how to restore the site by using this backup. Yes, it was quite foolish of me to do something like that, but I figured it would be simple the other way around, and from the tutorials I've been watching, it's straightforward. However, the back up that I have from the previous web guy is confusing.

He did a full Cpanel backup. So I figured I would have everything. But in restoring the CPanel backup, it doesn't restore the website, however in this backup is an SQL backup too.

But I deleted the site to the point where WP isn't even installed on my CPanel anymore. When I deleted the folders, it deleted the site, including wordpress. IS the backup enough to ultimately restore everything?

My issue is restoring. I know how to get the files back on the server, which I did a clean wordpress manual install, but it doesn't show when I go to the website... richtechdisplay.com - it goes back to our first domain that we used to have.

1 Answer 1

0

There are two main parts to WordPress: the code, and the database. (There is also the plugin and theme parts, but I am grouping them with the 'code', although themes and plugins store some of their information in the database.)

You can recover the code by doing a fresh install of WP, although that won't restore your themes/plugins, unless you have a copy of that. But a fresh install of WP may not point properly to the URL that your site uses.

That URL is contained in two locations of the wp-options table in your database. So you need to adjust those rows to contain the full URL of your site.

In addition, the code (file) of WP contain pointers to the database. Look at the wp-config.php file, which contains the database name and credentials. That has to match for the code to be able to 'talk' to the database, which contains all of the content.

All of that said, it is possible that your hosting place is backing up databases and files. So you might ask them if they can restore the files to your sites 'public-html' folder (the root folder of your domain). They may have a version of your WP 'code' files that will properly point to the database that you can (have?) restored.

So, your code must contain the pointers and credentials to your database, and the wp-options table contains the URL of your site, so that you can browse to the site URL.

Good luck!

1
  • No problem. Glad to help out. (If my answer was a good match with your question,a 'checkmark' is appreciated and tells others that the answer matched your question.) Commented May 9, 2018 at 20:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.