mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-17 16:21:15 +02:00
backup-cloud: retry on error...
Let's see if brute force helps. 🤪
This commit is contained in:
parent
5f1656b7ce
commit
57ebcfb41c
1 changed files with 16 additions and 12 deletions
|
@ -47,6 +47,8 @@
|
|||
:error false;
|
||||
}
|
||||
|
||||
:local I 5;
|
||||
:do {
|
||||
:execute {
|
||||
:global BackupPassword;
|
||||
|
||||
|
@ -60,6 +62,8 @@
|
|||
}
|
||||
/file/add name="tmpfs/backup-cloud/done";
|
||||
} as-string;
|
||||
:set I ($I - 1);
|
||||
} while=([ $WaitForFile "tmpfs/backup-cloud/done" 200ms ] = false && $I > 0);
|
||||
|
||||
:if ([ $WaitForFile "tmpfs/backup-cloud/done" ] = true) do={
|
||||
:local Cloud [ /system/backup/cloud/get ([ find ]->0) ];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue