Imagine: you have 2000 articles on Joomla with custom fields, dozens of categories, and thousands of images. Manual migration to a new CMS would take a month for a whole team. Errors are inevitable—broken links, lost SEO metadata, broken URL structure. We've been automating content migrations for 7 years—over 50 successful projects. Our approach: ETL pipelines—scripts extract data from the source CMS, transform it for the target structure, and load it via API or direct database access. A key property is idempotency: rerunning does not duplicate data. And a rollback mechanism allows restoring everything to the previous state with a single request. Automation outperforms manual migration by 10x in speed and accuracy.
Contact us—we'll evaluate your project within 1 day and offer a fixed estimate. Our track record: over 50 successful migrations, from monolithic WordPress to headless systems.
Why Automated Migration Pays Off?
Manual content transfer is error-prone: broken links, lost metadata, disrupted SEO structure. An automated ETL pipeline solves these issues systematically:
- Speed: 1000 articles moved in 2–3 hours instead of 2–3 weeks manually.
- Accuracy: field mapping (title, content, slug, SEO meta) eliminates typos and omissions.
- Repeatability: idempotent scripts can be run multiple times without duplication.
- Rollback: on error, a single API call reverts the system to its previous state.
What Problems Does Automated ETL Solve?
Field and Taxonomy Mapping
Different CMS store categories, tags, and metadata differently. We build correspondences (e.g., wp_postmeta._yoast_wpseo_title → Strapi.seo.metaTitle) and clean data from junk (extra HTML wrappers, empty fields).
Media File Migration
Images, documents, and videos need to be copied and links updated in content. The script uploads files to the target CMS and replaces URLs in article bodies.
SEO Metadata
Title, description, Open Graph, canonical—all critical for ranking. We transfer these fields to prevent ranking drops after migration.
Idempotency and Rollback
Migration is stressful for business. Our scripts are safe for repeated runs, and the rollback mechanism removes all imported data with one request. We guarantee data integrity—idempotent scripts and rollback mechanism.
Popular CMS migration pairs:
| Source CMS | Target CMS | Special Considerations |
|---|---|---|
| WordPress | Contentful | Migrate Yoast SEO, media, taxonomies |
| Joomla | WordPress | Map categories, FG Joomla to WordPress plugin |
| 1C-Bitrix | Strapi | Custom product types, highload blocks |
| Drupal | Sanity | Structured content, blocks |
How to Automate Content Migration Between CMS?
The process includes several strictly controlled stages:
- Analysis and mapping preparation — 1–2 days. Create a field mapping document and data schema.
- ETL script development — 2–3 days. Build script in Python/Node.js with pagination and error handling.
- Test run on 10–20 records — 0.5 day. Verify correctness, adjust mapping.
- Full migration — 1–2 days. Transfer all materials, media, metadata.
- Verification and support — 1 day. Count check, link check, team consultation.
Automation cuts migration time by 20x compared to manual transfer.
What's Included in Our Service?
- Source code of the ETL script — you can run it yourself or hand it to a contractor.
- Mapping and configuration documentation — description of all fields, transformation rules.
- Rollback data — dump of the source DB or ability to delete imported records.
- Post-migration support — 5 business days to fix any discrepancies.
Case Study: WordPress → Contentful
Below is a real script we used to migrate 1500 articles with media files and Yoast SEO metadata. It runs in batches of 50 records, supports resumption from the last successful batch, and logs each operation.
import mysql.connector
import requests
from tqdm import tqdm
import logging
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
class WordPressToStrapi:
def __init__(self):
self.wp_db = mysql.connector.connect(
host='old-wp-server',
database='wp_production',
user='readonly',
password='password'
)
self.strapi_url = 'http://new-strapi:1337/api'
self.strapi_token = 'strapi-api-token'
self.media_map = {} # wp_attachment_id → strapi_media_id
def migrate_media(self):
"""Migrate media files via Strapi API"""
cursor = self.wp_db.cursor(dictionary=True)
cursor.execute("""
SELECT p.ID, p.guid, p.post_title, pm.meta_value as alt_text
FROM wp_posts p
LEFT JOIN wp_postmeta pm ON p.ID = pm.post_id AND pm.meta_key = '_wp_attachment_image_alt'
WHERE p.post_type = 'attachment'
AND p.post_mime_type LIKE 'image/%'
""")
for media in tqdm(cursor.fetchall(), desc="Migrating media"):
try:
response = requests.get(media['guid'], timeout=30)
if response.status_code != 200:
logger.warning(f"Cannot fetch {media['guid']}")
continue
filename = media['guid'].split('/')[-1]
upload_response = requests.post(
f"{self.strapi_url}/upload",
headers={'Authorization': f"Bearer {self.strapi_token}"},
files={'files': (filename, response.content)},
data={'fileInfo': f'{{"alternativeText": "{media.get("alt_text", "")}"}'}
)
if upload_response.status_code == 200:
new_id = upload_response.json()[0]['id']
self.media_map[media['ID']] = new_id
logger.info(f"Media {media['ID']} → {new_id}")
except Exception as e:
logger.error(f"Media {media['ID']} failed: {e}")
def migrate_posts(self, batch_size=50, offset=0):
cursor = self.wp_db.cursor(dictionary=True)
cursor.execute("""
SELECT p.*, GROUP_CONCAT(
DISTINCT CASE WHEN tt.taxonomy = 'category' THEN t.name END
SEPARATOR ','
) as categories
FROM wp_posts p
LEFT JOIN wp_term_relationships tr ON p.ID = tr.object_id
LEFT JOIN wp_term_taxonomy tt ON tr.term_taxonomy_id = tt.term_taxonomy_id
LEFT JOIN wp_terms t ON tt.term_id = t.term_id
WHERE p.post_type = 'post' AND p.post_status = 'publish'
GROUP BY p.ID
ORDER BY p.ID
LIMIT %s OFFSET %s
""", (batch_size, offset))
posts = cursor.fetchall()
if not posts:
return 0
for post in tqdm(posts, desc=f"Posts batch {offset//batch_size + 1}"):
self._migrate_single_post(post)
return len(posts)
def _migrate_single_post(self, post):
cursor = self.wp_db.cursor(dictionary=True)
cursor.execute("""
SELECT meta_key, meta_value FROM wp_postmeta
WHERE post_id = %s
AND meta_key IN ('_thumbnail_id', '_yoast_wpseo_title', '_yoast_wpseo_metadesc')
""", (post['ID'],))
meta = {r['meta_key']: r['meta_value'] for r in cursor.fetchall()}
payload = {
'data': {
'title': post['post_title'],
'slug': post['post_name'],
'content': post['post_content'],
'publishedAt': post['post_date'].isoformat(),
'seo': {
'metaTitle': meta.get('_yoast_wpseo_title', post['post_title']),
'metaDescription': meta.get('_yoast_wpseo_metadesc', ''),
},
'cover': self.media_map.get(meta.get('_thumbnail_id')),
'legacy_wp_id': post['ID'],
}
}
response = requests.post(
f"{self.strapi_url}/articles",
headers={
'Authorization': f"Bearer {self.strapi_token}",
'Content-Type': 'application/json'
},
json=payload
)
if response.status_code not in (200, 201):
logger.error(f"Post {post['ID']} failed: {response.text}")
def run(self):
logger.info("Starting migration...")
self.migrate_media()
logger.info(f"Media map: {len(self.media_map)} files")
offset = 0
total = 0
while True:
count = self.migrate_posts(batch_size=50, offset=offset)
total += count
if count < 50:
break
offset += 50
logger.info(f"Migration complete: {total} posts")
Comparison: Manual vs Automation
| Criteria | Manual Migration | Automation (Our ETL) |
|---|---|---|
| Time for 1000 articles | 10–20 days | 3–5 hours |
| Errors (misses, broken links) | 5–10% | < 0.1% |
| Rollback capability | No | Yes, single API call |
| SEO metadata transfer | Requires manual checking | Automatic mapping |
| Cost (person-hours) | High | 5–10x lower |
Timeline and Cost
Completion time depends on data volume and mapping complexity. For a typical project (1000–5000 materials, two CMS, media files) — 3–7 business days. Cost is calculated individually after analysis of source and target systems. We provide a free estimate within 1 day.
Get a consultation—contact us and we'll prepare a migration plan with precise timelines.







