-- util dumpInstance /path/to/mysqlsh_full_$(date '+%Y%m%d_ %H%M%S') ### リストア対象の識別 $ target="2025-11-12 14:30:00" $ target_full=$(dirname $(find /path/to/backup/mysqlsh_full* -type f -name "@.json" ! -newermt "$target" | so rt | tail -1)) ### @.jsonからバイナリログの情報も取り出せる -> mysqlbinlogの最初のファイルを指定するのに使 える $ jq '.binlogFile, .binlogPosition, .gtidExecuted' @.json "bin.000005" 948 "aefbe16b-aedd-11f0-8a5f-02001702f486:1-2188" 40/45