diff options
author | Christian Hesse <mail@eworm.de> | 2023-08-24 15:51:53 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2023-08-29 08:58:50 +0200 |
commit | 3c96db58246ce85b9796f4322a7ace7687531b55 (patch) | |
tree | fb9ce10ecc93865a28be879fc5cf49d550545516 /backup-email.rsc | |
parent | 1dd1c5b03c73034aec739c7ca54c6372107969f6 (diff) |
backup-email: write config file directlyrouteros-7.9beta4-8
This functionality was added in RouterOS 7.9beta4...
Diffstat (limited to 'backup-email.rsc')
-rw-r--r-- | backup-email.rsc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/backup-email.rsc b/backup-email.rsc index 5eb4fcc..4dd9fcc 100644 --- a/backup-email.rsc +++ b/backup-email.rsc @@ -80,11 +80,11 @@ $WaitFullyConnected; # global-config-overlay :if ($BackupSendGlobalConfig = true) do={ - :execute script={ :put [ /system/script/get global-config-overlay source ]; } \ - file=($FilePath . ".conf"); - $WaitForFile ($FilePath . ".conf.txt"); - :set ConfigFile ($FileName . ".conf.txt"); - :set Attach ($Attach, ($FilePath . ".conf.txt")); + :local Config [ /system/script/get global-config-overlay source ]; + /file/add name=($FilePath . ".conf") contents=$Config; + $WaitForFile ($FilePath . ".conf"); + :set ConfigFile ($FileName . ".conf"); + :set Attach ($Attach, ($FilePath . ".conf")); } # send email with status and files |