upload-backup: warn on missing sensitive information with ROS 7.x

This commit is contained in:
Christian Hesse 2021-09-15 21:09:40 +02:00
parent 1bacfaf12b
commit 5391045bd5
1 changed files with 6 additions and 0 deletions

View File

@ -28,6 +28,7 @@
:global LogPrintExit2;
:global MkDir;
:global RandomDelay;
:global RequiredRouterOS;
:global ScriptFromTerminal;
:global SendNotification2;
:global SymbolForNotification;
@ -76,6 +77,11 @@ $WaitFullyConnected;
# create configuration export
:if ($BackupSendExport = true) do={
:if ([ $RequiredRouterOS $0 "7.1rc1" false ] = true) do={
$LogPrintExit2 warning $0 ("RouterOS v7 hides sensitive information on export. " . \
"Switch to branch 'routeros-v7' for full export.") false;
}
/ export terse file=$FilePath;
$WaitForFile ($FilePath . ".rsc");