Commit graph

15 commits

Author SHA1 Message Date
Reynir Björnsson
948b0baf44 Restic: handle incomplete backups as success
If we don't have a POST_COMMANDS_INCOMPLETE then POST_COMMANDS_FAILURE
will trigger. This may be a bit misleading as we are doing backups of
live systems and it is almost expected that a file will change or
disappear during backup. Instead, we report backup as "up" with a
message that the backup was incomplete.
2025-02-12 09:42:07 +01:00
Reynir Björnsson
0263b2bbb8 restic-mail: undo debugging
During debugging the script I inserted "echo" and "cat". Then I removed
the "echo" but forgot the "cat". This breaks stuff. Undo cat.
2025-02-12 09:01:44 +01:00
Reynir Björnsson
df13e8178f Fixup message-id 2025-02-11 11:01:02 +01:00
Reynir Björnsson
ec7c248528 Improve restic failure mail
mailu antispam reported an invalid date header and a missing message-id
header.
2025-02-11 10:54:41 +01:00
Reynir Björnsson
4ffbbe9ce7 Make curl silent in restic scripts
Printing curl progress is just silly.
2025-02-11 08:36:18 +01:00
Reynir Björnsson
581cc4ea04 restic: also send mail to reynir on failure
It seems our own mailu instance is unhappy with postfix sending
ourselves these backup notifications.
2025-02-11 08:34:36 +01:00
Reynir Björnsson
9a03f71252 Fix another instance of domain=>remote_domain 2024-03-08 10:57:32 +01:00
Reynir Björnsson
a0988aa05d Rename variables to avoid name clash 2024-03-06 13:38:46 +01:00
Reynir Björnsson
4f129168c6 Add uptime-kuma push url for restic 2024-03-05 09:55:04 +01:00
Reynir Björnsson
d468e49830 . 2024-03-04 14:15:52 +01:00
Reynir Björnsson
ae497f0284 . 2024-03-04 13:30:58 +01:00
Reynir Björnsson
ac64706fcb . 2024-03-04 12:48:51 +01:00
Reynir Björnsson
9fb16d3a69 Address comments by @samsapti
We need to use ':' instead of '=' in yaml for environment variable
bindings.
Spurious tab where it should be all spaces
Rename variable mail-from to mail_from to align with existing code style
Nit: change email addresses
2024-03-04 09:20:04 +01:00
Reynir Björnsson
6982d0feaa Restic: send an email on backup failure 2024-03-03 21:17:48 +01:00
Sam Al-Sapti
4e6f18311d
Use subfolders for templates as well 2023-08-05 19:35:55 +02:00