mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
backup-email: write config file directly
This functionality was added in RouterOS 7.9beta4...
This commit is contained in:
parent
1dd1c5b03c
commit
3c96db5824
|
@ -80,11 +80,11 @@ $WaitFullyConnected;
|
||||||
|
|
||||||
# global-config-overlay
|
# global-config-overlay
|
||||||
:if ($BackupSendGlobalConfig = true) do={
|
:if ($BackupSendGlobalConfig = true) do={
|
||||||
:execute script={ :put [ /system/script/get global-config-overlay source ]; } \
|
:local Config [ /system/script/get global-config-overlay source ];
|
||||||
file=($FilePath . ".conf");
|
/file/add name=($FilePath . ".conf") contents=$Config;
|
||||||
$WaitForFile ($FilePath . ".conf.txt");
|
$WaitForFile ($FilePath . ".conf");
|
||||||
:set ConfigFile ($FileName . ".conf.txt");
|
:set ConfigFile ($FileName . ".conf");
|
||||||
:set Attach ($Attach, ($FilePath . ".conf.txt"));
|
:set Attach ($Attach, ($FilePath . ".conf"));
|
||||||
}
|
}
|
||||||
|
|
||||||
# send email with status and files
|
# send email with status and files
|
||||||
|
|
Loading…
Reference in a new issue