Strapi data transfer between environments: when teams need it
Teams that build content types and entries in development or staging need a way to move that work to production without retyping it. The strapi transfer command is Strapi's built-in tool for this. It moves data between Strapi instances, and the scope to plan for covers content, media and configuration. Before you schedule a run, check the current Strapi documentation for your version to confirm exactly which data types the command moves, and compare that list against your own content model so nothing important is left out of the plan.
Transfer fits when the source and target share the same schema and the goal is to replicate a known, tested state, such as a staging dataset that has passed review and must go live. It is a different tool from a file export, a seeding script or the Document Service API. Exports and scripts suit one-off imports or partial loads where your team controls each record. The Document Service API suits application code that creates or updates entries as part of its logic. Choose transfer when the whole environment state must match, and record why the other options were ruled out for that release.
The critical point is that the transfer is destructive on the target. Data on the receiving instance is overwritten by what arrives, so entries that editors created directly in production since the last sync can be lost. Before any run, take a database backup of the target, pause editorial work for the window, and confirm that the transfer token is scoped and stored correctly. Ask the team that owns the instance to confirm, in the documentation for your version, which items are excluded, how schema differences are reported and what the command does when the two environments run different versions.
How a transfer moves data from source to target
The transfer starts on the source instance, where a transfer token authorizes the command to read content, media and configuration. The command crosses the trust boundary to a target instance whose schema must already match the source. Before anything lands, the target's existing data is replaced, so check that the target is the environment you intend to overwrite and that the token scope and schema match.
Source, token, transfer command and the overwrite step on the target.
Why schema matching decides whether a transfer succeeds
Schema matching comes first because a transfer moves records into the target's content types, components and dynamic zones, and it expects those definitions to line up with the source. Drift is the usual cause of trouble. A field added on staging through the Content-type Builder, a renamed attribute, or a component whose fields changed in only one environment leaves the two sides describing different data. Depending on the mismatch, the transfer can stop with an error, or it can complete while some values are dropped or land in the wrong place. The second outcome is harder to spot, because the target has already been overwritten by the time anyone looks.
Before any run, freeze schema changes on every environment involved and compare what each side actually contains. Schema definitions live in the project's schema.json files under src/api and src/components, so a diff of those files between the source and target branches shows drift that the admin panel may not make obvious. Record the Strapi version, the installed plugins and the dynamic zone component lists alongside the diff, since a version or plugin mismatch can matter as much as a field mismatch. Confirm with the transfer documentation for your exact Strapi version which differences the tool tolerates and which block the run.
Assign one owner to the freeze and a named sign-off for the comparison, and make the check a documented gate in the release runbook. If a mismatch turns up, fix it in code, redeploy both environments and compare again. Hand edits in the admin panel recreate the drift the freeze was meant to stop. Rehearse the full sequence on a copy of the target first, so the schema gate is tested before the destructive overwrite is in play.
Transfer options and when each fits
This table compares the ways to move Strapi content, media and configuration between environments, including file-based and live transfers. Read each row for its trade-offs in speed, reversibility, exclusions and who must run the move. The main takeaway is that the wider the scope, the more of the target can be overwritten, so a narrower first move is usually the safer starting point.
| Transfer option | Speed and reversibility | What is excluded or at risk | Who runs it and when it fits |
|---|---|---|---|
| Content only | Moves entries for selected content types in one pass; target schema is untouched | Schema must already match on target; media and settings are not part of the move | Developers refreshing content on a target whose schema already matches the source |
| Media files only | Moves upload files and their records; time depends on library size | Entries that reference files can point to missing assets on the target | Teams rebuilding a staging library with production-like assets |
| Configuration only | Moves the content-type and component model, not the entries | Existing target content may not fit the new model until it is reviewed | Developers promoting schema changes through a development and staging pipeline |
| Full environment move | Moves content, media and configuration together; largest and slowest option | Server settings, secrets and deployment files sit outside the transfer and need separate handling | Platform engineers replacing staging or standing up a new environment; highest overwrite risk |
| Exported files, imported later | Export to a file, review it, then import; reversible if the export and a target backup are kept | Scope depends on the export options in your version; check it against the target schema | Teams that need an offline copy or a review step before any write to the target |
| Live transfer between running instances | Fastest path with both instances online; the target is overwritten, so recovery depends on a tested backup | Needs a transfer token with the right scope and matching schemas on both sides | Developers or platform engineers with access to both instances and a verified backup |
Setting up a transfer between two Strapi instances
This sequence moves content, media and configuration from a source Strapi 5 instance to a target without overwriting the target by accident. Each step ends with a check, so the team knows whether to continue, stop or restore before any target data changes.
Confirm Strapi 5 and Node.js support on both sides
Check that the source and target both run Strapi 5, ideally on the same minor release, and that each Node.js version is Active or Maintenance LTS, as Strapi 5 requires. Confirm each database is supported: PostgreSQL 14 or later, MySQL 8.0 or later, MariaDB 10.3 or later, or SQLite 3. The engineer records the versions from each project's package.json and the admin panel in the change ticket. Done means both sides report compatible versions and supported runtimes. Confirm current requirements in the Strapi installation docs before the change window.
Align content type schemas on both instances
Compare content types, components, dynamic zones, relations and enabled features such as internationalization across the source and target, usually by diffing the schema files in each project's source control. Treat a mismatch as a likely cause of a failed transfer, so the target should already contain every content type and field in scope, with the same names and field types. Developers fix drift in code first, then restart the target. Done means the schema diff shows no differences for content in scope and both sides run the same agreed commit.
Create a transfer token with the required scope
On the source, open the transfer token area of the admin panel (confirm the menu path for your version) and create a token with the scope that matches the planned direction, such as pull or push. Store the token in your secrets manager and share it only with the operator running the transfer. Set the shortest lifetime your version offers and record the token owner and expiry in the change record. Done means the token exists, its scope matches the plan, and the record names who can use it and when it expires.
Run a dry check against the target
Before any data moves, run the transfer in the dry-run or preview mode your Strapi version provides, or rehearse on a restored copy of the target in a separate environment. Review the output for schema mismatches, skipped items and warnings about files or settings that will not be copied. Compare the list of excluded items with the transfer documentation for your version, so the team knows what must be recreated by hand. Done means the check reports no schema errors and the team has written down every item that will not move.
Back up the target database and media
The platform or database owner, not the transfer operator, takes a full backup of the target database and its upload storage. Transfer overwrites data on the target, so this backup is the only reliable way back. Test that the backup restores into a scratch environment, and record its identifier, time and location in the change ticket. Done means a restore test has completed and someone other than the operator has confirmed the backup is usable and recorded.
Run the transfer with the target frozen
Pause editorial writes on the target or start a maintenance window, so no entries change during the copy. The operator runs
strapi transferwith the source URL, the token and the data scope chosen in the dry run. Watch the log until the command reports completion or an error. Do not start a second transfer or edit content until the first has finished. Done means the command exits with a success status and the log shows record and file counts for each content type.Verify entries, media and relations
Compare record counts for each content type, then spot-check published and draft entries against the source, including every locale in use. Open several entries with media fields and confirm the files load from the target's storage with no broken links. Check that relations and dynamic zone components display correctly in the admin panel and in API responses. Done means the counts match, the sampled entries and media behave correctly, and the signed check list is filed. Reopen editing only after this step passes.
What a transfer does not copy
Teams often expect a transfer to carry their whole environment across, but several categories of data and settings stay behind or need a separate step. The cards below cover the items most likely to be assumed, and each one needs confirmation against the current Strapi docs for your version before the first transfer runs.
Admin users and roles
Administrator accounts, their assigned roles and their login settings are tied to each instance's admin panel, so editors who work on staging may not exist on production after a transfer. Check whether admin accounts are included in the transfer scope for your version, and plan how production editors are created, invited or linked to a corporate identity provider. Confirm this before the cutover date.
SSO docsAPI tokens
API tokens are credentials that belong to a specific instance, and each token's scope and value must be set up again on the target. Client applications on production will keep using their existing tokens, so a token created on staging will not authorize them. List every consuming application and confirm which tokens it needs before the transfer, then rotate them as part of the release.
Environment secrets and configuration files
Values in .env files, database credentials, the APP_KEYS, JWT secrets and provider keys are set per environment and are never part of the content transfer. Production must keep its own values, so the target needs its secrets set before the import runs. Verify each required key on the target with your deployment tooling, not by copying files from the source.
Plugin and provider configuration
Settings for installed plugins, upload providers and email providers may live in configuration files or in the database, and how each one moves depends on the plugin. Compare the installed plugin versions and their config on both sides, since a missing plugin on the target can block the import. Confirm the handling of each plugin in the current docs.
Files and systems outside the database
Uploaded media, when stored on a local disk or in a provider bucket, and anything held in external services such as search indexes, webhooks targets, caches or front-end builds are outside the Strapi database. Decide how the upload store is synced and which downstream systems must be rebuilt or re-pointed after the transfer. Confirm how media is handled for your storage provider before you plan the cutover.
What the destructive overwrite on the target costs you
A transfer into a target instance replaces the content that is already there, so the real risk is losing production edits made since the last good copy, not the transfer itself. Editors who saved changes on the target after the source snapshot was taken will find those changes gone, and a mistaken source or wrong target can erase work that no one else holds. Treat the transfer as a restore operation from the first step, with the same controls you would apply to a database migration.
Put three controls in place before anyone runs the command. First, take a full database backup and a copy of the upload storage from the target, and confirm the restore steps with whoever owns your backup process, including how long a restore takes and whether it includes media files. Second, rehearse the whole transfer on a copy of the target, using the same transfer token scope, schema and data volume, and record how long it ran and what changed. Third, freeze editorial writes on the target for the window, either by pausing editor access through the admin roles or by agreeing a publishing moratorium with content owners, and state the window in writing.
Write a rollback plan that names who decides to roll back, the trigger (for example, a failed verification of entry counts or missing media), and the exact restore command or procedure for the database and uploads. Confirm that the backup you restore from was taken after the freeze began, and that you can restore it without reverting unrelated configuration changes. Ask your Strapi partner or internal team to document these steps and test them once before the production run, because a backup that has never been restored is an assumption, not a control.
Questions teams ask before running Strapi transfers
How much effort does a Strapi transfer take, and what drives it?
Effort depends mostly on how far the source and target have drifted. A transfer that moves a small set of content types between two instances with identical schemas is a short, contained task. Effort grows with the number of content types, the volume of media files, the number of locales, and how many configuration differences must be reconciled first. Each mismatch in component definitions, field names or relations has to be fixed on the target before data can land cleanly. Ask any partner to split the estimate into schema alignment, the transfer runs, verification of content and media, and the rework after a failed run.
Can our own team run a Strapi transfer without outside help?
Yes, if the team has someone comfortable with the Strapi CLI, the admin panel, and the target database. The core steps are to create a transfer token with the right scope, run the transfer command between instances, and verify the result. The risk sits in the destructive overwrite on the target, which replaces existing data for the selected parts, so a backup and a rehearsal on a non-production copy should come first. Teams without a Strapi owner usually find the schema matching and post-transfer checks take the most time, not the command itself.
What does outside help from DeployOpen cover for a transfer?
A fixed-scope engagement can cover planning the environment split, aligning content types and components between instances, setting up transfer tokens and access, rehearsing the transfer, documenting what is and is not copied, and writing the runbook your team follows on release day. Scope, deliverables and timelines are agreed in writing before work starts, and a quote follows from that written scope. Items outside the transfer itself, such as custom plugin work, media storage redesign or hosting changes, need separate agreement. Ask for the list of exclusions in writing.
How long does a Strapi transfer take in our environment?
No general duration can be stated for a transfer without knowing the content volume, media size, network path between instances, schema differences and how many rehearsals the team wants. The most reliable answer comes from a scoped review of your actual instances. Ask any partner to state assumptions about data volume and the number of environments involved, and to name the rehearsal and verification steps that sit inside the estimate. Treat any figure given without those inputs as unverified.
Does a Strapi transfer work across different Strapi versions?
Transfer should be treated as a same-version operation until confirmed otherwise. Strapi 5 changed its APIs and response format compared with v4, and v4 reached end of life on April 30, 2026, so teams still on v4 should plan the upgrade first and transfer afterward. Strapi's v4 to v5 migration docs describe an upgrade tool, codemods and data migration on first start, and say to back up the database first because downgrading is not supported. Confirm the exact version compatibility of the transfer feature against the Strapi docs for your release before you rely on it.
What must we confirm with Strapi before planning a transfer?
Confirm the transfer feature's supported version range, which content types, media files, configuration and roles it copies, and which items are excluded. Also confirm how it handles locales, draft and published versions, and relations to missing content. Check the Enterprise and Growth plan limits that affect your workflow, since review workflows and audit logs are Enterprise features and content history and releases start at Growth on the self-hosted pricing page. Ask Strapi whether any transfer behavior differs between Community and paid editions, and get the answers in writing before you set the runbook.
What happens to existing data on the target during a transfer?
The target is overwritten for the parts the transfer covers, so the existing data there can be replaced and cannot be recovered from the transfer itself. Plan a full database and media backup on the target immediately before the run, confirm that a restore has been tested, and define who approves the overwrite. Teams in regulated sectors should also record who ran the transfer, when, and what was replaced, so the change can be evidenced during later reviews.
How DeployOpen scopes and delivers environment transfers
DeployOpen starts an environment transfer engagement with a written review of the schemas on both sides. Before any content moves, the team compares the content types, components, dynamic zones, relations and enabled features in the source and target strapi transfer instances, and records every difference that would cause a schema mismatch. The output is a short list of decisions for your team: which schema changes must land on the target first, which content types are in the transfer, whether media files are included, and which configuration is excluded. The agreed scope is written down with those decisions, the named environments, the Strapi version on each side and the transfer method, so the boundary of the work is fixed before anyone runs a command.
Next, DeployOpen rehearses the transfer on a copy of the target. The rehearsal uses a restored database backup and the same transfer token scope and command that will be used in production, so the team can confirm that the target will be overwritten as expected, that the token has only the permissions it needs and that the schemas match. Each rehearsal run is recorded with the errors found and the fix applied. The production run then follows a runbook that includes a fresh backup of the target database and media storage taken immediately before the transfer, a freeze on editorial changes on the target, and a verification pass comparing entry counts, published status, locales and sample records against the source. Rollback steps are part of the runbook, so restoring the target is a planned action, not an improvised one.
Retainers cover promotions that recur, such as a monthly content release from staging to production. A retainer usually includes re-running schema review after each schema change, updating the runbook and token rotation, and retesting the transfer after Strapi upgrades. Ask any provider to confirm in writing who is responsible for the target backup, who approves the overwrite, how transfer tokens are rotated and who holds the rollback decision. DeployOpen does not hold certifications or partner status with Strapi Solutions SAS, and the license and feature availability for your plan should be confirmed against the Strapi self-hosted pricing page before the scope is signed.

