Data Migration Guide
# Overview
AMDC offers the RDB Cluster Data Migration Tool to facilitate the swift transfer of data from Redis clusters to AMDC clusters, enabling users to migrate their data efficiently. This document will outline how to utilize the data migration tool.
# Using the Data Migration Too
- The binary file is named
amdc-data-mirgration: Running./amdc-data-mirgration -helpdisplays the available parameters.
- Among these, -f, -h, and -p are mandatory parameters. -f is followed by the directory path, and the program will automatically retrieve the rdb files within this directory. If the cluster has a password, the -a parameter followed by the password needs to be added; if AMDC is in cluster mode, the -c flag should also be included.

- For AMDC in cluster mode
Example: ./amdc-data-mirgration -c -h 127.0.0.1 -p 6359 -f /root/server
- For AMDC in standalone or master-slave mode
Example: ./amdc-data-mirgration -h 127.0.0.1 -p 6359 -f /root/server
# Migrating with amdc-cli
The amdc-cli --cluster command can be used to import data exported from one Redis cluster into another AMDC cluster.
Below is the syntax for the amdc-cli command:
amdc-cli --cluster import target(host:port) --cluster-from host:port
Where:
- from is the address of the AMDC cluster node from which data is being exported.
# Data Migration via the Management Console
The AMDC Management Console provides a data migration option. Under the Tenant role, select 'Service List' -> 'Settings', then click the 'Restore Data' button, and upload the rdb file to proceed with the migration.
