Restore a Redis Database (RDB) file to a self-managed Redis database, and then use Data Transmission Service (DTS) to migrate the data to a Tair (Redis OSS-compatible) instance.
Tair (Redis OSS-compatible) does not support uploading RDB files directly.
Procedure
Restore the local RDB file to a self-managed Redis database.
ImportantIf an RDB file is already stored in the directory (dir) specified in the redis.conf (Redis configuration) file, back up the file.
Configure the RDB parameters in redis.conf.
dbfilename dump.rdb # The RDB file name. This must be the same as the name of the file to be restored. dir /var/lib/redis # The path of the RDB file.Disable the append-only file (AOF) feature by configuring the following parameter in redis.conf.
When the Redis service restarts, it uses the AOF file by default to restore data. This prevents the RDB data from being restored to Redis. Therefore, you must temporarily disable the AOF feature.
appendonly noRestart the self-managed Redis database.
Query the Redis data to confirm that the data from the RDB file is restored to the self-managed Redis database.
Use DTS to migrate data from the self-managed Redis database to a Tair (Redis OSS-compatible) instance.
References
If you have a small amount of non-production data, you can also use the RedisShake open source tool to migrate data from the RDB file to a Tair (Redis OSS-compatible) instance. For more information, see RedisShake RDB Reader.
To migrate an AOF file to a Tair (Redis OSS-compatible) instance, see Migrate from an AOF file.