ti fs pack-file-system
選択したローカルオーバーレイ状態をリモートアーカイブにパックします。
構文
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]
オプション
--archive-path <string>: パックされたアーカイブのパスです。--dry-run: 変更を適用せずにリクエストを検証します。--file-system-id <string>: ファイルシステムを選択します。TI_FS_FILE_SYSTEM_IDを設定することもできます。--fs-token <string>: file system トークンを設定します。省略した場合、このコマンドはTI_FS_TOKEN環境変数を使用します。どちらも指定されていない場合、このコマンドは選択した file system 用にローカルに保存されているトークンを使用します。--help: ヘルプ情報を表示します。--local-root <string>: オーバーレイディレクトリを含むローカルオーバーレイのルートです。--mount-path <string>: ローカルのマウント済みパスです。--mount-profile <string>: マウントプロファイル を選択します:coding-agent、portable、またはnone。省略した場合はnoneを使用します。--path <string>: パック対象のローカルオーバーレイパスです。繰り返し指定できます。--remote-root <string>: ローカルオーバーレイで表される TiDB Cloud ファイルシステムのルートです。[default: /]--version: バージョン情報を表示します。
すべてのコマンドで共通のオプションについては、グローバルオプションを参照してください。
例
マウントされたワークスペースをパックする:
# Persist the local overlay associated with an existing mount. ti fs pack-file-system --file-system-id <file-system-id> --mount-path /path/to/workspace明示的なルートをパックする:
# Create a portable archive from selected local and remote roots. ti fs pack-file-system --file-system-id <file-system-id> --local-root /path/to/local-root --remote-root /workspace --mount-profile portable