File and Directory Restoration for cPanel
Valid for versions 84 through the latest version
Last modified: May 11, 2021
The File and Directory Restoration interface allows you to restore files or folders from saved backups. This interface is useful if you want to restore a specific file or folder to a previous state. For example, if you accidentally deleted a file or want to undo changes to a directory, you can restore to the latest backup version. This interface can restore deleted files and will overwrite existing files.
This interface only uses backups that exist on your server. To use remote backups, you must transfer them to the local server.
You cannot restore the
The File and Directory Restoration interface
This interface contains two sections. The Files and Directories section shows the files and folders you can restore. The Backups section lists the dates for all available backup versions.
If you know the path to the file or folder you want to restore, you can enter it directly. We recommend this setting for advanced users. New users can browse files and folders to view the available backup files.
Enter a direct path to restore a file or directory
New users should browse for files or folders.
The system will not show a directory’s contents for the Enter a path setting.
You can restore a file or directory from a direct path through your cPanel account’s home directory. To do so, perform the following steps:
In the Files and Directories section, select Enter a path.
Enter the direct path to the file or directory in the text box. The text box’s path is the cPanel account user’s home directory path. For example, enter
public_htmlin the text box for the direct path to the
/home/user/public_htmldirectory. In this directory path,
userrepresents the cPanel account’s username.
Click Show Backups to list the backups for that file or directory. The backups will appear in the Backups section of the interface.
In the Backups section, choose the backup that you wish to restore and click Restore.
The interface will ask you to confirm the restoration. Click Restore to confirm. A success or failure message will appear.
Browse for files or folders
You can browse to find the file or folder that you wish to restore. To do so, perform the following steps:
In the Files and Directories section, select Browse files and directories. All available files and folders will appear. You can click a folder’s name to view more files and folders.
Click Show Backups to list the available backup files for that file or folder. The backup files will appear in the Backups section with the corresponding date.
In the Backups section, choose a backup file and click Restore.
The system will ask you to confirm the restoration. Click Restore to confirm. A success or failure message will appear.
Files and folders that you successfully restore will now appear in the Files and Directories section.ß