How can I restore a backup copy of a file on my server?
|
|
|
Backing up your site is a necessary part of normal account maintenance. Please read our article entitled Do you Run Backups of your Servers? for more information regarding backups.
If you have backup files and you need to restore just one of them, you can use your cPanel's File Manager to do this very easily. In this tutorial, we'll show you how to restore a file. In this example, we will be restoring public_html/index.php.
- Begin by logging into your Account Management Panel
- Click the Work in Control Panels link on the right side of the page.
- On the next page, under your domain name, click cPanel Login.
- Under the Files heading, click the icon labeled File Manager. If a popup appears that says Directory Selection, choose Web Root and Show hidden files, and click Go.
- Find the file you want to restore from backup, in this example index.php. We are going to temporarily rename the file so that we have a copy of the existing file. Right click on the file, and select Rename from the right-click menu. 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 menu at the top of the page.
- On the next page, click Browse and select the file on your local computer to begin the upload.
- After you have selected the file, it will begin to upload. When it has completed, test your website by going to yourdomain.com/index.php. (replace yourdomain.com with your actual domain name). If you do not see the changes, try refreshing the page (F5 in most browsers) or clearing your browser's cache.
|
Please log in to rate this article.
Notify Me of Updates!
Please login to subscribe to receive notifications when this article is updated.