- About DM
- What is DM?
- Basic Features
- Advanced Features
- Merge and Migrate Data from Sharded Tables
- Migrate from MySQL Databases that Use GH-ost/PT-osc
- Filter Certain Row Changes Using SQL Expressions
- DM Architecture
- Benchmarks
- Quick Start
- Deploy
- Maintain
- Tools
- Cluster Upgrade
- Manage Data Source
- Manage a Data Migration Task
- Manually Handle Sharding DDL Lock
- Manage Schemas of Tables to be Migrated
- Handle Alerts
- Daily Check
- Usage Scenarios
- Troubleshoot
- Performance Tuning
- Reference
- Secure
- FAQ
- Glossary
- Release Notes
Resume a Data Migration Task
You can use the resume-task
command to resume a data migration task in the Paused
state. This is generally used in scenarios where you want to manually resume a data migration task after handling the error that get the task paused.
help resume-task
resume a specified paused task
Usage:
dmctl resume-task [-s source ...] <task-name | task-file> [flags]
Flags:
-h, --help help for resume-task
Global Flags:
-s, --source strings MySQL Source ID
Usage example
resume-task [-s "mysql-replica-01"] task-name
Flags description
-s
: (Optional) Specifies the MySQL source where you want to resume the subtask of the migration task. If it is set, the command resumes only the subtasks on the specified MySQL source.task-name | task-file
: (Required) Specifies the task name or task file path.
Returned results
resume-task test
{
"op": "Resume",
"result": true,
"msg": "",
"sources": [
{
"result": true,
"msg": "",
"source": "mysql-replica-01",
"worker": "worker1"
}
]
}
Was this page helpful?