ti fs unpack-file-system
从远程归档中恢复本地叠加层状态。
语法
ti fs unpack-file-system
[--archive-path <string>]
[--dry-run]
[--file-system-id <string>]
[--fs-token <string>]
[--help]
[--local-root <string>]
[--mount-path <string>]
[--mount-profile <string>]
[--no-replace]
[--remote-root <string>]
[--version]
选项
--archive-path <string>:已打包归档的路径。--dry-run:验证请求但不应用更改。--file-system-id <string>:选择文件系统。你也可以设置TI_FS_FILE_SYSTEM_ID。--fs-token <string>:设置 Filesystem 访问令牌。如果省略,命令会使用TI_FS_TOKEN环境变量。如果两者都未提供,命令会使用为所选 Filesystem 在本地存储的令牌。--help:显示帮助信息。--local-root <string>:要恢复到的本地叠加层根目录。--mount-path <string>:本地挂载路径。--mount-profile <string>:选择一个挂载预设:coding-agent、portable或none。如果省略,则使用none。--no-replace:合并归档条目,而不是替换它们。--remote-root <string>:当省略--archive-path时,在指定的根路径下查找已打包归档。[默认值:/]--version:显示版本信息。
有关所有命令共享的选项,请参见全局选项。
示例
解包到已挂载的工作区:
# Restore the portable archive associated with an existing mount. ti fs unpack-file-system --file-system-id <file-system-id> --mount-path /path/to/workspace在不替换的情况下解包显式根路径:
# Restore missing files while preserving existing destination entries. ti fs unpack-file-system --file-system-id <file-system-id> --local-root /path/to/local-root --remote-root /workspace --mount-profile portable --no-replace