Browse Source

Add documentation for "borgmatic restore --schema" (#375).

Dan Helfman 2 years ago
parent
commit
1c67db5d62
2 changed files with 13 additions and 1 deletions
  1. 2 1
      NEWS
  2. 11 0
      docs/how-to/backup-your-databases.md

+ 2 - 1
NEWS

@@ -1,6 +1,7 @@
 1.7.13.dev0
 1.7.13.dev0
  * #375: Restore particular PostgreSQL schemas from a database dump via "borgmatic restore --schema"
  * #375: Restore particular PostgreSQL schemas from a database dump via "borgmatic restore --schema"
-   flag.
+   flag. See the documentation for more information:
+   https://torsion.org/borgmatic/docs/how-to/backup-your-databases/#restore-particular-schemas
 
 
 1.7.12
 1.7.12
  * #413: Add "log_file" context to command hooks so your scripts can consume the borgmatic log file.
  * #413: Add "log_file" context to command hooks so your scripts can consume the borgmatic log file.

+ 11 - 0
docs/how-to/backup-your-databases.md

@@ -324,6 +324,17 @@ includes any combined dump file named "all" and any other individual database
 dumps found in the archive.
 dumps found in the archive.
 
 
 
 
+### Restore particular schemas
+
+<span class="minilink minilink-addedin">New in version 1.7.13</span> With
+PostgreSQL and MongoDB, you can limit the restore to a single schema found
+within the database dump:
+
+```bash
+borgmatic restore --archive latest --database users --schema tentant1
+```
+
+
 ### Limitations
 ### Limitations
 
 
 There are a few important limitations with borgmatic's current database
 There are a few important limitations with borgmatic's current database