> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cloosphere.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Database

> Back up and migrate system settings (Config) and the database, and export all chats.

<Info>Admin › Settings › Database</Info>

<Note>
  This page provides **backup/migration of system settings and the database**. It differs from [Database (DbSphere)](/en/workspace/database), which handles SQL data in the workspace.
</Note>

Export or import admin settings (Config) and the database as files for **cross-environment migration and backup**.

<Frame caption="Admin > Settings > Database — Config import/export and backup">
  <img src="https://mintcdn.com/cloocus/3CYTE_uN2N3A4joq/images/admin/settings-database.png?fit=max&auto=format&n=3CYTE_uN2N3A4joq&q=85&s=ba977f71919bc74abe7bed2b1a1f87b3" alt="Database settings" width="2880" height="1800" data-path="images/admin/settings-database.png" />
</Frame>

***

## Features

| Feature                          | Description                                    |
| -------------------------------- | ---------------------------------------------- |
| **Import Config from JSON file** | Import and apply an exported settings JSON     |
| **Export Config to JSON file**   | Save the entire current admin settings as JSON |
| **Download database**            | Back up the database to a file                 |
| **Export all chats (all users)** | Bulk-export the chat history of all users      |

<Note>
  The last two items (**Download database** · **Export all chats**) can be hidden with the `ENABLE_ADMIN_EXPORT` server environment variable. When set to `false` the buttons are not shown even to admins (default `true`).
</Note>

***

<Warning>
  Exported Config/database may contain **sensitive settings and secrets** (connection keys, tokens, etc.). Store files securely and import them only into trusted environments. For how secrets are encrypted, see the [Encryption](/en/admin/settings/encryption) settings.
</Warning>

<Note>
  Database/Redis **connection strings** (`DATABASE_URL`, `REDIS_URL`, `DATABASE_SCHEMA`) and multi-worker / scheduled-backup policy are configured through server **environment variables**, not the GUI → see the [Deployment checklist](/en/admin/deployment-checklist).
</Note>
