How to Clone a Wordpress Website With Duplicator

Started by rcjordan, March 27, 2022, 02:12:03 PM

Previous topic - Next topic

rcjordan


ergophobe

There are several such options. I've tried Duplicator, but ended up with WP Migrate DB and then just moving files with rsnyc if available.

It's one of the things about WP that's still a PITA. With most modern PHP packages, you can use Composer. You just copy the small composer.json file to the new server, run "composer install" and everything downloads with the proper dependencies, checking your PHP version and everything. Then you just transfer media files and the DB and you're done. With a system like Drupal, you can also copy over just the settings, because configuration is all in code, as it should be, and data is in the DATAbase.

Wordpress can't do this because from a developer point of view, it's really unchanged since WP 1.0. It is built for the world that existed before Composer, git and all the modern tools. I've tried some of the modern system to run WP with Composer, but they all fundamentally fail because the basic architecture of the WP file structure means they can't work cleanly.

So that's why we're stuck with things like Duplicator while the rest of the PHP world has moved on. It is a strategy that worked very well for WP to spread, but unfortunately, it's also a strategy that makes it incapable to incorporate any of the development advances of the last 15 years.