cd {senselinkge-standardalone}/backup_tool
./data_recovery.sh /data/backup/all/20220222/
リストア実行時は、SenseLink GE Enterprise の Web UI の操作や API の実行は行わないでください。また、大量の顔認証の実行は控えてください。
リストアが正常に完了すると、以下のようなログが出力されます。
root@ip-10-0-0-0:/data/{senselinkge-standardalone}/backup_tool# ./data_recovery.sh /data/backup/all/
20220222/ log/
root@ip-10-0-0-0:/data/{senselinkge-standardalone}/backup_tool# ./data_recovery.sh /data/backup/all/20220222/
recovery full data start.
recovery mysql data start.
mysql: [Warning] Using a password on the command line interface can be insecure.
mysql: [Warning] Using a password on the command line interface can be insecure.
mysql: [Warning] Using a password on the command line interface can be insecure.
mysql: [Warning] Using a password on the command line interface can be insecure.
recovery mysql data complete.
recovery mongo data start.
2022-02-27T18:36:37.257+0900 building a list of collections to restore from /mongodb_bk/sensekeeper dir
2022-02-27T18:36:37.258+0900 reading metadata for sensekeeper.recognition.chunk from /mongodb_bk/sensekeeper/recognition.chunk.metadata.json
2022-02-27T18:36:37.258+0900 reading metadata for sensekeeper.alarm.chunk from /mongodb_bk/sensekeeper/alarm.chunk.metadata.json
2022-02-27T18:36:37.258+0900 reading metadata for sensekeeper.register.chunks from /mongodb_bk/sensekeeper/register.chunks.metadata.json
2022-02-27T18:36:37.258+0900 reading metadata for sensekeeper.register.files from /mongodb_bk/sensekeeper/register.files.metadata.json
2022-02-27T18:36:37.272+0900 restoring sensekeeper.register.files from /mongodb_bk/sensekeeper/register.files.bson
2022-02-27T18:36:37.284+0900 restoring sensekeeper.alarm.chunk from /mongodb_bk/sensekeeper/alarm.chunk.bson
2022-02-27T18:36:37.297+0900 restoring sensekeeper.recognition.chunk from /mongodb_bk/sensekeeper/recognition.chunk.bson
2022-02-27T18:36:37.310+0900 restoring sensekeeper.register.chunks from /mongodb_bk/sensekeeper/register.chunks.bson
2022-02-27T18:36:37.310+0900 restoring indexes for collection sensekeeper.register.files from metadata
2022-02-27T18:36:37.312+0900 finished restoring sensekeeper.register.files (14 documents)
2022-02-27T18:36:37.315+0900 restoring indexes for collection sensekeeper.alarm.chunk from metadata
2022-02-27T18:36:37.319+0900 reading metadata for sensekeeper.col from /mongodb_bk/sensekeeper/col.metadata.json
2022-02-27T18:36:37.329+0900 finished restoring sensekeeper.alarm.chunk (2 documents)
2022-02-27T18:36:37.330+0900 restoring indexes for collection sensekeeper.register.chunks from metadata
2022-02-27T18:36:37.344+0900 restoring sensekeeper.col from /mongodb_bk/sensekeeper/col.bson
2022-02-27T18:36:37.355+0900 finished restoring sensekeeper.register.chunks (14 documents)
2022-02-27T18:36:37.355+0900 restoring indexes for collection sensekeeper.col from metadata
2022-02-27T18:36:37.356+0900 finished restoring sensekeeper.col (1 document)
2022-02-27T18:36:37.375+0900 restoring indexes for collection sensekeeper.recognition.chunk from metadata
2022-02-27T18:36:37.391+0900 finished restoring sensekeeper.recognition.chunk (115 documents)
2022-02-27T18:36:37.391+0900 done
recovery mongo data complete.
recovery feature-db start.
opq_service
recovery feature-db complete.
recovery full data complete.