aboutsummaryrefslogtreecommitdiffstats
path: root/cloud-backup
diff options
context:
space:
mode:
Diffstat (limited to 'cloud-backup')
-rw-r--r--cloud-backup5
1 files changed, 3 insertions, 2 deletions
diff --git a/cloud-backup b/cloud-backup
index e4e527b..598a500 100644
--- a/cloud-backup
+++ b/cloud-backup
@@ -6,6 +6,7 @@
# upload backup to MikroTik cloud
# https://git.eworm.de/cgit/routeros-scripts/about/doc/cloud-backup.md
+:local 0 "cloud-backup";
:global GlobalFunctionsReady;
:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }
@@ -13,7 +14,7 @@
:global Identity;
:global DeviceInfo;
-:global LogPrintExit;
+:global LogPrintExit2;
:global SendNotification;
:global SymbolForNotification;
:global WaitFullyConnected;
@@ -42,5 +43,5 @@ $WaitFullyConnected;
} on-error={
$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;
+ $LogPrintExit2 error $0 ("Failed uploading backup for " . $Identity . " to cloud!") true;
}