Migrate create
vtctldclient Migrate create
Create and optionally run a Migrate VReplication workflow.
1. vtctldclient Migrate create
Examples
1. vtctldclient --server localhost:15999 migrate --workflow import --target-keyspace customer create --source-keyspace commerce --mount-name ext1 --tablet-types replica
Options
1. --all-tables Copy all tables from the source.
2. --auto-start Start the workflow after creating it. (default true)
3. -c, --cells strings Cells and/or CellAliases to copy table data from.
4. --defer-secondary-keys Defer secondary index creation for a table until after it has been copied.
5. --exclude-tables strings Source tables to exclude from copying.
6. -h, --help help for create
7. --mount-name string Name external cluster is mounted as.
8. --no-routing-rules (Advanced) Do not create routing rules while creating the workflow. See the reference documentation for limitations if you use this flag.
9. --on-ddl string What to do when DDL is encountered in the VReplication stream. Possible values are IGNORE, STOP, EXEC, and EXEC_IGNORE. (default "IGNORE")
10. --source-keyspace string Keyspace where the tables are being moved from.
11. --source-time-zone string Specifying this causes any DATETIME fields to be converted from the given time zone into UTC.
12. --stop-after-copy Stop the workflow after it's finished copying the existing rows and before it starts replicating changes.
13. --tables strings Source tables to copy.
14. --tablet-types strings Source tablet types to replicate table data from (e.g. PRIMARY,REPLICA,RDONLY).
15. --tablet-types-in-preference-order When performing source tablet selection, look for candidates in the type order as they are listed in the tablet-types flag. (default true)
Options inherited from parent commands
1. --action_timeout duration timeout to use for the command (default 1h0m0s)
2. --compact use compact format for otherwise verbose outputs
3. --format string The format of the output; supported formats are: text,json. (default "text")
4. --server string server to use for the connection (required)
5. --target-keyspace string Target keyspace for this workflow.
6. -w, --workflow string The workflow you want to perform the command on.
SEE ALSO
- vtctldclient Migrate - Migrate is used to import data from an external cluster into the current cluster.
