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 a week 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 NOTE ❗

  • 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.

The process depends on how your website was created:

  • For WordPress websites, start with step 1 and follow the WordPress restoration instructions.

  • For other CMS platforms, follow steps 1 to 3, skipping the WordPress restoration in step 1.

  • For websites built with Hostinger Website Builder, contact us, and we'll assist you with the restoration.

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.

WordPress restoration

For websites created using a different CMS or custom code, skip this part and proceed to the next step. If the deleted website was created using WordPress, use this option.

Choose the domain and preferred date from the available backups in the dropdown list, and click on Restore website:

NOTE

After clicking on the Restore button, confirm that you understand that restoring the selected backup version will replace current website files and databases, then click again on Restore:

Usually, the restoration process takes 10–15 minutes, depending on the size of your website; the larger the backup, the longer it may take. You can track the progress of your website restoration in the Restore and Download section.

The restoration will continue in the background even if the browser tab is minimized or closed. Check the status in the Restore History tab:

Step 2 — Restore files from backups

Click on Files backups, select the preferred date from the available backups in the dropdown list, and click on Show files:

To restore only one domain and its subdomains, select the folder of the preferred website (e.g., domain.tld), and click on Restore selected:

To restore a particular directory or a subdomain, select the folder of the preferred website (e.g., domain.tld), and open the public_html folder within:

Select the desired directory (folder), and click on Restore files:

NOTE

  • The default directory for your subdomain is named after the subdomain; if you chose a custom name when creating the subdomain, the folder will have that name instead.

Usually, the restoration process takes 10–15 minutes, depending on the size of your website; the larger the backup, the longer it may take. You can track the progress of your website restoration in the Restore and download section:

The restoration will continue in the background even if the browser tab is minimized or closed. Check the status in the Restore History tab:

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. Click on Restore and download then Database backups. Choose the preferred backup date, and click on Restore Database.

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?