All Products
Search
Document Center

Tair (Redis® OSS-Compatible):Migrate from an RDB file

Last Updated:Sep 09, 2025

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.

Note

Tair (Redis OSS-compatible) does not support uploading RDB files directly.

Procedure

  1. Restore the local RDB file to a self-managed Redis database.

    Important

    If an RDB file is already stored in the directory (dir) specified in the redis.conf (Redis configuration) file, back up the file.

    1. 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.
    2. 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 no
    3. Restart the self-managed Redis database.

    4. Query the Redis data to confirm that the data from the RDB file is restored to the self-managed Redis database.

  2. 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.