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.

Step 2: Locate File Manager

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

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:

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

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:

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)’

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.

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
$1.79 /mo
Starting price
Visit HostArmada
Rating based on expert review
  • User Friendly
    4.5
  • Support
    4.5
  • Features
    4.5
  • Reliability
    4.5
  • Pricing
    4.0
IONOS
$1.00 /mo
Starting price
Visit IONOS
Rating based on expert review
  • User Friendly
    4.5
  • Support
    4.0
  • Features
    4.5
  • Reliability
    4.5
  • Pricing
    4.3
Ultahost
$2.90 /mo
Starting price
Visit Ultahost
Rating based on expert review
  • User Friendly
    4.3
  • Support
    4.8
  • Features
    4.5
  • Reliability
    4.0
  • Pricing
    4.8
  • Want to get top recommendations about best hosting? Just click this link!

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, userna
2 min read
Avi Ilinsky
Avi Ilinsky
Hosting Expert

How To Set up a VSFTPD Server on an Ubuntu 16.04 VPS or Dedicated Server

Brief Description FTP data is usually insecure since information (usernames, pa
2 min read
Eliran Ouzan
Eliran Ouzan
Web Designer & Hosting Expert

How to use phpMyAdmin to develop a website (without MySQL experience)

Brief description A web developer who is not well versed into coding websites f
2 min read
Idan Cohen
Idan Cohen
Marketing Expert

How to Install MySQL on a Windows Web Server Running Apache

This tutorial will show you how to install the MySQL database on a Windows serve
3 min read
Michael Levanduski
Michael Levanduski
Expert Hosting Writer & Tester
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.
Click to go to the top of the page
Go To Top