How to Restore a File from your own Backup
Published: Oct 7, 2011
Backing up your website is a necessary step for all users. Be sure to read our Do you run backups of your servers? article for an overview of how backups are maintained for our servers.
There may be times that you need to restore a file on your website from your own backup. In this tutorial, we'll show you how to use your File Manager to restore your public_html/index.php file.
- Log into your Account Management Panel
- Find and click the "Work in Control Panels" link
- On the next page, under your domain, click "cPanel Login"
- Under the "Files" heading, click the icon labeled "File Manager." If you get a popup that says, "Directory Selection", choose "Web Root" and "Show hidden files", and then click "Go"
- Find the file you want to restore from backup, in this example index.php. We are going to temporarily rename the file. Right click on the file in question, and then click "Rename". Rename the file to something such as index.php.bak or index.php.20110925 (the current date).
- To upload your backup file, click "Upload" in the top menu.
- On the next page, click "Browse" and then find the file to restore on your computer.
- After you have selected the file, it will begin to upload. When it has completed, test your website by going to domain.com/index.php. If you don't see the changes, you may need to clear your browser's cache and test again.
Support Center Login
Social Media Login
Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
2012-08-07 4:41 am
In Step 5, it says "Find the file you want to restore from backup."
But it's not clear to me where this backup came from. As far as I understand all the various backup options, they all result in files (compressed ZIP files) being downloaded to one's home computer. In fact, there are explicit instructions on the InMotion website saying that we are not allowed to store backups on the server.
So I'm wondering how this backup got onto the server and we can access it through cPanel.
2012-08-07 8:26 am
Step 5 refers to finding the file you are going to replace within your account. It refers to renaming the file you want to restore just in case you need to revert to it afterwards.
Step 6 is where you bring the backup file from your computer and place it in the account. You would upload that particular file (or files) via FTP or via the File Manager using the Upload icon from the top menu bar.
The Backup can be either a single file from your computer or within a zip file that was created when using the cPanel backup tool which is typically downloaded to your computer once it is created.
If the file you need restored is under 24 hours old, you can also petition our support team to see if you have a backup here that we can pull from.
To do so, you would need to contact our support department at firstname.lastname@example.org (open 24/7) with that request. Be sure to validate your account with either the last 4 digits of the credit card on file, or the current Account Management Panel (AMP) password.