diff options
author | Christian Hesse <mail@eworm.de> | 2021-09-15 21:09:40 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2021-09-21 21:26:13 +0200 |
commit | 5391045bd5ea85f4ee61f90b5a9ddd90f0b62df9 (patch) | |
tree | abb86844f066b46fef224747a12e883215930c4d | |
parent | 1bacfaf12be1f92fbd40ca744c68724e1ce2bab2 (diff) |
upload-backup: warn on missing sensitive information with ROS 7.x
-rw-r--r-- | upload-backup | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/upload-backup b/upload-backup index cde847c..088c495 100644 --- a/upload-backup +++ b/upload-backup @@ -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"); |