1. HENGSHI SENSE 备份迁移操作指南
本指南所需脚本下载地址在文本下方的附录中1.1. 备份
- 创建备份文件夹BACKUP_DIR,并将sense-backup.sh, sense-restore.sh复制到此文件夹中
- 配置backup.sh 中: [HS_HOME, PG_USR, PG_PWD, PG_HOST, PG_PORT] 变量
- 执行
./backup.sh
1.1.1. 拷贝本目录内所有文件到目标机器
cd ..
rsync -avzP BACKUP_DIR $remote:/op/
1.2. 迁移
- 安装hengshi, 并且执行 bin/hengshi-sense-bin init all
- 启动数据库
bin/hengshi-sense-bin start metadb
bin/hengshi-sense-bin start engine
- 进入BACKUP_DIR文件夹
- 配置restore.sh 中 [HS_HOME, PG_USR, PG_PWD, PG_HOST, PG_PORT] 变量
- 执行
./restore.sh
1.2.1. 启动hengshi
bin/hengshi-sense-bin start hengshi
1.2.2. 更新License
因为迁移之后的硬件信息发生变化,License失效,需要重新申请。