AWS DMS(数据库迁移服务)提供了一种逐渐迭代的方式来迁移数据,并且它会记住每次任务的进度。如果任务在迁移期间中断,它可以在下次重新启动时从中断处继续。
AWS DMS任务支持两种方式来实现断点恢复:
示例:
aws dms create-replication-task --replication-task-id task01
--source-endpoint-arn arn:aws:dms:
--target-endpoint-arn arn:aws:dms:
--replication-instance-arn arn:aws:dms:
--migration-type full-load-and-cdc
--table-mappings file://mapping.json
--start-replication-task-type start-replication
--resume-task-type resume-processing
--cdc-start-position "schema_name": "public", "table_name": "%", "commit_timestamp":
--replication-task-settings file://settings.json
其中,--resume-task-type参数启用了“Resume”选项。