You can restore your website to a previous state using a known-clean backup if your site has been compromised or suffered a critical failure. This process allows you to replace current files and databases with a version that is confirmed to be free of malware or errors.
Important: This procedure is product-dependent. The specific tools and methods available for restoration depend on your Hostek hosting plan and the specific backup services enabled on your account.
Before you begin
You will need:
A Hostek customer account with access to the website's management tools.
A confirmed "known-clean" backup file or snapshot.
The specific date or version identifier of the clean backup.
A maintenance window, as restoring a site may cause temporary downtime.
Restore the website files and database
The steps to restore your site depend on the specific backup solution provided by Hostek for your account.
If using a Hostek-provided backup service
Log in to your Hostek management portal.
Navigate to the Backups or Restore section for your specific website.
Select the specific website you wish to restore.
Select the date or version of the known-clean backup.
Select Restore or Restore Now.
If using a manual backup (e.g., a file you uploaded)
Access your site's file manager or connect via FTP.
Replace the current website files with the files from your clean backup.
Access your database management tool (such as phpMyAdmin).
Import the database from your clean backup to overwrite the current database.
Warning: Restoring a backup will overwrite the current data on your website. Ensure you have identified the correct backup date to avoid losing recent, valid information.
Confirm the result
Once the restoration process is complete, verify the site's integrity:
Refresh your website in a private or "Incognito" browser window to ensure it loads correctly.
Check that the content matches the expected state of the clean backup.
If the site was compromised, verify that the "malicious" elements (such as redirect scripts or spam pages) are no longer present.
Limitations
Data Loss: Any data, comments, or changes made between the date of the backup and the current time will be lost upon restoration.
Service Specifics: This article does not cover the restoration of specific email mailboxes; please refer to the dedicated email restoration guide for those instructions.
Verification: Restoring a site from a backup does not automatically "clean" a site; the backup must be verified as clean before the restoration is performed.
