Skip to main content
How to restore a deleted website

Using backups to restore a deleted website on your hosting plan at Hostinger

Updated over 2 months ago

If you have removed a website from your hosting plan and wish to restore it, you can follow the steps below to restore it from the latest backup.

IMPORTANT NOTES ❗

  • After restoring a backup, your website will be returned to its state at the moment of backup creation — any changes done after the backup date will be reverted

  • To restore a website created with Hostinger Website Builder, contact our Customer Success team

Step 1 — Re-add your domain to a hosting plan

Add the deleted domain to your hosting plan:

  1. Navigate to the Websites page.

  2. Select Add website Empty website.

  3. Enter the domain name of the deleted site.

If your website was connected to a subdomain, make sure to recreate the subdomain before adding it to a hosting plan.

Step 2 — Restore files from backups

Navigate to the Websites page, click on Dashboard, and search for Backups on the sidebar. Once there, follow these steps:

  1. Select Files backups

  2. Choose the preferred date from the list

  3. Click on Next step

  4. Select the folder named after the website you want to restore

  5. Click on Restore files

The restoration process can take up to 15 minutes, depending on the size of your website.

To restore a website from a different location than the root domain, check this guide: Restore specific websites, subdomains, or directories💡

Step 3 - Restore the database from backups

To restore the database, you will need to create a new database and then restore the database backup.

Re-create the database

Create an empty database with the same name, username, and password as the previous one. To find this information, use the File Manager to open the configuration file located in the root folder of the restored website

  • For domains — the domain.tld/public_html folder

  • For subdomains — domain.tld/public_html/subdomain folder

Make sure to replace domain.tld and subdomain with the name of your domain or subdomain ⬆️

Then, navigate to Websites Dashboard, and search for database Management on the sidebar:

The database management menu item

To create a new MySQL database and database user, enter the database name, username, and password from your website's configuration file and click on Create.

Restore the database

Navigate to WebsitesDashboard, and search for Backups on the sidebar. Once there, follow these steps:

  1. Select Database backups

  2. Choose the database name from the list

  3. Click on Show databases

  4. Select the same backup date as the file backup

  5. Click on Restore

For more information, refer to this guide: Restore Databases 💡

That's it! Your website is now restored. To verify it, open it using an incognito window on your browser.

Step 4 (optional) — Restore emails

If you removed the website less than 14 days ago, you can recover your emails by following the procedure detailed in this article: How to restore a deleted Hostinger Email account

Did this answer your question?