📣
TiDB Cloud Premium はパブリックプレビュー中です。エンタープライズワークロード向けの無制限のスケーリング、即時の弾力性、高度なセキュリティを提供します。このページは自動翻訳されたものです。原文はこちらからご覧ください。

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

このページは役に立ちましたか?