Deleted or damaged website files can be recovered from a copy made before the problem. A home directory backup in cPanel restores account files to their original locations, including website files in public_html.
The Backup page accepts the home directory archive previously downloaded to your computer with its Home Directory button. Databases have separate backups, so restoring home directory files does not restore a site's database. A full account backup requires your hosting provider to restore it, as explained in cPanel's backup documentation.
Files with matching names are overwritten, so newer edits can be lost. Before starting, you need a current backup to recover those versions if necessary, the older home directory archive you intend to restore, and access to the matching cPanel account.
Steps to restore a home directory backup in cPanel:
- Open Backup under Files in your cPanel account.

- Select your saved home directory archive with Choose file under Restore a Home Directory Backup.
The Home Directory download button on the left creates a new backup of the account's current files. The restore control on the right takes the older archive from your computer.
- Click Upload under Restore a Home Directory Backup to restore the archive.
This restores the files contained in the archive and overwrites files with the same names. A full account backup is not a home directory backup.
cPanel displays Success after the restore.
- Enter
File Managerin cPanel's Search Tools box after the restoration finishes.
- Click File Manager in the search results.

- Enter a restored folder's home-relative path in File Manager's location box.
The path shown is
public_html/blog. Your folder depends on the contents of your backup. - Click Go beside the location box.

- Click Reload in the folder's navigation bar.

- Confirm that the restored files remain listed with their expected sizes after the reload.
The folder shown contains
index.htmlat 219 bytes andstyle.cssat 124 bytes.