How to Restore Partial Files In cPanel

How to Restore Partial Files In cPanel

How to Restore Partial Files In cPanel

You have designed that cool website or web application and everything is working pretty well. However, you accidentally deleted a file when maintaining your website in cPanel.

In this guide, we will show you how you can restore partial files from your cPanel account if you accidentally deleted them.

Prerequisites

Step 1: Login to your cPanel account

First, you need to login to your cPanel account by visiting the URL ‘www.example.com/cpanel’ where ‘example.com’ is the primary domain name associated with your hosting account. Then, just enter your username and password and click on Log In.

How to Restore Partial Files In cPanel

Step 2: Locate File Manager

Under the ‘FILES’ heading, locate >File Manager> and click on the Files icon.

How to Restore Partial Files In cPanel

Step 3: Locate the file from Trash bin

When you delete a file from cPanel File Manager, it is automatically sent to the trash bin unless your specifically skip this option. The trash is just like a recycle bin on your computer.

So to restore the file, click on the ‘View Trash’ option as shown below:

How to Restore Partial Files In cPanel

All the files that were deleted will be displayed on the next screen as shown:

How to Restore Partial Files In cPanel

You can always click on a column (e.g. Name, Size, Last Modified or Type) to sort the files either ascending or descending. For instance, if you arrange the files with the ‘last modified’ column, files that you update recently will show at the top. This will help you restore the right files.

Once you decide on the right file to restore, right click it from the list and click on the ‘Restore’ Option towards the bottom of the context menu as shown below:

How to Restore Partial Files In cPanel

In the above screen, we have chosen the ‘index.php’ file which should be restored back to its original folder. Once you get a confirmation message, click on ‘Restore File(s)’

How to Restore Partial Files In cPanel

You can restore as many files as you want either by selecting them individually or by selecting multiple files at once. When selecting multiple files, press the ‘CTRL’ button on your keyboard and use your mouse to click the files needed.

The files you select do not have to follow each other on the list. For instance, in the image below, we have selected the first and the third file for restoration and skipped the second file name.

How to Restore Partial Files In cPanel

Multiple file selection can save you a lot of time especially if you have many different files that need to be restored.

Test your website

Once the restoration is complete, test your website or web application again. If you have restored all the files as needed, your website should be working again without any problems.

Conclusion

Those are all the steps that you should follow to restore partial files right from cPanel account. As always, never delete files permanently unless you have created another backup on your local computer. The restoration procedure above only works if files are sent to the trash when deleting them, otherwise, the files cannot be recovered. I hope you enjoyed reading the guide.

 

Check out these top 3 cPanel hosting services:

HostArmada
CA$2.07 /mo
Starting price
Visit HostArmada
Rating based on expert review
  • User Friendly
    4.5
  • Support
    4.8
  • Features
    4.6
  • Reliability
    4.8
  • Pricing
    4.5
ChemiCloud
CA$2.71 /mo
Starting price
Visit ChemiCloud
Rating based on expert review
  • User Friendly
    4.8
  • Support
    4.8
  • Features
    4.7
  • Reliability
    4.6
  • Pricing
    4.5
Verpex Hosting
CA$0.82 /mo
Starting price
Visit Verpex Hosting
Rating based on expert review
  • User Friendly
    4.5
  • Support
    4.9
  • Features
    4.6
  • Reliability
    4.7
  • Pricing
    4.4
  • Want to get top recommendations about best hosting? Just click this link!

How To Examine And Repair A Database in PhpMyAdmin

Over the period of time, database can be corrupted and needs to repaired. This t
less than a minute
Elizabeth Grom
Elizabeth Grom
Hosting Expert

How To Find and Install A New Theme in Drupal 8

This tutorial will help you replace the default Drupal theme with your preferred
less than a minute
Elizabeth Grom
Elizabeth Grom
Hosting Expert

How To Create Views in Drupal 8

This tutorial is compiled to help you create a view in your Drupal 8 platform.
less than a minute
Elizabeth Grom
Elizabeth Grom
Hosting Expert

How To Set up a VSFTPD Server on a CentOS 7 VPS or Dedicated Server

Brief Description FTP is usually insecure exposing clear-text passwords, usernam
less than a minute
Eliran Ouzan
Eliran Ouzan
Web Designer & Hosting Expert
Click to go to the top of the page
Go To Top
HostAdvice.com provides professional web hosting reviews fully independent of any other entity. Our reviews are unbiased, honest, and apply the same evaluation standards to all those reviewed. While monetary compensation is received from a few of the companies listed on this site, compensation of services and products have no influence on the direction or conclusions of our reviews. Nor does the compensation influence our rankings for certain host companies. This compensation covers account purchasing costs, testing costs and royalties paid to reviewers.