constants: backup_prefix: home <<: !include /etc/borgmatic/pw-config.yaml source_directories: - /nfs/home - /root - /etc repositories: - path: ssh://de2880@de2880.rsync.net/./pw-home label: backupserver exclude_patterns: - "*.pyc" - "/nfs/home/*/.cache" - "/root/*/.cache" - "*/.vim*.tmp" - /etc/ssl encryption_passphrase: invisible-man # should be in common config but Substitution does not happen there archive_name_format: '{backup_prefix}-{now:%Y-%m-%d_%H:%M}' keep_daily: 7 keep_weekly: 5 # Substitution just doesn't work right in this case. If it did, I # could put this body of configuration into the common core and just # use a substitution to make it unique. before_backup: - echo "Starting a {backup_prefix} backup." before_prune: - echo "Starting {backup_prefix} pruning." before_check: - echo "Starting {backup_prefix} checks." after_backup: - echo "Finished a {backup_prefix} backup." after_prune: - echo "Finished {backup_prefix} pruning." after_check: - echo "Finished {backup_prefix} checks." on_error: - echo "Error during {backup_prefix} prune/compact/create/check." # ntfy: # topic: not register # server: https://ntfy.sh # start: # title: "{backup_prefix} backup started" # # message: # tags: borgmatic # priority: min # finish: # title: "{backup_prefix} backup completed successfully" # # message: Nice! # tags: borgmatic,+1 # priority: min # fail: # title: "{backup_prefix} backup failed" # # message: You should probably fix it # tags: borgmatic,-1,skull # priority: max # states: # - start # - finish # - fail