> 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="https://3493584844-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FynYW2xZqA52spY7XgWis%2Fuploads%2FuxK6C06qkVSbXkN5NmTr%2FCleanShot%202024-08-23%20at%2012.59.20%402x.jpeg?alt=media&amp;token=db52b46b-8238-4151-8ff6-a869ec735d4c" 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
