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:
Navigate to the Websites page.
Select Add website → Empty website.
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:
Select Files backups
Choose the preferred date from the list
Click on Next step
Select the folder named after the website you want to restore
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:
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 Websites → Dashboard, and search for Backups on the sidebar. Once there, follow these steps:
Select Database backups
Choose the database name from the list
Click on Show databases
Select the same backup date as the file backup
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