uSync Content Migration
Overview
Section titled “Overview”UpDoc’s test site serves as the development environment for both the package and client-specific content. Document types, templates, block grids, blueprints, and content are all built here and deployed to production sites via uSync.
This guide covers how to export content from the UpDoc test site and import it into a target site.
Full Import into a New Site
Section titled “Full Import into a New Site”Use this when setting up a new site from scratch.
Prerequisites
Section titled “Prerequisites”- Target site running Umbraco v17+ with uSync installed
- Target site should have a clean database (no existing content)
Step 1: Copy Physical Files
Section titled “Step 1: Copy Physical Files”uSync exports database records but not physical files. Copy these manually before importing:
| Source | Target | Notes |
|---|---|---|
Views/*.cshtml | Views/ | Templates |
Views/Partials/ | Views/Partials/ | Partial views (block grid components, layouts) |
wwwroot/media/ | wwwroot/media/ | Media files (images, PDFs) |
| Custom stylesheets/scripts | Same paths | Any frontend assets |
Step 2: Export from Source Site
Section titled “Step 2: Export from Source Site”- Open the source site’s backoffice
- Go to Settings > uSync
- Click Export > Export to File under Everything
- Download the
usync-export.zip
Step 3: Import into Target Site
Section titled “Step 3: Import into Target Site”- Complete the Umbraco install wizard on the target site
- Go to Settings > uSync
- Click Import > Import from File under Everything
- Upload the export zip
- Click Import
Step 4: Verify
Section titled “Step 4: Verify”Check these sections in the backoffice:
- Content — all content nodes present
- Settings > Document Types — all custom types present
- Settings > Document Blueprints — all blueprints present
- Media — all media items present
- Settings > Templates — all templates present, no warnings
Incremental Updates
Section titled “Incremental Updates”For day-to-day changes after the initial import.
- Copy new/changed
.configfiles fromuSync/v17/subfolders - Copy any new
.cshtmltemplate files - Import via Settings > uSync > Import or restart the site
Incremental updates are additive and should not cause GUID clashes.
UpDoc Workflow Files
Section titled “UpDoc Workflow Files”UpDoc workflow configurations (updoc/workflows/) are custom JSON files outside Umbraco’s content system. They are not exported by uSync and must be copied manually or managed via version control.
Running Multiple Sites
Section titled “Running Multiple Sites”When running two Umbraco sites on localhost (different ports), authentication cookies conflict because they share the name UMB_UCONTEXT.
Fix: Set unique cookie names in each site’s appsettings.json:
{ "Umbraco": { "CMS": { "Security": { "AuthCookieName": "UMB_UCONTEXT_MYSITE" } } }}Starting Over
Section titled “Starting Over”If an import fails:
- Stop the site
- Delete the SQLite database from
umbraco/Data/ - Remove the connection string from
appsettings.json - Restart — Umbraco returns to Install mode
- Re-run the wizard and reimport