aboutsummaryrefslogtreecommitdiffstats
path: root/cloud-backup
diff options
context:
space:
mode:
Diffstat (limited to 'cloud-backup')
-rw-r--r--cloud-backup7
1 files changed, 7 insertions, 0 deletions
diff --git a/cloud-backup b/cloud-backup
index 598a500..aa29faa 100644
--- a/cloud-backup
+++ b/cloud-backup
@@ -11,16 +11,23 @@
:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }
:global BackupPassword;
+:global BackupRandomDelay;
:global Identity;
:global DeviceInfo;
:global LogPrintExit2;
+:global RandomDelay;
+:global ScriptFromTerminal;
:global SendNotification;
:global SymbolForNotification;
:global WaitFullyConnected;
$WaitFullyConnected;
+:if ([ $ScriptFromTerminal $0 ] = false && $BackupRandomDelay > 0) do={
+ $RandomDelay $BackupRandomDelay;
+}
+
:do {
# we are not interested in output, but print is
# required to fetch information from cloud