mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-17 16:21:15 +02:00
backup-email: RouterOS v7 path syntax
This commit is contained in:
parent
18a0bee80f
commit
dffd634885
1 changed files with 2 additions and 2 deletions
|
@ -54,7 +54,7 @@ $WaitFullyConnected;
|
||||||
|
|
||||||
# binary backup
|
# binary backup
|
||||||
:if ($BackupSendBinary = true) do={
|
:if ($BackupSendBinary = true) do={
|
||||||
/ system backup save encryption=aes-sha256 name=$FilePath password=$BackupPassword;
|
/system/backup/save encryption=aes-sha256 name=$FilePath password=$BackupPassword;
|
||||||
$WaitForFile ($FilePath . ".backup");
|
$WaitForFile ($FilePath . ".backup");
|
||||||
:set BackupFile ($FileName . ".backup");
|
:set BackupFile ($FileName . ".backup");
|
||||||
:set Attach ($Attach, ($FilePath . ".backup"));
|
:set Attach ($Attach, ($FilePath . ".backup"));
|
||||||
|
@ -62,7 +62,7 @@ $WaitFullyConnected;
|
||||||
|
|
||||||
# create configuration export
|
# create configuration export
|
||||||
:if ($BackupSendExport = true) do={
|
:if ($BackupSendExport = true) do={
|
||||||
/ export terse show-sensitive file=$FilePath;
|
/export terse show-sensitive file=$FilePath;
|
||||||
$WaitForFile ($FilePath . ".rsc");
|
$WaitForFile ($FilePath . ".rsc");
|
||||||
:set ConfigFile ($FileName . ".rsc");
|
:set ConfigFile ($FileName . ".rsc");
|
||||||
:set Attach ($Attach, ($FilePath . ".rsc"));
|
:set Attach ($Attach, ($FilePath . ".rsc"));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue