calicoctl datastore migrate import

This sections describes the calicoctl datastore migrate import command.

Read the calicoctl Overview for a full list of calicoctl commands.

Display the help text for ‘calicoctl datastore migrate import’ command

Run calicoctl datastore migrate import --help to display the following help menu for the command.

  1. Usage:
  2. calicoctl datastore migrate import --filename=<FILENAME> [--config=<CONFIG>]
  3. Options:
  4. -h --help Show this screen.
  5. -f --filename=<FILENAME> Filename to use to import resources. If set to
  6. "-" loads from stdin.
  7. -c --config=<CONFIG> Path to the file containing connection
  8. configuration in YAML or JSON format.
  9. [default: /etc/calico/calicoctl.cfg]
  10. Description:
  11. Import the contents of the etcdv3 datastore from the file created by the
  12. export command.

Examples

Import the contents of an etcdv3 datastore stored in a file named etcd-migration.

  1. calicoctl datastore migrate import -f etcd-migration

Options

  1. -f --filename=<FILENAME> Filename to use to import resources. If set to
  2. "-" loads from stdin.

General options

  1. -c --config=<CONFIG> Path to the file containing connection
  2. configuration in YAML or JSON format.
  3. [default: /etc/calico/calicoctl.cfg]

See also