aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2022-05-10 14:36:41 +0200
committerGravatar Christian Hesse <mail@eworm.de>2022-05-11 13:48:27 +0200
commit18a0bee80f191037afec4f3579ee8ef2ee0ee1bb (patch)
treebb0fbc1d2e78ea03ad0985d58b7510470c532d61
parentab410466dcb9198455978146cbcdf0a3eb85c7ce (diff)
backup-cloud: RouterOS v7 path syntax
-rw-r--r--backup-cloud10
1 files changed, 5 insertions, 5 deletions
diff --git a/backup-cloud b/backup-cloud
index d1d9f14..38aed1f 100644
--- a/backup-cloud
+++ b/backup-cloud
@@ -33,15 +33,15 @@ $WaitFullyConnected;
:do {
# we are not interested in output, but print is
# required to fetch information from cloud
- / system backup cloud print as-value;
- :if ([ :len [ / system backup cloud find ] ] > 0) do={
- / system backup cloud upload-file action=create-and-upload \
+ /system/backup/cloud/print as-value;
+ :if ([ :len [ /system/backup/cloud/find ] ] > 0) do={
+ /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 \
+ /system/backup/cloud/upload-file action=create-and-upload \
password=$BackupPassword;
}
- :local Cloud [ / system backup cloud get ([ find ]->0) ];
+ :local Cloud [ /system/backup/cloud/get ([ find ]->0) ];
$SendNotification2 ({ origin=$0; \
subject=([ $SymbolForNotification "floppy-disk,cloud" ] . "Cloud backup"); \