mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-24 12:54:28 +02:00
upload-backup: get values into array
This commit is contained in:
parent
1020db0b31
commit
55313b4841
1 changed files with 3 additions and 4 deletions
|
@ -31,8 +31,7 @@
|
|||
:local BoardName [ / system resource get board-name ];
|
||||
:local Model [ / system routerboard get model ];
|
||||
:local SerialNumber [ / system routerboard get serial-number ];
|
||||
:local Channel [ / system package update get channel ];
|
||||
:local InstalledVersion [ / system package update get installed-version ];
|
||||
:local Update [ / system package update get ];
|
||||
|
||||
# binary backup
|
||||
:if ($BackupSendBinary = true) do={
|
||||
|
@ -68,8 +67,8 @@ $SendNotification "Backup & Config Upload" \
|
|||
"Model: " . $Model . "\n" . \
|
||||
"Serial number: " . $SerialNumber . "\n" . \
|
||||
"Hostname: " . $Identity . "\n" . \
|
||||
"Channel: " . $Channel . "\n" . \
|
||||
"RouterOS: " . $InstalledVersion . "\n\n" . \
|
||||
"Channel: " . $Update->"channel" . "\n" . \
|
||||
"RouterOS: " . $Update->"installed-version" . "\n\n" . \
|
||||
"Backup uploaded: " . $BackupFile . "\n" . \
|
||||
"Config uploaded: " . $ConfigFile);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue