Restoring a Joomla Site from Backup After a Hack
Author

JoomLab.

Published Date

21 August 2026

Views

3 765

Restoring a Joomla Site from Backup After a Hack

Having a backup copy turns a hack from a catastrophe into an annoying nuisance. Instead of manually cleaning hundreds of files, you restore the site from a copy in a few hours. But there are nuances worth remembering. We have restored more than 150 sites after hacking and we know for sure: a clean backup is half the success, the other half is the right sequence. Let us look at it step by step.

Check That the Backup Is Clean

The main mistake is restoring the site from an infected backup. If the copy was made after the hack, the virus will be restored along with the files. Before restoring, check:

  • The creation date of the backup — it should be earlier than the estimated date of the hack.
  • The server logs — when the suspicious activity began.
  • The contents of the backup — whether there is malicious code in it.

If there are doubts about the cleanliness of the backup — check it with a scanner or contact a specialist.

What a Full Restoration Includes

Restoring a Joomla site is two parallel processes:

  • Restoring the files: the Joomla core, extensions, templates, images.
  • Restoring the database: content, users, settings.

It is important to restore both components. Files without a database are an empty frame. A database without files is data without an interface.

The Restoration Order

The right sequence of actions:

  1. Delete the infected files from the server.
  2. Upload the files from the backup.
  3. Import the database from the backup.
  4. Check the configuration.php file for current credentials.
  5. Update Joomla and the extensions to the latest versions.
  6. Change all the passwords.

After the restoration, be sure to conduct a security audit: a backup does not close the vulnerability through which the virus got onto the site.

What to Do Right After Restoration

Mandatory steps:

  • Change the passwords for the admin panel, hosting and database.
  • Update Joomla and all the extensions.
  • Check the configuration.php file.
  • Delete the unused components.
  • Configure protection against re-hacking.

If the Backup Was Made After the Hack

Sometimes there is no clean copy, and the only backup is infected. In this case:

  • Restore the site from the infected backup.
  • Immediately conduct a full virus cleanup.
  • Close the vulnerability through which the infection happened.

This is longer than restoring from a clean backup but faster than cleaning without a backup at all. The Virus Removal service includes diagnostics and removing the malicious code in 1–2 days, urgently in 2–4 hours.

Why the Site May Get Infected Again

Restoring from a backup does not protect against re-hacking if:

  • Joomla and the extensions are not updated.
  • The passwords are not changed.
  • The vulnerability is not found and closed.
  • Protection is not configured after the restoration.

A backup is a way to return the site, not to protect it. Comprehensive security is a separate task. The Joomla Security and Firewall service closes typical vulnerabilities in 2–3 days, with a 30-day guarantee. If after the restoration you additionally need to clean the database or files — Malicious Code Removal.

"A good backup is not just a copy of files. It is the ability to return in a few hours what was created over years."

If you do not have a backup or are not sure of its cleanliness — do not experiment. Contact specialists before the infection spreads further.