Skip to content

migrate:rollback

10.4+

Rollback one or more migrations.

Examples

  • migrate:rollback --all. Rollback all migrations
  • migrate:rollback --all --no-progress. Rollback all migrations but avoid the progress bar
  • migrate:rollback --tag=user,main_content. Rollback all migrations tagged with user and main_content tags
  • migrate:rollback classification,article. Rollback terms and nodes imported by classification and article migrations
  • migrate:rollback user --idlist=5. Rollback imported user record with source ID 5

Arguments

  • [migrationIds]. Comma-separated list of migration IDs.

Options

  • --all. Process all migrations.
  • --tag=TAG. A comma-separated list of migration tags to rollback
  • --feedback=FEEDBACK. Frequency of progress messages, in items processed
  • --idlist=IDLIST. Comma-separated list of IDs to rollback. As an ID may have more than one column, concatenate the columns with the colon ':' separator
  • --progress[=PROGRESS]. Show progress bar [default: 1]
  • --no-progress. Negate --progress option.

Global Options

  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.

Topics

Aliases

  • mr
  • migrate-rollback

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.