aboutsummaryrefslogtreecommitdiffstats
path: root/backup-upload
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2022-12-12 15:25:35 +0100
committerGravatar Christian Hesse <mail@eworm.de>2022-12-13 21:50:32 +0100
commitf8258b90a7ea23b81c8e05cae4cfdaa325996e6d (patch)
tree41887c2f30cdc7e4a1d4a0467d40289d25495555 /backup-upload
parent8b2571dc4943c290fc6af0da75e5228c2b61d46c (diff)
backup-upload: create directory later
Diffstat (limited to 'backup-upload')
-rw-r--r--backup-upload8
1 files changed, 4 insertions, 4 deletions
diff --git a/backup-upload b/backup-upload
index 8ed4149..110ef25 100644
--- a/backup-upload
+++ b/backup-upload
@@ -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 Failed 0;
+: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;