# How to back up your database

BoltAI stores all your data in a SQLite database on your machine. Don't forget to take backup regularly to prevent data loss.

### Backup your data

In BoltAI, go to **Settings > Advanced > Data Management**. Click "Take a full backup..." and save the database file to a safe location.

<figure><img src="/files/vFYXqF8SqrHLcW4VTWn2" alt=""><figcaption><p>Take a full database backup</p></figcaption></figure>

### How to restore your database

Restoring your database is trickier. First, locate the database on your machine.

BoltAI store your data in the following location:

**For Standalone version:**

* Find `db.sqlite3`in `~/Library/Application Support/co.podzim.BoltGPT`

**For Setapp version:**

* Your database is stored in `~/Library/Application Support/co.podzim.BoltGPT-setapp`

1. Quit BoltAI
2. Replace db.sqlite3 with the database file you've backed up
3. Re-open BoltAI


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.boltai.com/docs/guides/how-to-back-up-your-database.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
