Update docs with a few more "path:" repositories references (#635).

This commit is contained in:
Dan Helfman 2023-03-27 21:49:31 -07:00
parent 0e3da7be63
commit 489ae080e5
3 changed files with 16 additions and 4 deletions

View File

@ -49,9 +49,12 @@ location:
- /home - /home
repositories: repositories:
- /mnt/removable/backup.borg - path: /mnt/removable/backup.borg
``` ```
<span class="minilink minilink-addedin">Prior to version 1.7.10</span> Omit
the `path:` portion of the `repositories` list.
Then, write a `before_backup` hook in that same configuration file that uses Then, write a `before_backup` hook in that same configuration file that uses
the external `findmnt` utility to see whether the drive is mounted before the external `findmnt` utility to see whether the drive is mounted before
proceeding. proceeding.
@ -79,13 +82,16 @@ location:
- /home - /home
repositories: repositories:
- ssh://me@buddys-server.org/./backup.borg - path: ssh://me@buddys-server.org/./backup.borg
hooks: hooks:
before_backup: before_backup:
- ping -q -c 1 buddys-server.org > /dev/null || exit 75 - ping -q -c 1 buddys-server.org > /dev/null || exit 75
``` ```
<span class="minilink minilink-addedin">Prior to version 1.7.10</span> Omit
the `path:` portion of the `repositories` list.
Or to only run backups if the battery level is high enough: Or to only run backups if the battery level is high enough:
```yaml ```yaml

View File

@ -24,6 +24,9 @@ location:
- path: /var/lib/backups/local.borg - path: /var/lib/backups/local.borg
``` ```
<span class="minilink minilink-addedin">Prior to version 1.7.10</span> Omit
the `path:` portion of the `repositories` list.
When you run borgmatic with this configuration, it invokes Borg once for each When you run borgmatic with this configuration, it invokes Borg once for each
configured repository in sequence. (So, not in parallel.) That means—in each configured repository in sequence. (So, not in parallel.) That means—in each
repository—borgmatic creates a single new backup archive containing all of repository—borgmatic creates a single new backup archive containing all of

View File

@ -145,15 +145,18 @@ like this:
```yaml ```yaml
location: location:
repositories: repositories:
- original.borg - path: original.borg
``` ```
<span class="minilink minilink-addedin">Prior to version 1.7.10</span> Omit
the `path:` portion of the `repositories` list.
Change it to a new (not yet created) repository path: Change it to a new (not yet created) repository path:
```yaml ```yaml
location: location:
repositories: repositories:
- upgraded.borg - path: upgraded.borg
``` ```
Then, run the `rcreate` action (formerly `init`) to create that new Borg 2 Then, run the `rcreate` action (formerly `init`) to create that new Borg 2