mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
backup-email: create directory later
This commit is contained in:
@ -45,10 +45,6 @@ $WaitFullyConnected;
|
|||||||
$RandomDelay $BackupRandomDelay;
|
$RandomDelay $BackupRandomDelay;
|
||||||
}
|
}
|
||||||
|
|
||||||
:if ([ $MkDir $0 ] = false) do={
|
|
||||||
$LogPrintExit2 error $0 ("Failed creating directory!") true;
|
|
||||||
}
|
|
||||||
|
|
||||||
# filename based on identity
|
# filename based on identity
|
||||||
:local FileName [ $CharacterReplace ($Identity . "." . $Domain) "." "_" ];
|
:local FileName [ $CharacterReplace ($Identity . "." . $Domain) "." "_" ];
|
||||||
:local FilePath ($0 . "/" . $FileName);
|
:local FilePath ($0 . "/" . $FileName);
|
||||||
@ -56,6 +52,10 @@ $WaitFullyConnected;
|
|||||||
:local ConfigFile "none";
|
:local ConfigFile "none";
|
||||||
:local Attach ({});
|
:local Attach ({});
|
||||||
|
|
||||||
|
:if ([ $MkDir $0 ] = false) do={
|
||||||
|
$LogPrintExit2 error $0 ("Failed creating directory!") true;
|
||||||
|
}
|
||||||
|
|
||||||
# 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;
|
||||||
|
Reference in New Issue
Block a user