↑ ↓ to select, Enter to open

Developersin progress

ddev-sync

Bring production home, without the real customer data.

In short

ddev-sync is a DDEV add-on that pulls a project's production database and files into your local DDEV environment over SSH. The remote is only ever read. Personal data is swapped for realistic, stable fake values on the way in.

Who is it for?
Developers who work with DDEV and regularly need a copy of production on their own machine.
Runs on
DDEVDockerSSHrsyncMySQL/MariaDBS3
What does it cost?
Nothing. The source is open, under the MIT license.

What it’s about

Getting a live project onto your own machine is always the same routine. Dump the remote database, import it, rsync the uploads, point the local config at the new database, clear the caches. Then hope nobody’s real customer data ends up in a screenshot.

ddev-sync does it with one command. The add-on connects over SSH, brings the database and files into your DDEV project, and anonymizes personal data before you ever look at it. It never writes to production.

ddev-sync is still a release candidate. It has run end to end against real installations, but not yet in every kind of setup.

What it does

Syncing

  • ddev sync asks which target and which steps to run. Database, files and anonymizing are pre-selected.
  • --yes takes every step, including the setup commands your framework needs after the import.
  • Media in an S3 bucket can be copied along.
  • --dry-run prints the full plan and runs nothing.

Anonymizing

  • Names, email addresses and the like are replaced with believable fake values.
  • The values are stable: the same person gets the same fake identity on every sync.
  • Sessions and queues are emptied, passwords made unusable, and you get a local admin.
  • You add your own rules in a file in the project.

Frameworks and environments

  • Profiles for TYPO3, Laravel, Symfony, WordPress, Drupal and Shopware. Each knows its upload folders and post-import commands.
  • A generic profile for everything else.
  • Can read host, user and path from your Deployer configuration.
  • A sync endpoint for production sites that run as a Docker stack.

When something is off

  • ddev sync doctor checks SSH, paths, disk space, credentials and the local setup before a sync fails halfway.
  • Error messages end with a link to the matching section of the docs.

Getting started

You need DDEV 1.25.0 or newer and an SSH key. From the project directory:

ddev add-on get NoiXdev/ddev-sync --version v0.1.0-rc.7
ddev auth ssh
ddev restart
ddev sync init

While ddev-sync is a release candidate, you install it with an explicit version. init asks for a name, the remote and its stage, writes your first target and checks it with doctor at the end. Everything else is in the documentation.

ddev-sync compared

We like the other tools too. Here they are, side by side and honest.

ddev-syncddev pullDrush sql:syncYour own scripts
Pulls the production database✓yes✓yes✓yes✓yes
Pulls uploads and files✓yes✓yesseparately with drush rsyncif you build it
Anonymizes personal data✓yes–noseparately with sql:sanitizeif you build it
FrameworksTYPO3, Laravel, Symfony, WordPress, Drupal, Shopwaredepends on the recipeDrupal onlyany
Never writes to the remote✓yes✓yeseither directionup to you
Ready-made integration for Upsun, Acquia and Lagoon–no✓yes–no–no
Stable releaseno, release candidate✓yes✓yesup to you

As of November 2026. No guarantee of accuracy; corrections welcome as an issue.

When something else fits better

Not every tool fits every job. In these cases we'd point you somewhere else ourselves:

  • ddev pull

    When your project is hosted on Upsun, Acquia or Lagoon. DDEV ships ready-made recipes for those.

  • Drush

    When all your projects are Drupal and your Drush aliases are already set up.

Frequently asked questions

How do I pull a production database into DDEV?

With ddev-sync, ddev sync is enough. The add-on streams the dump over SSH, imports it, fetches the files and then anonymizes the user data.

Does ddev-sync write anything to the production server?

No. It reads the database with a dump and the files with rsync. All writing happens in your local DDEV project.

Which frameworks are supported?

There are profiles for TYPO3 (9 to 13), Laravel, Symfony, WordPress, Drupal and Shopware 6. Every other project uses a generic profile, which anonymizes nothing until you add your own rules.

Does ddev-sync work with MySQL 8?

Not as the local DDEV database; that is refused. Locally you need MariaDB. The remote can be MySQL or MariaDB.

Do the fake values stay the same on every sync?

Yes. The same person gets the same fake identity on every sync, so test accounts and bug reports keep making sense.

Can I sync from a production that runs in Docker?

Yes, through the optional sync endpoint you add to the stack. You then only need SSH access to the Docker host, no Docker rights.

Something broken, or missing?

An issue in the repository is the quickest way. For wishes and questions too.

Open an issue

Rather ask directly?

Our Discord is where we help out, and so do other people who use the tool.

Join the Discord

From the logbook

  1. Ready to try: ddev-sync brings production home

    A DDEV add-on that pulls a project's production database and files over SSH and swaps personal data for fake values on the way in.

    New project

You might also like