diff options
author | Christian Hesse <mail@eworm.de> | 2022-12-12 15:32:54 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2022-12-13 21:50:32 +0100 |
commit | a3e2822a0a6fd16678159c066fd0f1c8fb69303d (patch) | |
tree | 6921c47487fced25f27c4d86c86240c78710acb2 | |
parent | d3351bcf1839757ac677924c6c161c914db467ad (diff) |
backup-upload: switch path to tmpfs
-rw-r--r-- | backup-upload | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/backup-upload b/backup-upload index 110ef25..338db3f 100644 --- a/backup-upload +++ b/backup-upload @@ -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; } |