Commit be133146 authored by Christian Hesse's avatar Christian Hesse

cloud-backup: do not remove but replace cloud backup

The replace functionality for cloud backup is available
with version 6.45beta42.
parent 39eef1a0
......@@ -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" \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment