aboutsummaryrefslogtreecommitdiffstats
path: root/upload-backup
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-09-01 11:19:20 +0200
committerGravatar Christian Hesse <mail@eworm.de>2020-09-01 11:19:20 +0200
commitb9c699b29f366c77757639858d57c0331853537e (patch)
tree6fe2f3c215bc93a6dbc666f29ea7cdd01dbd4337 /upload-backup
parent8cbb0536868739e9833b3ba1f50f3f2a5095ed63 (diff)
upload-backup: wait for file
Diffstat (limited to 'upload-backup')
-rw-r--r--upload-backup3
1 files changed, 3 insertions, 0 deletions
diff --git a/upload-backup b/upload-backup
index 8d7dd28..b2b67a0 100644
--- a/upload-backup
+++ b/upload-backup
@@ -21,6 +21,7 @@
:global LogPrintExit;
:global SendNotification;
:global SymbolForNotification;
+:global WaitForFile;
:if ($BackupSendBinary != true && \
$BackupSendExport != true) do={
@@ -36,6 +37,7 @@
# binary backup
:if ($BackupSendBinary = true) do={
/ system backup save encryption=aes-sha256 name=$FileName password=$BackupPassword;
+ $WaitForFile ($FileName . ".backup");
:do {
/ tool fetch upload=yes url=($BackupUploadUrl . "/" . $FileName . ".backup") \
@@ -51,6 +53,7 @@
# create configuration export
:if ($BackupSendExport = true) do={
/ export terse file=$FileName;
+ $WaitForFile ($FileName . ".rsc");
:do {
/ tool fetch upload=yes url=($BackupUploadUrl . "/" . $FileName . ".rsc") \