ti fs pack-file-system
Packs selected local overlay state into a remote archive.
Syntax
ti fs pack-file-system
[--archive-path <string>]
[--dry-run]
[--file-system-id <string>]
[--fs-token <string>]
[--help]
[--local-root <string>]
[--mount-path <string>]
[--mount-profile <string>]
[--path <string>]
[--remote-root <string>]
[--version]
Options
--archive-path <string>: The path for the packed archive.--dry-run: Validate the request without applying changes.--file-system-id <string>: Select the file system. You can also setTI_FS_FILE_SYSTEM_ID.--fs-token <string>: Set the file system user token. If omitted, usesTI_FS_TOKEN.--help: Display help information.--local-root <string>: Local overlay root containing the overlay directory.--mount-path <string>: The local mounted path.--mount-profile <string>: The mount profile:coding-agent,portable, ornone. If omitted, usesnone.--path <string>: Local overlay path for packing; repeatable.--remote-root <string>: The TiDB Cloud file system root represented by the local overlay. [default: /]--version: Display version information.
For options shared by all commands, see Global options.
Examples
Pack a mounted workspace:
# Persist the local overlay associated with an existing mount. ti fs pack-file-system --file-system-id <file-system-id> --mount-path /path/to/workspacePack explicit roots:
# Create a portable archive from selected local and remote roots. ti fs pack-file-system --file-system-id <file-system-id> --local-root ./overlay --remote-root /workspace --mount-profile portable