mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
backup-cloud: use $FormatLine
This commit is contained in:
parent
fb12aabf3e
commit
31553f86a6
1 changed files with 4 additions and 3 deletions
|
@ -17,6 +17,7 @@
|
||||||
:global Identity;
|
:global Identity;
|
||||||
|
|
||||||
:global DeviceInfo;
|
:global DeviceInfo;
|
||||||
|
:global FormatLine;
|
||||||
:global LogPrintExit2;
|
:global LogPrintExit2;
|
||||||
:global RandomDelay;
|
:global RandomDelay;
|
||||||
:global ScriptFromTerminal;
|
:global ScriptFromTerminal;
|
||||||
|
@ -47,9 +48,9 @@ $WaitFullyConnected;
|
||||||
subject=([ $SymbolForNotification "floppy-disk,cloud" ] . "Cloud backup"); \
|
subject=([ $SymbolForNotification "floppy-disk,cloud" ] . "Cloud backup"); \
|
||||||
message=("Uploaded backup for " . $Identity . " to cloud.\n\n" . \
|
message=("Uploaded backup for " . $Identity . " to cloud.\n\n" . \
|
||||||
[ $DeviceInfo ] . "\n\n" . \
|
[ $DeviceInfo ] . "\n\n" . \
|
||||||
"Name: " . $Cloud->"name" . "\n" . \
|
[ $FormatLine "Name" ($Cloud->"name") ] . "\n" . \
|
||||||
"Size: " . $Cloud->"size" . " B (" . ($Cloud->"size" / 1024) . " KiB)\n" . \
|
[ $FormatLine "Size" ($Cloud->"size" . " B (" . ($Cloud->"size" / 1024) . " KiB)") ] . "\n" . \
|
||||||
"Download key: " . $Cloud->"secret-download-key"); silent=true });
|
[ $FormatLine "Download key" ($Cloud->"secret-download-key") ]); silent=true });
|
||||||
} on-error={
|
} on-error={
|
||||||
$SendNotification2 ({ origin=$0; \
|
$SendNotification2 ({ origin=$0; \
|
||||||
subject=([ $SymbolForNotification "floppy-disk,warning-sign" ] . "Cloud backup failed"); \
|
subject=([ $SymbolForNotification "floppy-disk,warning-sign" ] . "Cloud backup failed"); \
|
||||||
|
|
Loading…
Reference in a new issue