|
@@ -3,9 +3,19 @@
|
|
|
|
|
|
restic snapshots &>/dev/null || restic init
|
|
|
|
|
|
+
|
|
|
+/root/restic/notify-prom-status.sh start
|
|
|
+
|
|
|
|
|
|
|
|
|
restic backup $RESTIC_BACKUP_ARGS $RESTIC_BACKUP_FOLDERS
|
|
|
|
|
|
+case $? in
|
|
|
+ 0) /root/restic/notify-prom-status.sh stop
|
|
|
+ /root/restic/notify-prom-stats.sh ;;
|
|
|
+ 3) /root/restic/notify-prom-status.sh incomplete ;;
|
|
|
+ 1|*) /root/restic/notify-prom-status.sh fail ;;
|
|
|
+esac
|
|
|
+
|
|
|
|
|
|
restic forget $RESTIC_FORGET_ARGS
|