aboutsummaryrefslogtreecommitdiffstats
path: root/backup-upload
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2022-05-12 11:04:43 +0200
committerGravatar Christian Hesse <mail@eworm.de>2022-05-12 11:04:43 +0200
commitdf547b87a47e279d3f6b744675821621eea5d7b8 (patch)
treed5b33fb62e10637d70d8d0616437294ceb15ed9f /backup-upload
parent93ec9afe558ef6eba5d513fab359bb5f6618666d (diff)
parent12655bd58afc3a75fe3e2958bbe130b96f8b9be7 (diff)
Merge branch 'ros-v7-path-syntax' into next
Diffstat (limited to 'backup-upload')
-rw-r--r--backup-upload12
1 files changed, 6 insertions, 6 deletions
diff --git a/backup-upload b/backup-upload
index c482b42..8ed4149 100644
--- a/backup-upload
+++ b/backup-upload
@@ -58,11 +58,11 @@ $WaitFullyConnected;
# binary backup
:if ($BackupSendBinary = true) do={
- / system backup save encryption=aes-sha256 name=$FilePath password=$BackupPassword;
+ /system/backup/save encryption=aes-sha256 name=$FilePath password=$BackupPassword;
$WaitForFile ($FilePath . ".backup");
:do {
- / tool fetch upload=yes url=($BackupUploadUrl . "/" . $FileName . ".backup") \
+ /tool/fetch upload=yes url=($BackupUploadUrl . "/" . $FileName . ".backup") \
user=$BackupUploadUser password=$BackupUploadPass src-path=($FilePath . ".backup");
:set BackupFile ($FileName . ".backup");
} on-error={
@@ -71,16 +71,16 @@ $WaitFullyConnected;
:set Failed 1;
}
- / file remove ($FilePath . ".backup");
+ /file/remove ($FilePath . ".backup");
}
# create configuration export
:if ($BackupSendExport = true) do={
- / export terse show-sensitive file=$FilePath;
+ /export terse show-sensitive file=$FilePath;
$WaitForFile ($FilePath . ".rsc");
:do {
- / tool fetch upload=yes url=($BackupUploadUrl . "/" . $FileName . ".rsc") \
+ /tool/fetch upload=yes url=($BackupUploadUrl . "/" . $FileName . ".rsc") \
user=$BackupUploadUser password=$BackupUploadPass src-path=($FilePath . ".rsc");
:set ConfigFile ($FileName . ".rsc");
} on-error={
@@ -89,7 +89,7 @@ $WaitFullyConnected;
:set Failed 1;
}
- / file remove ($FilePath . ".rsc");
+ /file/remove ($FilePath . ".rsc");
}
$SendNotification2 ({ origin=$0; \