drush migrate-importfor drush 6x
Perform one or more migration processes
migrate-import is a Drush command from the migrate project.migrate
migrate-import has 1 alias/es:
migrate-import accepts 1 argument/s:
migration : Name of migration(s) to import. Delimit multiple using commas.
migrate-import accepts 15 option/s:
--limit : Limit on the length of each migration process, expressed in seconds or number of items
--feedback : Frequency of progress messages, in seconds or items processed
--idlist : A comma delimited list of ids to import or rollback. If unspecified, migrate imports all pending items or rolls back all items for the content set.
--all : Process all migrations that come after the specified migration. If no value is supplied, all migrations are processed.
--instrument : Capture performance information (timer, memory, or all)
--force : Force an operation to run, even if all dependencies are not satisfied
--group : Name of the migration group to run
--notify : Send email notification upon completion of operation
--wildcard : Process migrations that match a certain pattern. For example, Content*.
--update : In addition to processing unprocessed items from the source, update previously-imported items with new data
--needs-update : Reimport up to 10K records where needs_update=1. This option is only needed when your Drupal DB is on a different DB server from your source data. Otherwise, these records get migrated with just migrate-import.
--stop : Stop specified migration(s) if applicable.
--rollback : Rollback specified migration(s) if applicable.
--file_function : Override file function to use when migrating images.
--ignore-highwater : Ignore the highwater field during migration
Import new articles
Import new items, and also update previously-imported items
migrate-import Article --update
Import two specific articles. The ids refer to the value of the primary key in base table
migrate-import Article --idlist=4,9
Import two specific articles. A colon can be used to separate parts of compound keys; otherwise, compound keys match by the first key field.
migrate-import Article --idlist=450:pasta,451
Import for up to 60 seconds after stopping and rolling back the Article migration.
migrate-import Article --limit="60 seconds" --stop --rollback
Import up to 100 items from the migration named Article.
migrate-import Article --limit="100 items"
Display a progress message every 1000 processed items or less
migrate-import User --feedback="1000 items"
Perform User migrations and all that follow it.
comments powered by Disqus