backupscript/config.example.yml
Jens True 37049ba6f4
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Template for error notification.
2023-08-29 09:44:05 +00:00

27 lines
857 B
YAML

notification:
- type: Ntfy
domain: https://ntfy.jcktrue.dk
topic: testing
log: output.log
rclone:
options:
bwlimit: 6M
backup:
- title: Example
source: temp/source
destination: temp/destination
templates:
notify: |
{{ config.title }}
From {{ config.source }} to {{ config.destination }}
Backup started: {{ start | date }}
Source size: {{ source_size | formatBytes}}
Destination before: {{ destination_size_before | formatBytes}}
Destination after: {{ destination_size_after | formatBytes}}
Destination change : {{ (destination_size_after - destination_size_before) | formatBytes}}
Backup completed: {{ end | date }}
error: |
{{ config.title }}
Error {{ config.source }} to {{ config.destination }}
{{ exception }}