Split one RDB file to several RDB files.
- Go 1.24
git clone https://github.com/montplex/rdb-split.git
cd rdb-split
go buildCopy or move your RDB file to the same directory as rdb-split.
mv <your-rdb-file> .Run rdb-split.
./rdb-split --name dump.rdb --target-size-gb 5It means split dump.rdb to several files, each file size is less than 5GB as rdb encode do compress.
Then it will generate several files in directory 'rdb_dir'.
TIPS: You can change rdb file name --name or --target-size-gb.
mkdir analysis_output
docker run -it --rm -v "$(pwd)/rdb_dir:/tmp/rdb_dir" -v "$(pwd)/analysis_output:/engula/analysis_output" registry.cn-guangzhou.aliyuncs.com/montplex/engula-valuesight --batchThis tool use lib rdb
rdb-split will skip 'stream', 'module' type.