---
schema_version: "1"
id: d3c9fd586ebcf5515e05534041e485d3d99ea9d333fbe7ae51e9d927a2991298
title: tsm settings
collection: tableau
version: next
locale: zh-tw
portal_url: https://docs.salesforce.com/tableau/next/zh-tw/server/cli_settings_tsm.md
canonical_url: https://help.tableau.com/v0.0/server/zh-tw/cli_settings_tsm.htm
source_site: help.tableau.com
content_type: documentation
content_hash: e77f5c9410dab2e6fa39a8c46e8079ce853df0b2ba841eec0bb1deefadd232f9
description: Reference for tsm settings commands to export and import Tableau Server configuration values.
---
[跳至主要內容](#main-content)

# tsm settings

您可以使用 `tsm settings` 命令匯出（取得）和匯入（設定）組態值。

- [tsm settings clone](#TSMSettingsClone)
- [tsm settings export](#TSMExport)
- [tsm settings import](#TSMSet)

**重要資訊**：本主題中引用的伺服器組態檔包含用於對組態密碼進行加密的主金鑰存儲檔案的副本。我們強烈建議您採取其他措施來保護節點組態檔，並使用[保護用於匯入和匯出操作的密碼](https://help.tableau.com/v0.0/server/zh-tw/security_secret_storage.htm#Securing)中描述的機制。

## tsm settings clone

建立包含 Tableau Server 安裝之設定和拓撲（包括外部服務和連接埠）的「複製品承載」。此承載可用於重新建立伺服器安裝的精確副本。此命令最適用於包含外部存放庫和外部檔案存放區的伺服器安裝。有關使用複製品承載建立安裝複本的詳細資訊，請參閱[複製 Tableau Server](https://help.tableau.com/v0.0/server/zh-tw/server_clone.htm)。

### 概要

`tsm settings clone --output-directory <output-directory> [global options]`

### 選項

\-d, --output-directory <output-directory>

必需。

指定複製品承載將被寫入的位置。

## tsm settings export

將當前伺服器組態和拓撲匯出到檔案。

使用 `tsm settings import` 或 `tsm settings export` 命令不會匯出或匯入以下檔案。您必須手動管理這些檔案：

- SAML 憑證檔案
- SAML 金鑰檔案
- SAML IdP 中繼資料檔案
- OpenID.static.file
- Kerberos.keytab 檔案
- LDAP Kerberos Keytab 檔案
- LDAP Kerberos 組態檔
- 相互 SSL 憑證檔案
- 相互 SSL 撤銷檔案
- 自訂標頭標誌檔案
- 自訂登入標誌檔案
- 自訂精簡標誌檔案

### 概要

`tsm settings export --output-config-file <path/to/output_file.json> [global options]`

### 選項

\-f, --output-config-file <file>

必要。

指定由此操作建立的檔案的位置和名稱。

## tsm settings import

匯入伺服器組態或拓撲。

使用 `tsm settings export` 或 `tsm settings import` 命令不會匯出或匯入以下檔案。您必須手動管理這些檔案：

- SAML 憑證檔案
- SAML 金鑰檔案
- SAML IdP 中繼資料檔案
- OpenID.static.file
- Kerberos.keytab 檔案
- LDAP Kerberos Keytab 檔案
- LDAP Kerberos 組態檔
- 相互 SSL 憑證檔案
- 相互 SSL 撤銷檔案
- 自訂標頭標誌檔案
- 自訂登入標誌檔案
- 自訂精簡標誌檔案

### 概要

`tsm settings import --import-config-file <path/to/import_file.json> [global options]`

### 選項

\-f,--import-config-file <FILE>

必要。

輸入檔案的路徑。

\--config-only

可選。

\--topology-only

可選。

\-frc, --force-keys

可選。

強制將鍵新增到設定中，即使其以前不存在。

## 全域選項

\-h, --help

可選。

顯示命令說明。

\-p, --password <password>

在會話不是活動狀態的情況下為必需，`-u` 或 `--username` 也為必需。

為在 `-u` 或 `--username` 中指定的使用者指定密碼。

如果密碼包括窗格或特殊字元，請將其括在引號中：

`--password "my password"`

\-s, --server https://<hostname>:8850

可選。

對 Tableau 服務管理器使用指定的位址。URL 必須以 `https` 開頭（包括連接埠 8850），並使用伺服器名稱而不是 IP 位址。例如 `https://<tsm_hostname>:8850`。如果沒有指定伺服器，則假定為 `https://<localhost | dnsname>:8850`。

\--trust-admin-controller-cert

可選。

使用此旗標來信任 TSM 控制器上的自我簽署憑證。如需有關憑證信任和 CLI 連線的詳細資訊，請參閱[連接 TSM 用戶端](https://help.tableau.com/v0.0/server/zh-tw/tsm_overview.htm#Connecti)。

\-u, --username <user>

在會話不是活動狀態的情況下為必需，`-p` 或 `--password` 也為必需。

請指定使用者名稱。如果未包括此選項，則使用您登入所使用的認證執行該命令。