Tableau maintenance #1 tsm commands

Jason·2022년 8월 26일
0

Tableau

목록 보기
4/6
post-thumbnail

기본적으로 Tableau Server가 설치된 PC는 백그라운드에서 항상 TSM이 돌아가기 때문에 CMD 창에서 TSM 커맨드를 사용할 수 있다.
단, 관리자 권한을 이용해야하기 때문에 CMD->관리자 권한으로 실행.

1. ON/OFF

tsm start
tsm stop
tsm restart
tsm status

2. 백업 후 마이그레이션

https://help.tableau.com/current/server/ko-kr/backup_restore.htm -> 백업 개요
https://help.tableau.com/current/server/ko-kr/cli_settings_tsm.htm#TSMExport -> 구성 옮기기
https://help.tableau.com/current/server/ko-kr/cli_maintenance_tsm.htm#tsm -> 자료 옯기기

i) 토폴로지 및 구성 데이터 백업
tsm settings export -f .json

ii) 리포지토리 및 파일저장소 백업
tsm maintenance backup -f .tsbak -d

디폴트 경로
C:\ProgramData\Tableau\Tableau Server\data\tabsvc\files\backups

iii) 기존 서버 삭제 및 재설치
tsm stop -> 스크립트 폴더에서 .\obliterate 후 재설치

iv) 토폴로지 및 구성 데이터 가져오기
tsm settings import --import-config-file <path/to/import_file.json> [global options]

v) 리포지토리 및 파일저장소 가져오기
tsm maintenance restore --file <file_name> [--restart-server][global options]

3. 로그 파일 정리 및 클린업

https://help.tableau.com/current/server/ko-kr/cli_maintenance_tsm.htm#tsm -> ziplogs와 cleanup
https://github.com/til-jmac/tableau-server-housekeeping -> 배치스크립트 참고자료

i) 로그 zip 파일 저장
tsm maintenance ziplogs [options][global options]

디폴트 경로
C:\ProgramData\Tableau\Tableau Server\data\tabsvc\files\log-archives

ii) 로그 클린업
tsm maintenance cleanup [options][global options]

4. tsm job 다루기

i) tsm job 목록
tsm job list

ii) tsm job 시간 조절
tsm maintenance ziplogs --request-timeout (초)

profile
데이터보급창고

0개의 댓글