Files
File & Directory Restoration
Updated: 06 February 2024
cPanel Version: 118
Enter a direct path to restore a file or directory
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
- Go to the Files and Directories section and click on Enter a path.
- 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.
- Click Show Backups to see all the backups available for that file or folder under the Backups section.
- Pick the backup you want to restore and press Restore.
- 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
- 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.
- Press Show Backups to find all the backups for the chosen file or folder. These will show up in the Backups section.
- Select the backup you want to use and click Restore.
- Confirm your choice by clicking Restore. A message will pop up telling you if the restore was successful or not.
- After a successful restore, the files or folders will be back in your home directory.
External links
File and directory restoration - cPanel Documentation
- 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.
- Press Show Backups to find all the backups for the chosen file or folder. These will show up in the Backups section.
- Select the backup you want to use and click Restore.
- Confirm your choice by clicking Restore. A message will pop up telling you if the restore was successful or not.
- After a successful restore, the files or folders will be back in your home directory.