diff --git a/README.md b/README.md index edb3336..22451cc 100644 --- a/README.md +++ b/README.md @@ -114,6 +114,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 b3e5872..ad45b45 100755 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -43,6 +43,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 11265c9..d327939 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.