Restoring a Website from Backup
Last Updated: 2025-01-01
2 min read
Restoring a Website from Backup
When something goes wrong — a hack, a bad update, or accidental deletion — restoring from a backup gets you back online quickly. The restoration method depends on how the backup was created.
Before You Restore
- Identify the problem: Determine if you need a full restore or just specific files.
- Create a backup of the current state: Even if the site is broken, save the current files and database in case you need them for debugging.
- Choose the right backup version: Select a backup from before the issue occurred.
- Put up a maintenance page: Notify visitors that the site is temporarily unavailable.
Method 1: Restore via cPanel
- Log into cPanel.
- Go to Files → Backup or Backup Wizard.
- Under Restore, select the backup type:
- Home Directory: Upload the backup archive of your files.
- MySQL Database: Upload the
.sqldatabase backup.
- cPanel will overwrite existing files and data with the backup versions.
Method 2: Restore via WordPress Plugin
UpdraftPlus:
- Go to Settings → UpdraftPlus Backups.
- Click Existing Backups to see available restore points.
- Click Restore next to the desired backup.
- Select which components to restore (plugins, themes, uploads, database, other).
- Click Restore and wait for the process to complete.
If WordPress Won’t Load:
- Access your site via FTP or File Manager.
- Upload the backup files to replace the current installation.
- Import the database backup through phpMyAdmin.
Method 3: Restore via FTP
- Connect to your server using an FTP client.
- Navigate to your web root (
public_htmlorwww). - Delete or rename the current content.
- Upload the backed-up files.
- If your backup includes a database, restore it through phpMyAdmin:
- Open phpMyAdmin from your hosting control panel.
- Select your database.
- Click Import and upload the
.sqlfile.
Method 4: Command Line Restore
# Extract file backup
tar -xzf backup_files_20250101.tar.gz -C /path/to/public_html
# Restore database
mysql -u username -p database_name < backup_db_20250101.sql
Post-Restore Checklist
- Verify the website loads correctly.
- Test all major functionality (forms, login, cart, etc.).
- Check that images and media display properly.
- Update WordPress, plugins, and themes if the backup is older.
- Re-apply any security patches or configuration changes made after the backup date.
- Clear all caches (server, CDN, browser).
- Monitor for errors in the following hours.
If restoration fails or you don’t have a usable backup, contact your hosting provider’s support team — they may maintain server-level backups that can help.
Tags:
website
backup
restore
recovery
database