diff options
author | Christian Hesse <mail@eworm.de> | 2019-06-14 15:41:32 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2019-07-24 23:42:28 +0200 |
commit | be133146ddcc085777fa5014074c56995266abcd (patch) | |
tree | 09e07943e5d40365de5144a904a712b9256b24ee | |
parent | 39eef1a0b1bbc7e41438a37136972202c9ba6d33 (diff) |
cloud-backup: do not remove but replace cloud backuprouteros-6.45beta42
The replace functionality for cloud backup is available
with version 6.45beta42.
-rw-r--r-- | cloud-backup | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cloud-backup b/cloud-backup index 2d450cb..9bb13ff 100644 --- a/cloud-backup +++ b/cloud-backup @@ -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" \ |