backup-upload: switch path to tmpfs

This commit is contained in:
Christian Hesse 2022-12-12 15:32:54 +01:00
parent d3351bcf18
commit a3e2822a0a

View file

@ -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;
}