From 61c7b8f13cf6a3c905cd82cdc7dac6b5cb8dd421 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Mon, 27 Mar 2023 15:54:55 -0700 Subject: [PATCH] Add optional repository labels so you can select a repository via "--repository yourlabel" at the command-line (#635). --- NEWS | 3 +++ README.md | 7 ++++--- docs/how-to/make-backups-redundant.md | 5 ++--- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/NEWS b/NEWS index 472eef4..ed2bafc 100644 --- a/NEWS +++ b/NEWS @@ -9,6 +9,9 @@ * #618: Add support for BORG_FILES_CACHE_TTL environment variable via "borg_files_cache_ttl" option in borgmatic's storage configuration. * #623: Fix confusing message when an error occurs running actions for a configuration file. + * #635: Add optional repository labels so you can select a repository via "--repository yourlabel" + at the command-line. See the configuration reference for more information: + https://torsion.org/borgmatic/docs/reference/configuration/ * #649: Add documentation on backing up a database running in a container: https://torsion.org/borgmatic/docs/how-to/backup-your-databases/#containers * #655: Fix error when databases are configured and a source directory doesn't exist. diff --git a/README.md b/README.md index 27fc6cd..eb827ae 100644 --- a/README.md +++ b/README.md @@ -24,9 +24,10 @@ location: # Paths of local or remote repositories to backup to. repositories: - - ssh://1234@usw-s001.rsync.net/./backups.borg - - ssh://k8pDxu32@k8pDxu32.repo.borgbase.com/./repo - - /var/lib/backups/local.borg + - path: ssh://k8pDxu32@k8pDxu32.repo.borgbase.com/./repo + label: borgbase + - path: /var/lib/backups/local.borg + label: local retention: # Retention policy for how many backups to keep. diff --git a/docs/how-to/make-backups-redundant.md b/docs/how-to/make-backups-redundant.md index f77780f..71510fc 100644 --- a/docs/how-to/make-backups-redundant.md +++ b/docs/how-to/make-backups-redundant.md @@ -20,9 +20,8 @@ location: # Paths of local or remote repositories to backup to. repositories: - - ssh://1234@usw-s001.rsync.net/./backups.borg - - ssh://k8pDxu32@k8pDxu32.repo.borgbase.com/./repo - - /var/lib/backups/local.borg + - path: ssh://k8pDxu32@k8pDxu32.repo.borgbase.com/./repo + - path: /var/lib/backups/local.borg ``` When you run borgmatic with this configuration, it invokes Borg once for each