Restore backups in cPanel


When to restore a backup?

Restoring a backup allows you to recover your website to a previous state. This is useful when:

  • You deleted files by mistake
  • Your site was compromised or infected with malware
  • An update caused problems
  • You need to revert recent changes
  • You lost important data

Precautions before restoring

IMPORTANT: Before restoring a backup, make a backup of the current state:

  1. Make a full backup of your current account
  2. Save it in a safe place
  3. Document what changes will be lost when restoring

Restoring a backup will overwrite current data. If you don't have a recent backup, you may lose important changes.


Method 1: Restore full backup

1. Access cPanel

  • Go to your cPanel panel
  • Log in with your credentials

2. Go to Backups section

On the cPanel main page, look for the "Files" section and click on "Backup" or "Backups".


3. Restore full backup

In the "Restore a Full Account Backup" section:

  1. Click "Choose File"
  2. Select the full backup file (usually a .tar.gz file)
  3. Select which components to restore:
    • Home directory files: All files
    • MySQL databases: All databases
    • Email: Email accounts and messages
    • Email filters: Configured filters
    • Email forwarders: Configured forwarders
  4. Click "Upload"

Warning: This will overwrite current data. Make sure you have a recent backup.


Method 2: Restore files only

If you only need to restore files:

  1. In the "Backup" section, look for "Restore a Home Directory Backup"
  2. Upload the files backup file
  3. Click "Upload"

This will restore only files, without affecting databases or emails.


Method 3: Restore database only

If you only need to restore a database:

  1. In cPanel, search for "phpMyAdmin"
  2. Select the database you want to restore
  3. Click the "Import" tab
  4. Click "Choose File" and select the SQL file
  5. Verify configuration (charset, etc.)
  6. Click "Go"

Note: If the database already has data, you may need to delete it first or use "SQL" to run specific commands.


Method 4: Restore specific files from File Manager

If you only need to restore specific files:

  1. In cPanel, open "File Manager"
  2. Navigate to the directory where you want to restore
  3. Upload the files you want to restore
  4. Or extract a ZIP file with the files

Restore from automatic backup

If your hosting has automatic backups:

  1. In the "Backup" section, look for "Available Backups"
  2. You'll see a list of automatic backups with dates
  3. Select the backup you want to restore
  4. Choose which components to restore
  5. Click "Restore"

Verify restoration

After restoring, verify:

  • Files: Verify files were restored correctly
  • Databases: Verify databases have correct data
  • Website: Access your site and verify it works correctly
  • Emails: Verify email accounts work
  • Configurations: Verify configurations were restored

Restore WordPress from backup

If you use WordPress and want to restore from a backup:

Option 1: Restore files and database

  1. Restore WordPress files from backup
  2. Restore database from phpMyAdmin
  3. Verify the wp-config.php file has correct database data

Option 2: Use backup plugin

  1. If you used a plugin like UpdraftPlus, install the plugin in WordPress
  2. Upload the plugin backup files
  3. Restore from the plugin

Common problems

Error: "Backup file is corrupted"

  • Verify the file downloaded completely
  • Verify the file is not corrupted
  • Try downloading the backup again

Error: "Insufficient disk space"

  • Free up space on the server
  • Delete unnecessary files
  • Contact your hosting provider to increase space

Error: "Permission denied"

  • Verify you have permissions to restore
  • Verify file permissions
  • Contact your hosting provider if the problem persists

Site doesn't work after restoring

  • Verify all components were restored correctly
  • Verify configurations are correct
  • Check error logs
  • Verify file and directory permissions

Selective restore

If you don't want to restore everything, you can restore selectively:

  • Only specific files: Upload only the files you need from File Manager
  • Only specific tables: From phpMyAdmin, import only necessary tables
  • Only specific emails: Restore only the email accounts you need

Best practices

  • Make backup before restoring: Always make a backup of current state
  • Verify backup: Make sure backup is complete and not corrupted
  • Test in development first: If possible, test restoration in a development environment
  • Document process: Note what you restored and when
  • Verify after: Always verify everything works after restoring
  • Communicate changes: If other users use the site, let them know it was restored

Restoration checklist

  • ✅ Current state backup created
  • ✅ Backup file verified (complete and not corrupted)
  • ✅ Components to restore selected
  • ✅ Restoration completed
  • ✅ Files verified
  • ✅ Databases verified
  • ✅ Website working correctly
  • ✅ Emails working
  • ✅ Configurations verified

Tips

  • Restore only what's necessary: If you only need to restore specific files, don't restore everything
  • Use recent backups: Restore from the most recent backup possible
  • Verify compatibility: Make sure backup is compatible with current cPanel version
  • Be patient: Restorations may take several minutes
  • Don't interrupt process: Don't close the window while restoring

Need help?

If you're having trouble restoring backups in cPanel, open a ticket from the billing.baires.host panel or contact us for support. Include information about the backup you're trying to restore.

You can also reach us through our social media:

Was this answer helpful? 0 Users Found This Useful (0 Votes)