diff --git a/README.md b/README.md index f74e9f7..6354aef 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ $ git clone https://github.com/borgbase/ansible-role-borgbackup.git roles/borgba ### Optional Arguments - `borg_encryption_passphrase`: Password to use for repokey or keyfile. Empty if repo is unencrypted. - `borgmatic_config_name`: Name to use for the borgmatic config file. Defaults to `config.yml` -- `borgmatic_large_repo`: Does repo-checking on a weekly basis instead of daily. Good for repos with 100GB+ size. +- `borgmatic_large_repo`: Less frequent, monthly repo checking. Defaults to `true` - `borgmatic_failure_command`: Run this command when an error occurs. E.g. `curl -s -F "token=xxx" -F "user=xxx" -F "message=Error during backup" https://api.pushover.net/1/messages.json` - `borgmatic_before_backup_command`: Run this command before the backup. E.g. `dump-a-database /to/file.sql` - `borgmatic_after_backup_command`: Run this command after the backup. E.g. `rm /to/file.sql` diff --git a/defaults/main.yml b/defaults/main.yml index e64c680..7779e5c 100755 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -2,7 +2,7 @@ borg_encryption_passphrase: '' borg_exclude_patterns: [] borgmatic_config_name: config.yaml -borgmatic_large_repo: false +borgmatic_large_repo: true borgmatic_failure_command: - echo "`date` - Error while creating a backup." borgmatic_before_backup_command: [] diff --git a/tasks/main.yml b/tasks/main.yml index 72ebbf3..5084822 100755 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -93,7 +93,7 @@ minute: "{{ 59 | random }}" user: "root" cron_file: borgmatic - job: "/usr/local/bin/borgmatic -c /etc/borgmatic/{{ borgmatic_config_name }}" + job: "/usr/local/bin/borgmatic -c /etc/borgmatic/{{ borgmatic_config_name }} --check" when: borgmatic_large_repo - name: Add cron-job for borgmatic (normal-sized repo)