Ver código fonte

In the documentation, mention what version of borgmatic introduced SQLite support.

Dan Helfman 2 anos atrás
pai
commit
22498ebd4c
1 arquivos alterados com 17 adições e 2 exclusões
  1. 17 2
      docs/how-to/backup-your-databases.md

+ 17 - 2
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
 Fortunately, borgmatic includes built-in support for creating database dumps
 prior to running backups. For example, here is everything you need to dump and
 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
 ```yaml
 hooks:
 hooks:
@@ -25,8 +24,22 @@ hooks:
         - name: orders
         - name: orders
     mysql_databases:
     mysql_databases:
         - name: posts
         - name: posts
+```
+
+<span class="minilink minilink-addedin">New in version 1.5.22</span> You can
+also dump MongoDB databases. For example:
+
+```yaml
+hooks:
     mongodb_databases:
     mongodb_databases:
         - name: messages
         - name: messages
+```
+
+<span class="minilink minilink-addedin">New in version 1.7.9</span>
+Additionally, you can dump SQLite databases. For example:
+
+```yaml
+hooks:
     sqlite_databases:
     sqlite_databases:
         - name: mydb
         - name: mydb
           path: /var/lib/sqlite3/mydb.sqlite
           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
 Note that you may need to use a `username` of the `postgres` superuser for
 this to work with PostgreSQL.
 this to work with PostgreSQL.
 
 
+The SQLite hook in particular does not consider "all" a special database name.
+
 <span class="minilink minilink-addedin">New in version 1.7.6</span> With
 <span class="minilink minilink-addedin">New in version 1.7.6</span> With
 PostgreSQL and MySQL, you can optionally dump "all" databases to separate
 PostgreSQL and MySQL, you can optionally dump "all" databases to separate
 files instead of one combined dump file, allowing more convenient restores of
 files instead of one combined dump file, allowing more convenient restores of