From 7e1c7246db6b2275e4bada59ff5f74e29f42dfca Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Thu, 16 Mar 2023 19:55:10 +0100 Subject: [PATCH] Improved Plan B scripts. --- Plan Borg/models/model-conf-rsync.yaml | 29 ++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/Plan Borg/models/model-conf-rsync.yaml b/Plan Borg/models/model-conf-rsync.yaml index e69de29..9abca2a 100644 --- a/Plan Borg/models/model-conf-rsync.yaml +++ b/Plan Borg/models/model-conf-rsync.yaml @@ -0,0 +1,29 @@ +location: + source_directories: + - /var/backups/borg/mirrors/ + + repositories: + - /var/backups/borg/.repo + +storage: + encryption_passcommand: 'cat /srv/borg/.borg-passphrase' + archive_name_format: '{now:%Y-%m-%dT%H:%M}' + borg_cache_directory: /var/backups/borg/mirrors/.cache + +retention: + !include /etc/borgmatic/retention.yaml + +consistency: + checks: + - repository + - archives + prefix: '2' # This foo line is required with old borgmatic version. + +output: + color: false + +hooks: + before_backup: + - echo "== rsync starting…" + - /usr/bin/rsync -av -e ssh --update --delete --stats --delete-after --exclude '/dev/' --exclude '/proc/' --exclude '/sys/' root@:/ /var/backups/borg/mirrors// + - echo "== rsync done."