Skip to main content
GrN.dk

Main navigation

  • Articles
  • Cases
  • Contact
  • Your Digital Project Manager
  • About Greg Nowak
  • Services
  • Portfolio
  • Container
    • Excel Freelancer
    • Kubuntu - tips and tricks
    • Linux Apache MySQL and PHP
    • News
    • Image Gallery
User account menu
  • Log in

Breadcrumb

  1. Home

Importing External Data into Drupal: A Practical Migration Plan

By Greg Nowak. Last reviewed 25 July 2026.

Importing a forum, spreadsheet, legacy CMS, or operational database into Drupal is not simply a matter of matching columns. It is a controlled data project involving content design, business rules, privacy decisions, testing, and launch planning.

Drupal provides a capable migration framework, but the software cannot decide which historical records remain useful, whether former users should receive accounts, or how old URLs should behave. Those decisions need to be made before development starts. A good migration therefore begins with the future site—not the structure of the system being retired.

Define what success means

Start with a short inventory covering content, users, taxonomy, files, comments, redirects, languages, permissions, and important relationships. Then classify each group as migrate, transform, archive, or discard. This prevents obsolete structures and low-value data from being reproduced merely because they exist.

Agree acceptance criteria at the same time. Record counts are useful, but they are not enough. Success might also require preserved author attribution, working media, valid internal links, correctly assigned categories, searchable content, and redirects for valuable legacy URLs.

Question Likely decision What to verify
Will editors maintain this content? Drupal content or custom entity Fields, workflow, ownership
Is it needed only for reference? Read-only archive Access, search, retention
Do former users need to sign in? User migration or attribution only Consent, status, authentication
Must files and comments remain connected? Separate dependent migrations Stable IDs and lookup results
Does the source change after extraction? Freeze window or incremental run Cut-off time and delta handling
A migration decision matrix for turning business requirements into an implementable Drupal scope.

Choose a source that can be inspected

CSV remains a sensible option for finite, reasonably flat datasets. It can be reviewed by owners, editors, and developers, while Drupal's maintained Migrate Source CSV module provides a source plugin for the core Migrate API. Every row should have a stable, unique source ID; row numbers are a poor substitute if files may be regenerated.

A direct SQL source is often better for large datasets or complex relationships. JSON, XML, or an API may suit repeatable feeds. If data needs regular two-way synchronisation, however, the requirement has moved beyond a one-off migration and should be designed as an integration.

Keep an untouched source extract, document its encoding and delimiters, and identify personal or confidential fields before sharing it with a delivery team. Clean disposable test copies rather than silently changing the only source of record.

Build small, ordered migrations

Drupal's Migrate API follows an extract-transform-load model expressed as source, process, and destination. The process stage can normalise values, provide defaults, skip unsuitable rows, and resolve references. Migrate Plus can represent migrations as configuration entities and group related migrations; Migrate Tools supplies management commands and a useful dependency view.

Do not begin with one enormous migration. Establish the destination model first, then implement one entity type at a time. A common order is taxonomy and users, followed by files or media, primary content, comments, and redirects. Declare dependencies where later records require IDs created by earlier migrations.

Start with awkward but representative samples: missing authors, duplicate titles, embedded markup, unusual characters, orphaned files, and deep relationships. A tidy sample proves very little.

Rehearse the command-line workflow

With a current, compatible Migrate Tools installation, the core working loop remains straightforward:

drush migrate:status
drush migrate:import migration_id --limit=50
drush migrate:messages migration_id
drush migrate:rollback migration_id

Use the exact commands supported by the versions locked in the project's Composer files. Run imports in an isolated development or staging environment first. Drupal's documentation also recommends considering modules that perform expensive work when entities are saved; search indexing, outbound notifications, webhooks, and other downstream processing should be deliberately controlled during rehearsals.

A rollback is part of migration development, not a complete disaster-recovery strategy. Maintain verified backups and a documented restore procedure before any production run.

Test meaning, not just totals

For each rehearsal, capture imported, skipped, failed, and warning counts. Inspect migration messages and compare selected records side by side with the source. Test relationships in both directions: open a migrated article and check its author, media, taxonomy, comments, and links; then inspect samples belonging to each author or category.

Ask editors to review content quality and operations staff to check permissions, workflows, search, and integrations. Agencies should provide a concise exception log explaining what was excluded and why. This turns apparent gaps into traceable decisions.

The production runbook should name the source freeze time, backup owner, command order, validation checks, redirect activation, cache and index work, sign-off owner, and fallback point. After launch, keep the source export, mappings, migration configuration, logs, and approval notes together.

When outside help is useful

A Drupal consultant or digital project manager becomes valuable when the project spans legacy databases, editorial judgement, privacy, agency coordination, and a fixed launch window. The useful contribution is not merely writing YAML: it is helping stakeholders settle the decisions that make the YAML dependable.

If you are replacing an old CMS, consolidating forum content, or bringing operational records into Drupal, talk to Greg about shaping the migration into a testable project with a clear scope and launch path.

Related on GrN.dk

  • Microsoft Access Database Resources: When to Fix, Split, or Replace Your System
  • AI disclosure rules belong in the CMS, not a spreadsheet
  • AI images need a media-library audit before they reach clients

Need help with this kind of work?

Plan your Drupal migration with Greg Get in touch with Greg.

Sources

  • Drupal Migrate API overview
  • Executing migrations
  • Migrate Tools
  • Migrate Source CSV
  • Migrate Plus
Last modified
2026-07-25

Tags

  • Drupal
  • Migrate
  • Data Import
  • Legacy Systems
  • CMS Migration
  • Log in to post comments

Review Greg on Google

Greg Nowak Google Reviews

 

Illustrated infographic summarizing: WordPress Supports Old PHP; Your Production Server Shouldn’t
WordPress Supports Old PHP; Your Production Server Shouldn’t
2026-08-01

WordPress still runs on legacy PHP, but compatibility is not a security policy. Build and test your upgrade path before PHP 8.2 support ends.

Illustrated infographic summarizing: The AI-built tool your team relies on needs an owner
The AI-built tool your team relies on needs an owner
2026-07-31

AI-built internal tools can become business-critical before anyone owns them. Here is how to secure, review, monitor, and retire them without blocking useful work.

Illustrated infographic summarizing: Your AI model has an expiry date: build the migration lane now
Your AI model has an expiry date: build the migration lane now
2026-07-30

AI models retire on a schedule. Learn how to map dependencies, test replacements, release safely and preserve a working rollback route.

Illustrated infographic summarizing: Copilot Has Repo-Level Metrics Now. What Should Teams Measure?
Copilot Has Repo-Level Metrics Now. What Should Teams Measure?
2026-07-29

GitHub’s repo-level Copilot metrics show where AI is active, but not whether it adds value. This scorecard connects usage with delivery, quality, and cost.

Illustrated infographic summarizing: Not Every AI Job Needs an Instant Answer: Batch the Backlog
Not Every AI Job Needs an Instant Answer: Batch the Backlog
2026-07-28

Move delay-tolerant AI work into dependable batch queues to cut processing costs without compromising quality, data controls, or urgent workflows.

Illustrated infographic summarizing: A stray Set-Cookie can waste your CDN: audit the cache at the edge
A stray Set-Cookie can waste your CDN: audit the cache at the edge
2026-07-27

Cloudflare Cache Response Rules can recover wasted CDN capacity, but first you need a route-level audit of public, personal and authenticated responses.

Illustrated infographic summarizing: Shorter TLS certificates expose every renewal you never automated
Shorter TLS certificates expose every renewal you never automated
2026-07-26

Shorter TLS lifetimes leave less room for manual handoffs and faulty deploy hooks. Build a renewal path that protects service availability.

Illustrated infographic summarizing: One Timeout, Two Orders: Make AI Actions Safe to Retry
One Timeout, Two Orders: Make AI Actions Safe to Retry
2026-07-25

A timed-out AI action may already have succeeded. Stable keys, durable ledgers, queues and stored results prevent a routine retry from duplicating real work.

Illustrated infographic summarizing: Your AI Visibility Dashboard Needs a Methodology, Not More Charts
Your AI Visibility Dashboard Needs a Methodology, Not More Charts
2026-07-24

A practical framework for measuring AI-search visibility with fixed prompts, repeated tests, separate metrics, retained evidence, and honest reporting.

Illustrated infographic summarizing: AI Admin APIs Are Here—But Your Directory Is Still the Source of Truth
AI Admin APIs Are Here—But Your Directory Is Still the Source of Truth
2026-07-23

New AI admin APIs can automate access and spend controls, but reliable governance still starts with authoritative directory data and clear ownership.

More articles
RSS feed

GrN.dk web platforms, web optimization, data analysis, data handling and logistics.