aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2022-12-12 15:24:42 +0100
committerGravatar Christian Hesse <mail@eworm.de>2022-12-13 21:50:32 +0100
commit8b2571dc4943c290fc6af0da75e5228c2b61d46c (patch)
treeb94fa4fadbe0424cb95f722e3d4625e6cbf6c15f
parent16bfe4de7ebc651854fd66939a84c6af8ee81af2 (diff)
backup-email: create directory later
-rw-r--r--backup-email8
1 files changed, 4 insertions, 4 deletions
diff --git a/backup-email b/backup-email
index 34e15e1..70db237 100644
--- a/backup-email
+++ b/backup-email
@@ -45,10 +45,6 @@ $WaitFullyConnected;
$RandomDelay $BackupRandomDelay;
}
-:if ([ $MkDir $0 ] = false) do={
- $LogPrintExit2 error $0 ("Failed creating directory!") true;
-}
-
# filename based on identity
:local FileName [ $CharacterReplace ($Identity . "." . $Domain) "." "_" ];
:local FilePath ($0 . "/" . $FileName);
@@ -56,6 +52,10 @@ $WaitFullyConnected;
:local ConfigFile "none";
:local Attach ({});
+:if ([ $MkDir $0 ] = false) do={
+ $LogPrintExit2 error $0 ("Failed creating directory!") true;
+}
+
# binary backup
:if ($BackupSendBinary = true) do={
/system/backup/save encryption=aes-sha256 name=$FilePath password=$BackupPassword;