mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-26 03:28:38 +02:00
cloud-backup: do not remove but replace cloud backup
The replace functionality for cloud backup is available with version 6.45beta42.
This commit is contained in:
parent
39eef1a0b1
commit
be133146dd
1 changed files with 5 additions and 2 deletions
|
@ -19,9 +19,12 @@
|
|||
# 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 ]->0);
|
||||
/ system backup cloud upload-file action=create-and-upload \
|
||||
password=$BackupPassword replace=[ get ([ find ]->0) name ];
|
||||
} else={
|
||||
/ system backup cloud upload-file action=create-and-upload \
|
||||
password=$BackupPassword;
|
||||
}
|
||||
/ system backup cloud upload-file action=create-and-upload password=$BackupPassword;
|
||||
:local Cloud [ / system backup cloud get ([ find ]->0) ];
|
||||
|
||||
$SendNotification "Cloud backup" \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue