> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.modulards.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to restore a backup in Modular DS


If you need to recover a backup generated by Modular DS, here is a step-by-step guide to restore the two main components of a backup: the database and the files of your website.

You can do it in several ways, depending on whether your website is still connected to Modular DS:

* **Direct restore from the backup**: the fastest option, available if your website is still connected to Modular DS.
* **Restore from the panel with FTP and database credentials**: for when the connection has been lost.
* **Manual restore**: with phpMyAdmin for the database and cPanel, Plesk, FTP, FTPS or SFTP for the files.

## Direct restore from a backup

You can now restore a backup directly from the backup itself, without needing to enter FTP or database credentials. It is the fastest way to return your website to a previous state.

This method is only available if your website is still connected to Modular DS. If the connection has been lost, you will need to restore using the FTP and database credentials, following the process we explain below.

### 1. Open the backup you want to restore

Go to the backups section of the website you want to recover and locate the backup you need. You can start the restore from two places:

* Click the three dots on the backup and select "Restore to this version".

![](https://storage.crisp.chat/users/helpdesk/website/-/a/a/5/5/aa55333f4a914000/image_1mikb2e.png)


* Open the backup details and click the "Restore to this version" button.

![](https://storage.crisp.chat/users/helpdesk/website/-/a/a/5/5/aa55333f4a914000/restore2_11id2bx.webp)

### 2. Choose which parts to restore

A window will open with two options: "Full restore" or "Partial restore". With the partial restore you can choose which parts to recover, from the database to the WordPress files, plugins, themes, media, MU Plugins or content.

Once you have made your selection, click "Continue".

![](https://storage.crisp.chat/users/helpdesk/website/-/a/a/5/5/aa55333f4a914000/image_8hov2u.png)

### 3. Confirm the restore

Before starting, Modular DS warns you that the restore removes the files and any change made in WordPress since the date of that backup (edits to posts and pages, new media uploads or WooCommerce orders), and that the action cannot be undone or stopped once it has started.

To confirm, type "restore" in the field and click "Restore backup". The restore will begin and you will be able to follow its progress in the pop-up that appears.

![](https://storage.crisp.chat/users/helpdesk/website/-/a/a/5/5/aa55333f4a914000/image_1k142g.png)

You can close and return to the pop-up at any time from the website overview in Modular DS, by clicking the link in the banner above.

## Restoring from Modular DS with FTP and database credentials

If your website is not connected to Modular DS, you can restore a full backup by entering your server access credentials, without the need for other external tools. It is useful for recovering your website when something goes wrong or when you want to return to a previous state.

### 1. Set up the restore

Access the backups section of your website and go to the "Restoration" tab.

![Restoration configuration](https://storage.crisp.chat/users/helpdesk/website/-/a/a/5/5/aa55333f4a914000/modular-backups-r1_1gb7atb.png)

Add your server's **FTP or SFTP credentials**, or select a server you have previously added. This will allow Modular DS to upload the necessary files.

![FTP/SFTP credentials](https://storage.crisp.chat/users/helpdesk/website/-/a/a/5/5/aa55333f4a914000/restoration-configuration-r2_xqeavt.png)

Then, add the database credentials of the database you want to restore and click "Save".

![Database credentials](https://storage.crisp.chat/users/helpdesk/website/-/a/a/5/5/aa55333f4a914000/database-configuration-r4_1lm5t7n.png)

### 2. Restore the backup

Go back to the **backup list** of that website and select the backup you want to restore by clicking on its creation date.

![Backup list](https://storage.crisp.chat/users/helpdesk/website/-/a/a/5/5/aa55333f4a914000/choose-backup-r6_cnbj16.png)

Once inside the details of that backup, click "Restore to this version".

![Restore backup](https://storage.crisp.chat/users/helpdesk/website/-/a/a/5/5/aa55333f4a914000/backup-details-r7_rcciqe.png)

Before continuing, make sure the FTP/SFTP and database details are correct. Then click "Restore backup".

![Confirm restoration](https://storage.crisp.chat/users/helpdesk/website/-/a/a/5/5/aa55333f4a914000/confirm-restoration-r8_1oxnliu.png)

The process may take a few minutes. In the pop-up that appears, the parts that have been successfully restored are marked, so you can follow the progress step by step.

![Restoration process](https://storage.crisp.chat/users/helpdesk/website/-/a/a/5/5/aa55333f4a914000/restoration-process-r9_oro56j.png)

## Restoring the database using phpMyAdmin

If you cannot restore the backup from Modular DS, you can also restore the database using phpMyAdmin, a tool available in most hosting services.

### 1. Download the SQL file

Access the backup details in Modular DS and [download the ZIP file](https://help.modulards.com/en/article/how-to-download-a-backup-6dh3u/) of the database.

![Database backup](https://storage.crisp.chat/users/helpdesk/website/aa55333f4a914000/database-modulards_r6s6tz.png)

Unzip the file on your computer to get the SQL file (for example, database.sql).

### 2. Import the database

Log into phpMyAdmin from your hosting panel and select the database corresponding to your website.

![phpMyAdmin database](https://storage.crisp.chat/users/helpdesk/website/aa55333f4a914000/phpmyadmin-select-db_1ymu5ys.png)

Go to the "Import" option, upload the downloaded SQL file and run the import. This will restore the database from your backup.

![Import database](https://storage.crisp.chat/users/helpdesk/website/aa55333f4a914000/phpmyadmin-import_1h2dwtw.png)

## Restoring site files

You can restore your site files using the hosting file manager (cPanel, Plesk or similar) or via an FTP, FTPS or SFTP connection, depending on your preferences and the tools available on your hosting.

### Option 1: File manager

#### 1. Download and prepare the files

From Modular DS, [download the ZIP files](https://help.modulards.com/en/article/how-to-download-a-backup-6dh3u/) of the desired backup. You can download all the files or select specific parts, such as the plugins folder.

![Download backup files](https://storage.crisp.chat/users/helpdesk/website/aa55333f4a914000/download-backup-files-modular_rmhv8k.png)

#### 2. Restore the files

Access the file manager from the hosting panel and navigate to your site folder. In Plesk it is called "Files".

![Plesk panel](https://storage.crisp.chat/users/helpdesk/website/aa55333f4a914000/plesk_m03zfe.png)

In cPanel it is called "File Manager".

![cPanel file manager](https://storage.crisp.chat/users/helpdesk/website/aa55333f4a914000/cpanel-file-manager_12t2nqn.png)

Create a new folder, called, for example, "restoration".

In Plesk:

![Restoration folder Plesk](https://storage.crisp.chat/users/helpdesk/website/aa55333f4a914000/restoration-folder-modular-ple_1d4z5hk.png)

In cPanel:

![Restoration folder cPanel](https://storage.crisp.chat/users/helpdesk/website/aa55333f4a914000/restoration-folder-modular-cpa_6nli48.png)

Upload the backup ZIP files and unzip them inside this folder. In Plesk there is a "File > Extract Files" option.

![Extract Plesk](https://storage.crisp.chat/users/helpdesk/website/aa55333f4a914000/file-manager-plesk-extract_5zhlpm.png)

In cPanel there is an "Extract" option. Here you will have to extract them one by one.

![Extract cPanel](https://storage.crisp.chat/users/helpdesk/website/aa55333f4a914000/file-manager-cpanel-extract_19ll15e.png)

Once done, check that the WordPress structure (wp-content, wp-admin, wp-includes) is correct.

![File structure Plesk](https://storage.crisp.chat/users/helpdesk/website/aa55333f4a914000/file-manager-plesk-file-struct_1hvd0v2.png)

![File structure cPanel](https://storage.crisp.chat/users/helpdesk/website/aa55333f4a914000/cpanel-file-manager-file-wp-st_1ij9bzx.png)

Rename the current site folders by adding "-old" at the end, so you can go back if needed, and move the files from the "restoration" folder to the corresponding locations. This way, your backup will be restored.

Once you see that everything is working, you can delete the "old" folder.

### Option 2: FTP, FTPS or SFTP

#### 1. Download and prepare the files

From Modular DS, [download the ZIP files](https://help.modulards.com/en/article/how-to-download-a-backup-6dh3u/) of the desired backup. You can download all the files at once or select specific parts, such as the plugins folder.

Unzip the backup ZIP files on your computer and make sure they keep the WordPress structure.

#### 2. Connect and restore

Use an FTP client such as Filezilla to connect to your server. You will need the access credentials for FTP, FTPS or SFTP.

![New connection Filezilla](https://storage.crisp.chat/users/helpdesk/website/aa55333f4a914000/new-connection-filezilla_zp7a5w.png)

Once connected, look for your website in the server file tree and enter its public folder, where you will find the usual WordPress folders such as "wp-content", "wp-admin" and "wp-includes".

![WordPress file structure](https://storage.crisp.chat/users/helpdesk/website/aa55333f4a914000/files-filezilla_1qhf8gc.png)

Rename the current folders you want to replace by adding "-old" at the end, so you can go back if needed, and move the backup files to the corresponding locations.

Once you have replaced the current files with the backup files, your website will return to its previous state and you will have completed the restore. Once you see that everything is working, you can delete the old folders and files you renamed with "-old".
