CLI 命令参考//file/sync
/file/sync
sync
/file/sync 的 RouterOS 目录参考。
file/sync
Package: rose-storage
Type: Directory
| 标志 | 名称 | 描述 |
|---|
X | disabled | 同步条目已禁用。 |
I | invalid | 条目无效,例如它引用了缺失或不可用的路径。 |
D | dynamic | 该条目自动创建。 |
| 参数 | 类型 | 描述 |
|---|
remote-address * | multi { array-id, address: string } | 要同步的远程 RouterOS 设备的 IP 地址。远程设备必须启用 rsync 守护进程(rsync-daemon)。 |
mode * | enum (upload | download) | 同步方向: - upload - 将 local-path 文件或文件夹发送到远程设备。 - download - 从远程设备获取 remote-path 到此路由器。 |
local-path | file | 此路由器上的文件或文件夹路径;对于 mode=upload 是源,对于 mode=download 是目标。 |
remote-path | string | 远程设备上的文件或文件夹路径。 |
user | string | 远程设备上用于认证的 RouterOS 用户。 |
password | string | 远程设备上用户的密码。设置后,传输会通过自动创建的 IPsec 进行。 |
| 只读参数 | 类型 | 描述 |
|---|
status | string | Status of the synchronization, for example in sync, making control connection to <ip> or initializing transfer. |