mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
email-backup: make sure to act on first cloud backup
This commit is contained in:
parent
b7592f6b18
commit
a1bad3c0aa
1 changed files with 2 additions and 2 deletions
|
@ -52,10 +52,10 @@
|
|||
# required to fetch information from cloud
|
||||
/ system backup cloud print as-value;
|
||||
:if ([ / system backup cloud print count-only ] > 0) do={
|
||||
/ system backup cloud remove-file [ find ];
|
||||
/ system backup cloud remove-file ([ find ]->0);
|
||||
}
|
||||
/ system backup cloud upload-file action=upload src-file=($FileName . ".backup");
|
||||
:set CloudStatus [ / system backup cloud get [ find ] secret-download-key ];
|
||||
:set CloudStatus [ / system backup cloud get ([ find ]->0) secret-download-key ];
|
||||
} on-error={
|
||||
:set CloudStatus "failed";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue