From 3abec72574d8c3d7962b4118ab37bd3715250970 Mon Sep 17 00:00:00 2001 From: Nish_ <120EE0980@nitrkl.ac.in> Date: Wed, 12 Mar 2025 17:53:35 +0530 Subject: [PATCH] add option borgmatic_unknown_unencrypted_repo_access_is_ok Signed-off-by: Nish_ <120EE0980@nitrkl.ac.in> --- README.md | 1 + defaults/main.yml | 1 + meta/argument_specs.yml | 3 +++ templates/config.yaml.j2 | 3 +++ 4 files changed, 8 insertions(+) diff --git a/README.md b/README.md index 903f77b..3a8d4bd 100644 --- a/README.md +++ b/README.md @@ -112,6 +112,7 @@ $ git clone https://github.com/borgbase/ansible-role-borgbackup.git roles/ansibl - `borgmatic_hooks`: Hooks to monitor your backups e.g. with [Healthchecks](https://healthchecks.io/). See [official documentation](https://torsion.org/borgmatic/docs/how-to/monitor-your-backups/) for more. - `borgmatic_timer`: If the variable is set, a timer is installed. A choice must be made between `cron` and `systemd`. - `borgmatic_relocated_repo_access_is_ok`: Bypass Borg error about a repository that has been moved. Defaults to `false` +- `borgmatic_unknown_unencrypted_repo_access_is_ok`: Bypass Borg error about a previously unknown unencrypted repository. Defaults to `false` - `borgmatic_store_atime`: Store atime into archive. Defaults to `true` - `borgmatic_store_ctime`: Store ctime into archive. Defaults to `true` - `borgmatic_version`: Force a specific borgmatic version to be installed diff --git a/defaults/main.yml b/defaults/main.yml index a928993..a738d75 100755 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -41,6 +41,7 @@ borgmatic_check_last: 3 borgmatic_store_atime: true borgmatic_store_ctime: true borgmatic_relocated_repo_access_is_ok: false +borgmatic_unknown_unencrypted_repo_access_is_ok: false borgmatic_version: ">=1.7.11" borg_venv_path: "/opt/borgmatic" diff --git a/meta/argument_specs.yml b/meta/argument_specs.yml index bfb8226..c0d208b 100644 --- a/meta/argument_specs.yml +++ b/meta/argument_specs.yml @@ -114,6 +114,9 @@ argument_specs: borgmatic_relocated_repo_access_is_ok: type: bool description: Bypass Borg error about a repository that has been moved. + borgmatic_unknown_unencrypted_repo_access_is_ok: + type: bool + description: Bypass Borg error about a previously unknown unencrypted repository. borg_retention_policy: keep_secondly: type: int diff --git a/templates/config.yaml.j2 b/templates/config.yaml.j2 index 86456c2..8f7e82d 100644 --- a/templates/config.yaml.j2 +++ b/templates/config.yaml.j2 @@ -112,6 +112,9 @@ storage: # Bypass Borg error about a repository that has been moved. relocated_repo_access_is_ok: {{ borgmatic_relocated_repo_access_is_ok }} + # Bypass Borg error about a previously unknown unencrypted repository. + unknown_unencrypted_repo_access_is_ok: {{ borgmatic_unknown_unencrypted_repo_access_is_ok }} + # Retention policy for how many backups to keep in each category. See # https://borgbackup.readthedocs.org/en/stable/usage.html#borg-prune for details. # At least one of the "keep" options is required for pruning to work.