Files

File & Directory Restoration

Updated: 06 February 2024
cPanel Version: 118

This tool lets you restore files or folders from backups saved on the server. You can type in the location of what you want to restore, or look through your files and folders to find it.

Notes

  • This tool can only restore files from local backups. If your backup is somewhere else, you need to upload it to the server first.
  • You can't use this to restore your .cpanel and email folders. To do that, you need to restore your whole account backup.
  • If a file was deleted, this will bring it back. If there's a file with the same name, it will overwrite it.

The File & Directory Restoration interface

Enter a direct path to restore a file or directory

  1. Go to the Files and Directories section and click on Enter a path.
  2. Type the exact path of the file or folder you want back in the text box. This starts from your cPanel's home directory. For instance, type public_html for the /home/user/public_html folder. Replace user with your own cPanel username.
  3. Click Show Backups to see all the backups available for that file or folder under the Backups section.
  4. Pick the backup you want to restore and press Restore.
  5. The system will ask if you're sure. Click Restore again to confirm. You'll get a message if it worked or not.

Restoring by Browsing

  1. In the Files and Directories section, choose Browse files and directories. You'll see everything in your cPanel's home directory. Click on any folder to see what's inside.
  2. Press Show Backups to find all the backups for the chosen file or folder. These will show up in the Backups section.
  3. Select the backup you want to use and click Restore.
  4. Confirm your choice by clicking Restore. A message will pop up telling you if the restore was successful or not.
  5. After a successful restore, the files or folders will be back in your home directory.

External links

File and directory restoration - cPanel Documentation