# Backing up and restoring the database definition

From the database **Settings** tab, you can:

* Back up the rule-based database configuration to a JSON file.
* Restore the database configuration from a JSON file to restore that.

The configuration includes the tables, columns, and their settings.

&#x20;To display the **Settings** tab, click the database name.

## Backing up the database configuration <a href="#database-back-up" id="database-back-up"></a>

To back up the database, click **Backup**, then select **Back up to JSON**.

<figure><img src="https://4109733485-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmoU4gTR9LxlzHeWmQCUZ%2Fuploads%2FgvDUM47YqLBW1y8q3oUT%2FDatabase_BackupDropdown.png?alt=media&#x26;token=99d6b9d3-1a1e-4633-a17d-0ce51ea5143d" alt=""><figcaption><p>Backup dropdown list for a database</p></figcaption></figure>

On the JSON configuration panel, to copy the JSON, click **Copy to Clipboard**.

## Restoring database configuration from a JSON file <a href="#database-restore" id="database-restore"></a>

To restore the database configuration from a JSON file:

1. Click **Backup**, then select **Restore from JSON**.
2. On the JSON configuration panel, paste the JSON configuration.
3. Click **Restore**.
