A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://help.tableau.com/current/server-linux/en-us/backup_restore.htm below:

Perform a Full Backup and Restore of Tableau Server

You can use the following steps to back up your Tableau Server deployment. Specifically, these steps describe how to recover a clone of a server from a collection of backup data and assets.

Note: The backup process can take a long time to run. Since no other jobs can be run while backup is running, we recommend that you run backup during non-business hours.

Backup data types

There are two types of backup data that Tableau Server can generate. We recommend performing regular backups of each type in case you must restore a server in a recovery scenario:

Note: You can change the file path used by the tsm maintenance backup command from the default value. For more information, see tsm File Paths.

Backup assets that require a manual process

Some configuration data is not included in the tsm settings export command and must therefore be documented and restored manually. The following configuration data is excluded from the tsm settings export operation. Your backup maintenance process should include documenting the following Tableau Server configuration data:

Internal server secrets and repository passwords are crypto-related configurations that are not exported. However, you do not need to document configuration values. New secrets will be created as part of the restoration process when you initialize the new instance.

Backing up Tableau Server for recovery

Tableau Server includes commands that you run to generate backup data for Tableau Server.

Note: When backing up Tableau Server on Linux, the unprivileged user must have write access to the network share where the backup files are written. Otherwise, backup will fail.

To back up server topology and configuration data, use the tsm settings command.

  1. Topology and configuration data are included when you run the tsm settings export command. The data is exported as a json file. Specify the name and location of the json file by running the following command:

    tsm settings export -f <filename>.json

    Note: Because the backup contains secrets, we recommend that you encrypt the backup and store it in a secure place. For more information about Tableau Server secrets, see Manage Server Secrets.

  2. Back up repository and File Store data. Repository data is backed up with the tsm maintenance backup command. Specify the name and location of the backup file by running the following command:

    tsm maintenance backup -f <filename>.tsbak -d

    The backup file is assembled in a temporary location in the data directory and then written to the directory defined in the TSM basefilepath.backuprestore variable:

    /var/opt/tableau/tableau_server/data/tabsvc/files/backups/<filename>.tsbak

    For more information about where backup files are written, and how to change that location, see tsm File Paths. Note: Even when you change the backup location, the backup process uses a temporary location in the data directory to assemble the backup file.

    Note: When File Store is configured external to Tableau Server you cannot use the tsm maintenance backup command to backup Tableau Server Data. For more information on how to backup this data, see Backup and Restore with External File Store.

Restoring core Tableau Server functionality

The procedure below uses the assets from the previous two sections to rebuild a Tableau Server in a recovery scenario.

Note: If you need to restore only the repository on an otherwise functional Tableau Server, see Restore from a Backup. If you are running a distributed deployment, and your initial node has failed, see Recover from an Initial Node Failure.

Topology and configuration backup data must be from Tableau Server on Linux. You cannot restore configuration data from a backup file that was generated on Tableau Server on Windows. To restore a backup made from Tableau Server on Windows to Tableau Server on Linux, see Migrate Tableau Server from Windows to Linux.

You must have the following assets ready:

To restore a standalone Tableau Server
  1. On the computer where you want to restore Tableau Server, Install and Initialize TSM. If your organization used non-default system user accounts, as described in an early section of this topic, then you must specify the users during this step.

  2. Activate and Register Tableau Server.

  3. (Optional). Configure Local Firewall.

  4. (Optional). Verify LDAP.

  5. Initialize Tableau Server. See Configure Initial Node Settings.

  6. Import topology and configuration data. Copy the topology and configuration json backup file to the computer. Import the json file by running the following command:

    tsm settings import -f <filename>.json

  7. (Optional). Apply pending changes. At a command prompt, run:

    tsm pending-changes apply

  8. Restart Tableau Server. At a command prompt, run:

    tsm restart

  9. Restore repository data. See Restore from a Backup.

  10. (Optional). Repopulate TSM group membership. Add users to groups with this command:

    sudo usermod -G <group_name> -a <username>

To restore a Tableau Server cluster
  1. On the initial node, Install and Initialize TSM. If your organization used non-default system user accounts, as described in an early section of this topic, then you must specify the users during this step.

  2. On the initial node, Activate and Register Tableau Server.

  3. (Optional). On the initial node, Configure Local Firewall.

  4. On the initial node verify LDAP (optional), and initialize Tableau Server. See Configure Initial Node Settings.

  5. On the initial node, run tsm topology nodes get-bootstrap-file --file <path\file>.json.

  6. Copy the bootstrap.json file to all additional nodes in the cluster.

  7. On each additional node in the cluster:

    1. Install the Tableau Server package.

    2. Navigate to the scripts directory.

    3. Initiate communication between initial node and the additional node:

      sudo ./initialize-tsm -b <path-to-bootstrap>.json -u <admin-user-on-first-node> --accepteula

  8. On the initial node, run tsm topology list-nodes -v and ensure that the node names have not changed from exported topology settings. If the node names have changed, topology settings should be manually updated with new names, or the processes should be manually configured.

  9. The Cluster Controller process is required on every node and needs to be added explicitly. From the initial node, add an instance of the Cluster Controller to each additional node, where <nodeID> is the ID of one of the additional nodes. Add the process to each node separately. In this example we are adding the Cluster Controller to nodes 2 and 3:

    tsm topology set-process -n node2 -pr clustercontroller -c 1
    tsm topology set-process -n node3 -pr clustercontroller -c 1
    tsm pending-changes apply
  10. From the initial node, Deploy a Coordination Service Ensemble . The ensemble configuration must match your previous configuration.

  11. On the initial node, import topology and configuration data. Copy the topology and configuration json backup file to the computer. Import the json file by running the following command:

    tsm settings import -f <filename>.json

  12. On the initial node, apply pending changes. At a command prompt, run:

    tsm pending-changes apply

  13. On the initial node, restart Tableau Server. At a command prompt, run:

    tsm restart

  14. On the initial node, restore repository data. See Restore from a Backup.

  15. On the initial node, repopulate TSM group membership. Add users to groups with this command:

    sudo usermod -G <group_name> -a <username>

Restore other functionality

If the previous server was configured with the following features, then you will need to re-enable and reconfigure them on the restored server:

Optionally, if you are using the extract encryption at rest feature, after the backup is restored, you can reencrypt the extracts using different encryption keys. See Extract Encryption at Rest.

Run tabcmd reencryptextracts <site-name> to reencrypt extracts on a given site. For more information, see reencryptextracts. Run this command on every site where you are storing encrypted extracts. Depending on the number of encrypted extracts on the site, this operation could consume significant server processing load. Consider running this operation outside of business hours.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4