Skip to main content

How to Restore Only WordPress Files From a Backup

A Site Administrator can restore only the files associated with a WordPress installation from a backup. This process allows you to restore your website's media, themes, and plugins without overwriting the current database.

A Site Administrator can restore only the files associated with a WordPress installation from a backup. This process allows you to restore your website's media, themes, and plugins without overwriting the current database.

Important: This procedure only restores physical files. It does not restore database entries, such as your posts, pages, or settings. If you need to restore the database as well, please refer to the article on restoring a WordPress database.

Before you begin

You will need:

  • Site Administrator access to the WordPress dashboard or the hosting control panel.

  • A valid backup of the WordPress site.

  • Access to the server's file system (via FTP, SFTP, or a File Manager).

Restore WordPress files from a backup

  1. Identify the backup source. This may be a local backup, a cloud storage backup, or a backup managed through your hosting control panel.

  2. Access the server's file system using your preferred method (e.g., File Manager or an FTP client).

  3. Navigate to the root directory of your WordPress installation.

  4. Identify the specific folders that need restoration (typically wp-content, wp-admin, and wp-includes).

  5. Upload the backed-up files to the corresponding directories on the server.

  6. If you are replacing existing files, overwrite the current files with the versions from your backup.

Warning: Overwriting files can cause immediate changes to your website's functionality. Ensure you have a current backup of the live site before proceeding.

Confirm the result

  • Verify that the files are present in the correct directories using your file manager.

  • Log in to your WordPress dashboard to ensure the site remains accessible.

  • Check that your images, themes, and plugins are loading correctly.

Limitations

This procedure does not restore any data stored in the MySQL or MariaDB database. If your goal is to revert a database change, this method will not achieve that result. Additionally, if you are using a specialized backup plugin, the restoration process may vary depending on the plugin's specific tools.

Did this answer your question?