1
0
mirror of https://github.com/eworm-de/routeros-scripts.git synced 2024-05-11 05:55:19 +00:00

backup-cloud: retry on error...

Let's see if brute force helps. 🤪
This commit is contained in:
Christian Hesse
2024-04-29 17:37:28 +02:00
parent 5f1656b7ce
commit 57ebcfb41c

View File

@ -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) ];