> For the complete documentation index, see [llms.txt](https://docs.boltai.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.boltai.com/docs/guides/how-to-back-up-your-database.md).

# 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
