Commit Graph

24 Commits

Author SHA1 Message Date
Max Konrädi
97c74a94a7 Revert "feat: add restic check after forget with prune"
This reverts commit 5f2b322e54.
2025-08-13 15:15:37 +02:00
Max Konrädi
5f2b322e54 feat: add restic check after forget with prune 2025-08-13 13:43:48 +02:00
Marcio Zimbres
bf2dabd2c7 Added option to set the target folder backup 2023-12-07 14:02:36 -03:00
Tobias Kaupat
a018fdc2ec Fix mailx setup for latest restic image that is based on latest alpine
- mailx is known as mail in alpine
2023-08-05 23:54:01 +02:00
Kevin Köllmann
f308eca25b Fix minor typos in log output of backup.sh 2021-05-05 20:15:34 +02:00
Tobias Kaupat
0c32b273e9 Merge branch 'master' into add-webhook 2020-12-27 14:28:14 +01:00
Erfan Sahafnejad
5110483351 Add Microsoft Teams notifier 2020-12-27 14:26:14 +01:00
Esa Nuuros
4d2034ccd4 Pass backup exit code to post-backup.sh hook
We can write our own hook that can choose what to do based on the exit code.
For example, we may only want to sent notifications on failures.
2020-10-26 15:13:37 +02:00
Esa Nuuros
265c33f2d9 Do not exit on backup failure
Exit caused email notifications to be not sent when backup fails. We especially
want to be notified if a backup fails.
2020-10-26 15:12:19 +02:00
Tobias Kaupat
925930000c use exit instead of kill to end script 2020-08-06 08:44:18 +02:00
Lucas Breton
46df366e4c Add pre and post backup hooks 2020-08-06 08:39:07 +02:00
mrclschstr
29e46cad2c Implemented a simple mail notification after backups using mailx. This can be used to send mail via an external SMTP server. Syntax uniformity is questionable. 2019-07-25 14:49:34 +02:00
Tobias Kaupat
d3c851da27 Update backup.sh
log restic repository and AWS ID
2019-02-06 15:55:19 +01:00
David Arnold
918b7f656a [IMP] kill service if sync fails
This, used in combination with a scheduler, clearly marks "problem" to the
cluster operator
2018-02-11 16:50:04 -05:00
David Arnold
bf045a4be3 [CLEAN] bakcup is already git update-index --chmod=+xed 2018-02-11 16:50:04 -05:00
Stas
d0cea127a5 add RESTIC_JOB_ARGS env variable to specify extra restic options 2018-02-03 21:51:17 +01:00
Tobias Kaupat
e5f81c232e Update backup.sh 2018-01-29 22:31:36 +01:00
lobaro-demo
8ba9fb4a8f Do not run spearate prune, but let the user use --prune in RESTIC_FORGET_ARGS 2017-04-03 13:22:18 +00:00
lobaro-demo
ca25a281d3 Execute prune after forget, Improove logging
- Log start and end with total duration
- Copy backup-last.log to backup-error-last.log after fail
2017-02-14 09:44:42 +00:00
lobaro-demo
531855c7ec Remove redundant echo to cron log 2017-01-17 16:12:07 +00:00
lobaro-demo
882b98003a Correct return code for forget command 2016-11-29 10:01:50 +00:00
Tobias Kaupat
ba598d539f Cleanup logs 2016-11-28 19:46:51 +01:00
Tobias Kaupat
d3732519b9 Support RESTIC_FORGET_ARGS 2016-11-08 00:32:29 +01:00
Tobias Kaupat
f181ceeca8 Initial restic docker setup 2016-11-07 23:21:19 +01:00