infrastructure/roles/backup/templates/backup.sh.j2

13 lines
239 B
Text
Raw Normal View History

2024-09-26 22:02:36 +00:00
#!/usr/bin/env bash
2024-10-05 23:59:46 +00:00
{{ backup_hc_command_start }}
if autorestic backup -av --ci
then
{{ backup_hc_command_success }}
2024-10-07 19:24:48 +00:00
{{ backup_gatus_command_success }}
2024-10-05 23:59:46 +00:00
else
{{ backup_hc_command_fail }}
2024-10-07 19:24:48 +00:00
{{ backup_gatus_command_fail }}
2024-10-05 23:59:46 +00:00
fi