/system/backup/cloud/upload-file
upload-file
将 AES 加密的备份上传到云服务器上此设备的槽位。当槽位已被使用时,上传会失败并显示
Server error: All slots used. Delete file to free up space.,除非replace指定了已存储的备份。
system/backup/cloud/upload-file
Type: Command
将 AES 加密的备份上传到云服务器上此设备的槽位。当槽位已被使用时,上传会失败并显示 Server error: All slots used. Delete file to free up space.,除非 replace 指定了已存储的备份。
| 参数 | 类型 | 描述 |
|---|---|---|
action | enum (upload | create-and-upload) | 要上传的内容: - create-and-upload - 创建当前配置的备份,使用 password 加密并上传。 - upload - 上传 src-file 中给出的备份文件。 |
name | string | 云列表中备份的名称。它不必与文件名一致。 |
replace | enum | 要覆盖的已存储备份名称。新备份会获得新的 secret-download-key。 |
src-file | file | 使用 action=upload 上传的备份文件。文件必须使用密码保存(/system/backup/save password=...),否则命令会失败并显示 src file must be AES encrypted。 |
password | string | 使用 action=create-and-upload 加密备份的密码。该操作需要此密码;恢复备份时也需要它。 |
| 只读参数 | 类型 | 描述 |
|---|---|---|
status | string | 命令进度:运行时为 working...,完成时为 finished,或者显示错误消息,例如来自云服务器的错误。 |