How to restore a deleted temporary website

Restore a deleted temporary website in Hostinger: create a new temporary domain, restore the old files from backups, and rename the folder.

Updated 1 day ago

Restore a deleted temporary website in Hostinger by creating a new website on a new temporary domain, restoring the old website’s files and database from the same backup date, and renaming the restored folder to match the new domain. A deleted temporary domain name can’t be recreated, so this method moves your old data under a new temporary domain, as long as unexpired backups are available.

You might also need to restore the contents of a temporary website after connecting it to a custom domain.

Pre-requisites

  • Access to your Hostinger dashboard.
  • Available unexpired backups from the deleted website.

Step 1 – Generate a new temporary domain

Since you cannot reuse the old automatically assigned string, you must start fresh with a clean slate:

  1. Log in to your Hostinger dashboard and navigate to the Websites section.
  2. Click on the Create site button.
  3. Select PHP/HTML website from the application type options.
  4. Choose the option to Use a temporary domain name.
  5. Continue through the remaining setup screens until a new, empty website is active on your dashboard.

Step 2 – Restore your deleted website’s files

Next, you need to pull your old website’s folder structure out of the system backups and into your server directory.

  1. Go to the Files section in Hostinger dashboard and select Backups.
  2. Click on File backups and choose a backup date from before the website was deleted. Note this date, because the database backup you restore in Step 4 must be from the same date.
  3. Select the Show files toggle option.
  4. When the list of files shows up, click on domains.
  5. Check the box directly next to the folder named after your deleted temporary domain.
  6. Confirm and click Restore selected. Wait for the system to complete the recovery.

Step 3 – Remap the directories via File Manager

Once restored, you will have two folders inside your server: your newly created empty temporary site and your old recovered site data. You must swap their identities so the new domain points to the old data.

  1. Open the File Manager, ensuring you select the option to see the files for your entire hosting plan (the root directory), rather than a single site environment.
  2. Navigate into the domains folder.
  3. Locate the folder belonging to your newly generated temporary domain and rename it by appending a suffix (e.g., rename newsite.hostinger-site.com to newsite.hostinger-site.com-original).
  4. Locate the recovered folder belonging to your deleted website (e.g., oldsite.hostinger-site.com).
  5. Rename that old folder to match your new temporary domain exactly (e.g., newsite.hostinger-site.com).

Step 4 – Database configuration and adjustments

If your temporary website was a dynamic application (like WordPress) or used configuration variables, you must wrap up the setup:

  1. Navigate to Backups to restore the database associated with your old site if needed. Choose the same backup date you selected for the website files.
  2. Open your configuration files (such as wp-config.php or .env) using the File Manager.
  3. Update any hardcoded entries of your old temporary domain to reflect your new temporary domain string so styles and links load correctly.

After migrating the website from a temporary domain to another, it’s crucial to update the site URL throughout the whole website. If it’s a WordPress website, you can use the Search and Replace function by following this tutorial: How to Perform a WordPress Search and Replace in the Database

By shifting your restored backup files under the identity of a new temporary domain, you can fully salvage your work. Your site files will now load seamlessly through the newly generated link.

NOTES

  • Empty Directory: The folder you appended -original to can be safely deleted via the File Manager once you verify the restored site works, as it contains no data.
  • Database Links: Remember to update URLs inside your database using a plugin or script if your restored site relies on absolute links matching the old temporary URL.
  • Backup Lifetime: Temporary site backups follow standard hosting retention policies. If no backups appear in the dashboard, the data can no longer be recovered.