资源备份流程整理
This commit is contained in:
@@ -50,7 +50,7 @@ tms:
|
||||
mode: LOCAL
|
||||
timeout-sec: 600
|
||||
log-dir: /home/tms/tmp/tms-init-logs
|
||||
standard-home-dir: /home/cemp4i
|
||||
standard-home-dir: /home/cmep4i
|
||||
standard-db-username: root
|
||||
standard-db-password: change-me
|
||||
standard-db-apply-command: /home/tms/bin/apply_standard_db.sh
|
||||
@@ -77,3 +77,119 @@ tms:
|
||||
rabbit-vhost: /RQ
|
||||
standard-rabbit-credential-encrypt-enabled: true
|
||||
standard-rabbit-credential-secret-key: ABCDEFGHIJKLMN1234567890
|
||||
backup:
|
||||
output-dir: /home/tms/tmp/resource-backup-packages
|
||||
restore-task-root-dir: /home/tms/tmp/resource-restore
|
||||
tms-script-path: /home/tms/scripts/tms.sh
|
||||
# 资源恢复停服务命令,可按现场需要增删。
|
||||
restore-stop-commands:
|
||||
- code: STANDARD_NGINX
|
||||
command: /home/tms/bin/stop_standard_nginx.sh
|
||||
required: false
|
||||
product-types:
|
||||
- ENTERPRISE
|
||||
- INDIRECT
|
||||
- code: STANDARD_APPS
|
||||
command: /home/tms/bin/stop_standard_apps.sh
|
||||
required: false
|
||||
product-types:
|
||||
- ENTERPRISE
|
||||
- INDIRECT
|
||||
- code: TMS
|
||||
command: /home/tms/scripts/tms.sh stop
|
||||
required: false
|
||||
# 资源恢复启动服务命令。标准/间参默认启动 TMS、CMSP/CMTP 和 nginx。
|
||||
restore-start-commands:
|
||||
- code: TMS
|
||||
command: /home/tms/scripts/tms.sh start
|
||||
required: true
|
||||
- code: STANDARD_APPS
|
||||
command: /home/tms/bin/start_standard_apps.sh
|
||||
required: true
|
||||
product-types:
|
||||
- ENTERPRISE
|
||||
- INDIRECT
|
||||
- code: STANDARD_NGINX
|
||||
command: /home/tms/bin/start_standard_nginx.sh
|
||||
required: true
|
||||
product-types:
|
||||
- ENTERPRISE
|
||||
- INDIRECT
|
||||
# TMS 库备份排除表。默认跳过角色、授权、会话和审计表,避免恢复时覆盖新机器安全状态。
|
||||
tms-db-excluded-tables:
|
||||
- tms_role_account
|
||||
- tms_role_ukey_binding
|
||||
- tms_auth_full_account
|
||||
- tms_auth_session
|
||||
- tms_auth_challenge
|
||||
- tms_auth_audit_log
|
||||
- tms_operation_audit_log
|
||||
allowed-restore-roots:
|
||||
- /home/tms/config
|
||||
- /home/cmep4i
|
||||
- /home/cmep4d
|
||||
- /home/tms/tmp/resource-restore
|
||||
# 直接复制恢复的文件类资源,可按现场需要增删改。
|
||||
# FILE 的 restore-path 是目标文件;DIR/GLOB 的 restore-path 是目标目录。
|
||||
file-resources:
|
||||
- code: TMS_CONFIG
|
||||
mode: DIR
|
||||
path: /home/tms/config
|
||||
restore-path: /home/tms/config
|
||||
required: true
|
||||
- code: CP_CONFIG
|
||||
mode: FILE
|
||||
path: /home/cmep4i/cpconfig.cfg
|
||||
restore-path: /home/cmep4i/cpconfig.cfg
|
||||
product-types:
|
||||
- ENTERPRISE
|
||||
- INDIRECT
|
||||
required: true
|
||||
- code: CP_CONFIG
|
||||
mode: FILE
|
||||
path: /opt/cpconfig.cfg
|
||||
restore-path: /opt/cpconfig.cfg
|
||||
product-types:
|
||||
- DIRECT
|
||||
required: true
|
||||
- code: RECEIVER_LICENSE
|
||||
mode: FILE
|
||||
path: /home/cmep4i/cmep/license/cmep.license
|
||||
restore-path: /home/cmep4i/cmep/license/cmep.license
|
||||
product-types:
|
||||
- ENTERPRISE
|
||||
- INDIRECT
|
||||
required: true
|
||||
- code: RECEIVER_LICENSE
|
||||
mode: FILE
|
||||
path: /home/cmep4d/cmep/license/cmep.license
|
||||
restore-path: /home/cmep4d/cmep/license/cmep.license
|
||||
product-types:
|
||||
- DIRECT
|
||||
required: true
|
||||
- code: STANDARD_CMSP_APP_CONFIG
|
||||
mode: GLOB
|
||||
path: /home/cmep4i/cmsp/application-prd*.properties
|
||||
restore-path: /home/cmep4i/cmsp
|
||||
product-types:
|
||||
- ENTERPRISE
|
||||
- INDIRECT
|
||||
required: true
|
||||
- code: STANDARD_CMTP_APP_CONFIG
|
||||
mode: GLOB
|
||||
path: /home/cmep4i/cmtp/application-prd*.properties
|
||||
restore-path: /home/cmep4i/cmtp
|
||||
product-types:
|
||||
- ENTERPRISE
|
||||
- INDIRECT
|
||||
required: true
|
||||
- code: CUSTOM_CERT
|
||||
mode: FILE
|
||||
path: /home/tms/config/custom-cert.pem
|
||||
restore-path: /home/tms/config/custom-cert.pem
|
||||
required: false
|
||||
- code: CUSTOM_APP_CONFIG
|
||||
mode: GLOB
|
||||
path: /home/cmep4i/cmsp/custom-*.properties
|
||||
restore-path: /home/cmep4i/cmsp
|
||||
required: false
|
||||
|
||||
Reference in New Issue
Block a user