mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-27 20:08:54 +02:00
backup-cloud: RouterOS v7 path syntax
This commit is contained in:
parent
ab410466dc
commit
18a0bee80f
1 changed files with 5 additions and 5 deletions
10
backup-cloud
10
backup-cloud
|
@ -33,15 +33,15 @@ $WaitFullyConnected;
|
||||||
:do {
|
:do {
|
||||||
# we are not interested in output, but print is
|
# we are not interested in output, but print is
|
||||||
# required to fetch information from cloud
|
# required to fetch information from cloud
|
||||||
/ system backup cloud print as-value;
|
/system/backup/cloud/print as-value;
|
||||||
:if ([ :len [ / system backup cloud find ] ] > 0) do={
|
:if ([ :len [ /system/backup/cloud/find ] ] > 0) do={
|
||||||
/ system backup cloud upload-file action=create-and-upload \
|
/system/backup/cloud/upload-file action=create-and-upload \
|
||||||
password=$BackupPassword replace=[ get ([ find ]->0) name ];
|
password=$BackupPassword replace=[ get ([ find ]->0) name ];
|
||||||
} else={
|
} else={
|
||||||
/ system backup cloud upload-file action=create-and-upload \
|
/system/backup/cloud/upload-file action=create-and-upload \
|
||||||
password=$BackupPassword;
|
password=$BackupPassword;
|
||||||
}
|
}
|
||||||
:local Cloud [ / system backup cloud get ([ find ]->0) ];
|
:local Cloud [ /system/backup/cloud/get ([ find ]->0) ];
|
||||||
|
|
||||||
$SendNotification2 ({ origin=$0; \
|
$SendNotification2 ({ origin=$0; \
|
||||||
subject=([ $SymbolForNotification "floppy-disk,cloud" ] . "Cloud backup"); \
|
subject=([ $SymbolForNotification "floppy-disk,cloud" ] . "Cloud backup"); \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue