aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-09-15 21:08:59 +0200
committerGravatar Christian Hesse <mail@eworm.de>2021-09-21 21:26:13 +0200
commit1bacfaf12be1f92fbd40ca744c68724e1ce2bab2 (patch)
tree31a2fcfeacfe4d0669add4b772dfa50905e33915
parent15e60da7f01bb41955f4b321380b31c24fdad7e8 (diff)
email-backup: warn on missing sensitive information with ROS 7.x
-rw-r--r--email-backup6
1 files changed, 6 insertions, 0 deletions
diff --git a/email-backup b/email-backup
index a819a4a..682cfbc 100644
--- a/email-backup
+++ b/email-backup
@@ -24,6 +24,7 @@
:global LogPrintExit2;
:global MkDir;
:global RandomDelay;
+:global RequiredRouterOS;
:global ScriptFromTerminal;
:global SendEMail2;
:global SymbolForNotification;
@@ -62,6 +63,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");
:set ConfigFile ($FileName . ".rsc");