aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-09-01 11:18:13 +0200
committerGravatar Christian Hesse <mail@eworm.de>2020-09-01 11:18:13 +0200
commit8cbb0536868739e9833b3ba1f50f3f2a5095ed63 (patch)
tree6513dbf91cfd2cc707e896fa47400c280e80f4f8
parentff5cdc30193ba69944f6772f213e63ea00678861 (diff)
email-backup: wait for file
-rw-r--r--email-backup3
1 files changed, 3 insertions, 0 deletions
diff --git a/email-backup b/email-backup
index ff8a678..9c4259b 100644
--- a/email-backup
+++ b/email-backup
@@ -17,6 +17,7 @@
:global CharacterReplace;
:global DeviceInfo;
:global LogPrintExit;
+:global WaitForFile;
:if ($BackupSendBinary != true && \
$BackupSendExport != true) do={
@@ -32,6 +33,7 @@
# binary backup
:if ($BackupSendBinary = true) do={
/ system backup save encryption=aes-sha256 name=$FileName password=$BackupPassword;
+ $WaitForFile ($FileName . ".backup");
:set BackupFile ($FileName . ".backup");
:set Attach ($Attach, $BackupFile);
}
@@ -39,6 +41,7 @@
# create configuration export
:if ($BackupSendExport = true) do={
/ export terse file=$FileName;
+ $WaitForFile ($FileName . ".rsc");
:set ConfigFile ($FileName . ".rsc");
:set Attach ($Attach, $ConfigFile);
}