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

This commit is contained in:
Dan Helfman 2023-04-14 16:40:58 -07:00
parent 96d4a8ee45
commit 1c67db5d62
2 changed files with 13 additions and 1 deletions

3
NEWS
View file

@ -1,6 +1,7 @@
1.7.13.dev0
* #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
* #413: Add "log_file" context to command hooks so your scripts can consume the borgmatic log file.

View file

@ -324,6 +324,17 @@ includes any combined dump file named "all" and any other individual database
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
There are a few important limitations with borgmatic's current database