diff --git a/NEWS b/NEWS
index 60e61f0..39cb6c2 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+1.7.9.dev0
+ * #295: Add a SQLite database dump/restore hook.
+
1.7.8
* #620: With the "create" action and the "--list" ("--files") flag, only show excluded files at
verbosity 2.
diff --git a/README.md b/README.md
index 402a727..3b92dd3 100644
--- a/README.md
+++ b/README.md
@@ -67,6 +67,7 @@ borgmatic is powered by [Borg Backup](https://www.borgbackup.org/).
+
diff --git a/borgmatic/hooks/sqlite.py b/borgmatic/hooks/sqlite.py
index 637e7e9..9e7ecf3 100644
--- a/borgmatic/hooks/sqlite.py
+++ b/borgmatic/hooks/sqlite.py
@@ -106,7 +106,7 @@ def restore_database_dump(database_config, log_prefix, location_config, dry_run,
try:
os.remove(database_path)
- logger.warn(f'{log_prefix}: Removed existing SQLite database at {database_path}')
+ logger.warning(f'{log_prefix}: Removed existing SQLite database at {database_path}')
except FileNotFoundError: # pragma: no cover
pass
diff --git a/docs/how-to/backup-your-databases.md b/docs/how-to/backup-your-databases.md
index 3e1cf2a..49388b9 100644
--- a/docs/how-to/backup-your-databases.md
+++ b/docs/how-to/backup-your-databases.md
@@ -16,7 +16,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:
+MongoDB database, and a SQLite database:
```yaml
hooks:
@@ -29,7 +29,7 @@ hooks:
- name: messages
sqlite_databases:
- name: mydb
- path: /var/lib/sqlite3/mydb.sqlite
+ path: /var/lib/sqlite3/mydb.sqlite
```
As part of each backup, borgmatic streams a database dump for each configured
@@ -160,11 +160,11 @@ bring back any missing configuration files in order to restore a database.
## Supported databases
-As of now, borgmatic supports PostgreSQL, MySQL/MariaDB, MongoDB and SQLite databases
-directly. But see below about general-purpose preparation and cleanup hooks as
-a work-around with other database systems. Also, please [file a
-ticket](https://torsion.org/borgmatic/#issues) for additional database systems
-that you'd like supported.
+As of now, borgmatic supports PostgreSQL, MySQL/MariaDB, MongoDB, and SQLite
+databases directly. But see below about general-purpose preparation and
+cleanup hooks as a work-around with other database systems. Also, please [file
+a ticket](https://torsion.org/borgmatic/#issues) for additional database
+systems that you'd like supported.
## Database restoration
diff --git a/docs/static/sqlite.png b/docs/static/sqlite.png
new file mode 100644
index 0000000..6b3edd5
Binary files /dev/null and b/docs/static/sqlite.png differ
diff --git a/setup.py b/setup.py
index 0ef85a7..7ddb811 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,6 @@
from setuptools import find_packages, setup
-VERSION = '1.7.8'
+VERSION = '1.7.9.dev0'
setup(