MoveTables create

vtctldclient MoveTables create

Create and optionally run a MoveTables VReplication workflow.

1. vtctldclient MoveTables create

Examples

1. vtctldclient --server localhost:15999 movetables --workflow commerce2customer --target-keyspace customer create --source-keyspace commerce --cells zone1 --cells zone2 --tablet-types replica

Options

1. --all-tables                         Copy all tables from the source.
2. --atomic-copy                        (EXPERIMENTAL) A single copy phase is run for all tables from the source. Use this, for example, if your source keyspace has tables which use foreign key constraints.
3. --auto-start                         Start the workflow after creating it. (default true)
4. -c, --cells strings                      Cells and/or CellAliases to copy table data from.
5. --defer-secondary-keys               Defer secondary index creation for a table until after it has been copied.
6. --exclude-tables strings             Source tables to exclude from copying.
7. -h, --help                               help for create
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-shards strings              Source shards to copy data from when performing a partial MoveTables (experimental).
12. --source-time-zone string            Specifying this causes any DATETIME fields to be converted from the given time zone into UTC.
13. --stop-after-copy                    Stop the workflow after it's finished copying the existing rows and before it starts replicating changes.
14. --tables strings                     Source tables to copy.
15. --tablet-types strings               Source tablet types to replicate table data from (e.g. PRIMARY,REPLICA,RDONLY).
16. --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