If your website breaks, you can restore it from a backup file. This process overwrites your current files and database with the older, working version.
Method 1: Using a cPanel Backup File
If you previously downloaded a full backup from cPanel:
-
Log in to your cPanel.
-
Go to "Backup" or "Backup Wizard."
-
Select "Restore."
-
Upload the backup file from your computer. cPanel will automatically extract and place the files in the correct locations.
-
Note: You usually need to restore files and databases separately if you have them.
Method 2: Manual Restore (Files Only)
If you only backed up your public_html folder:
-
Go to File Manager >
public_html. -
Delete all current files (or move them to a folder named
old-sitefor safety). -
Upload your backed-up files to the
public_htmlfolder.
Important: If your backup contains a database, you will also need to import that SQL file via phpMyAdmin to fully restore your site.