mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
cloud-backup: send notification on error and do exit
This commit is contained in:
parent
38a3ef9552
commit
2be4a2ce98
1 changed files with 3 additions and 1 deletions
|
@ -34,5 +34,7 @@
|
||||||
"Size: " . $Cloud->"size" . "\n" . \
|
"Size: " . $Cloud->"size" . "\n" . \
|
||||||
"Download key: " . $Cloud->"secret-download-key") "" "true";
|
"Download key: " . $Cloud->"secret-download-key") "" "true";
|
||||||
} on-error={
|
} on-error={
|
||||||
$LogPrintExit error ("Failed uploading backup for " . $Identity . " to cloud.") false;
|
$SendNotification ([ $SymbolForNotification "warning-sign" ] . "Cloud backup failed") \
|
||||||
|
("Failed uploading backup for " . $Identity . " to cloud!\n\n" . [ $DeviceInfo ]);
|
||||||
|
$LogPrintExit error ("Failed uploading backup for " . $Identity . " to cloud!") true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue