mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-12 19:14:27 +02:00
backup-upload: switch path to tmpfs
This commit is contained in:
parent
d3351bcf18
commit
a3e2822a0a
1 changed files with 3 additions and 2 deletions
|
@ -46,13 +46,14 @@ $WaitFullyConnected;
|
|||
}
|
||||
|
||||
# filename based on identity
|
||||
:local DirName ("tmpfs/" . $0);
|
||||
:local FileName [ $CharacterReplace ($Identity . "." . $Domain) "." "_" ];
|
||||
:local FilePath ($0 . "/" . $FileName);
|
||||
:local FilePath ($DirName . "/" . $FileName);
|
||||
:local BackupFile "none";
|
||||
:local ConfigFile "none";
|
||||
:local Failed 0;
|
||||
|
||||
:if ([ $MkDir $0 ] = false) do={
|
||||
:if ([ $MkDir $DirName ] = false) do={
|
||||
$LogPrintExit2 error $0 ("Failed creating directory!") true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue