mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-03 22:54:27 +02:00
email-backup: warn on missing sensitive information with ROS 7.x
This commit is contained in:
parent
15e60da7f0
commit
1bacfaf12b
1 changed files with 6 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue