Skip to content

Commit 3875aee

Browse files
authored
docs(admin): update backup guide to use .backup command (#3737)
Signed-off-by: Wei Zhang <[email protected]>
1 parent b270b87 commit 3875aee

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

website/docs/administration/backup.md

+15-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,21 @@ By default, Tabby stores all its data in the `$HOME/.tabby` directory. However,
1212

1313
## Database Backup
1414

15-
Tabby uses SQLite for data storage. You can back up the database by simply copying the file to a secure location. The database is located at `$HOME/.tabby/ee/db.sqlite` by default.
15+
Tabby uses SQLite for data storage, with the default database located at `$HOME/.tabby/ee/db.sqlite`.
16+
To conduct backup operations, you'll require the SQLite CLI.
17+
18+
1. Access the Tabby database using the SQLite CLI:
19+
```bash
20+
sqlite3 $HOME/.tabby/ee/db.sqlite
21+
```
22+
2. Once inside the SQLite CLI, execute the `.backup` command to generate a backup of the database:
23+
```bash
24+
.backup backup_database.db
25+
```
26+
27+
Subsequently, a backup database named `backup_database.db` will be located in your current working directory.
28+
29+
For additional information, please consult the [SQLite Backup API](https://www.sqlite.org/backup.html).
1630

1731
## Event Logs Backup
1832

0 commit comments

Comments
 (0)