> Source: https://docs.cyberelements.io/bastion/4.7/hu/Usage/Reference/SystemConsole/SystemBackup/

# Backup

The **Backup** module generates a backup of the platform, downloads it, and restores one. It is intended for an administrator securing a configuration before an operation, or restoring a platform on a new server.

The window carries two independent groups: **Backup generation** and **Backup restoration**.

ⓘ Opened from the system console, the module offers two options that the administration console does not: see *Options specific to the system console* below.

---

## Generating a backup

| Field | Description |
|---|---|
| **Do not include sensitive data (passwords, password vault content)** | Produces a backup of the configuration alone. |
| **Generate backup** | Starts the generation. |
| **Download last backup** | Downloads the last generated backup. Stays disabled while none exists. |

Next to the buttons, a line reports the state of the last generation.

| Displayed | Meaning |
|---|---|
| **No backup available** | No backup has been generated. |
| **Backup generation in progress** | The generation is running. |
| **Backup generated on** | Followed by the date and time of the last successful backup. |
| **A backup is available on the other server** | In a cluster, the backup was generated on the other node. |
| **Backup generation error** | The generation failed. |

> **What a backup without sensitive data does not contain**
>
> Ticking the option displays the notice: *This backup is intended for recording your platform configuration. It contains neither passwords nor the password vault.* Such a backup records a configuration: it does **not** allow a platform to be restored to a working state on its own.

## Restoring a backup

> **The platform becomes unavailable**
>
> The group opens on this warning: restoring a backup makes the platform **unavailable for a few tens of seconds**, and **all users are disconnected**.

| Field | Description |
|---|---|
| **Migrate databases from earlier versions (PostgreSQL only)** | Migrates databases coming from an earlier version. |
| **Backup file** | Mandatory. The backup file to restore. |
| **Restore backup** | Starts the restoration. |

A line reports the state of the last restoration: **Backup restore in progress**, **Backup restored on** followed by the date, or **Backup restore failure**.

> **Restoring a backup without sensitive data**
>
> If the file carries no sensitive data, a confirmation warns that **the missing vaults and passwords will disable the features that rely on them, including portal access**. The restoration only proceeds once confirmed.

## Options specific to the system console

Two check boxes are only offered when the module is opened from the system console.

| Field | Description |
|---|---|
| **Restore database connection settings (databasesettings.ini)** | Restores the database connection settings along with the data. |
| **Create databases if necessary (PostgreSQL only)** | Creates the databases that do not yet exist on the target server. |

> **Microsoft SQL Server is handled apart**
>
> When the databases are Microsoft SQL Server, two notices appear. On generation: the databases **are backed up on the SQL servers themselves**, in the default folder they define. On restoration: the operation **does not affect** the Microsoft SQL Server databases. Restoring those is left to the administrator.
