Copy the file <apim_root>/database/datastore/dump.rdb from the old API Manager installation to the new one.
If you have made any changes to the datastore, confirm the location of dump.rdb by running the command below:
CONFIG GET dir
The name of the .rdb file is in the following entry in the Redis config at <apim_root>/database/datastore/redis.conf.properties.
dbfilename dump.rdb