From 22498ebd4cc8663a27656fa03c352a11a1bd2b41 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Sat, 4 Mar 2023 10:50:28 -0800 Subject: [PATCH] In the documentation, mention what version of borgmatic introduced SQLite support. --- docs/how-to/backup-your-databases.md | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/docs/how-to/backup-your-databases.md b/docs/how-to/backup-your-databases.md index 49388b9a..602f6488 100644 --- a/docs/how-to/backup-your-databases.md +++ b/docs/how-to/backup-your-databases.md @@ -15,8 +15,7 @@ consistent snapshot that is more suited for backups. Fortunately, borgmatic includes built-in support for creating database dumps prior to running backups. For example, here is everything you need to dump and -backup a couple of local PostgreSQL databases, a MySQL/MariaDB database, a -MongoDB database, and a SQLite database: +backup a couple of local PostgreSQL databases and a MySQL/MariaDB database. ```yaml hooks: @@ -25,8 +24,22 @@ hooks: - name: orders mysql_databases: - name: posts +``` + +New in version 1.5.22 You can +also dump MongoDB databases. For example: + +```yaml +hooks: mongodb_databases: - name: messages +``` + +New in version 1.7.9 +Additionally, you can dump SQLite databases. For example: + +```yaml +hooks: sqlite_databases: - name: mydb path: /var/lib/sqlite3/mydb.sqlite @@ -105,6 +118,8 @@ hooks: Note that you may need to use a `username` of the `postgres` superuser for this to work with PostgreSQL. +The SQLite hook in particular does not consider "all" a special database name. + New in version 1.7.6 With PostgreSQL and MySQL, you can optionally dump "all" databases to separate files instead of one combined dump file, allowing more convenient restores of