Blog

Reprint Copies Your Whole WordPress Site. Here’s How to Use It Safely

· 6 min read
Two identical WordPress site windows in shades of blue, with tiles flowing from the left one to build the right one; among the tiles are a key, a padlock and a user icon

WordPress now has an official way to copy a whole site. Reprint, announced on WordPress.org on November 13, is a free plugin and command-line client from the WordPress.org team. It moves a site’s files and database to a new host, or to your laptop for testing. It’s a welcome tool, and it’s worth understanding what it hands over before you use it. A Reprint copy isn’t a backup of your posts. It’s your entire site: every user’s password hash, every API key a plugin saved, every form entry and order. Treat the copy the way you treat the original.

What Reprint does

You install the plugin on the site you want to copy, and run the client, reprint.phar, on the computer that will receive it. The client pulls files and database rows over HTTPS, in small pieces, so your host doesn’t have to build one huge archive first. If the connection drops, you run the same command again and it picks up where it stopped. Run it again later and it copies only the files that changed. It can also rewrite the site’s address everywhere it appears, including inside serialized data, which is the part that usually breaks migrations by hand.

The copy goes straight from your site to the client you authorized, without passing through a Reprint service. And the WordPress.org plugin only sends data out. It doesn’t accept uploads back into the site.

How it decides who gets your site

Activating the plugin doesn’t share anything. A client has to be authorized first, and Reprint has two ways to do that:

  • Migration Token (the default). The client generates a key pair and prints a Migration Token, which contains the public key. You paste it into Tools → Reprint Server. The private key never leaves the receiving computer. This is the method to use.
  • Connection token. If the server’s PHP doesn’t have OpenSSL, Reprint falls back to a shared secret saved in WordPress. The documentation calls it what it is: the token “acts as a password for downloads.” You pass it on the command line, which means it can end up in your shell history.

Either way, whoever holds that credential can download everything, for as long as it stays authorized.

What’s in the copy

Reprint’s own FAQ is direct about this: the copy includes posts, pages, media, users, settings, themes, plugins and their tables, and it “may include private content, personal data, password hashes, and configuration secrets.” In practice, a copy of a typical business site holds:

  • every account and its password hash
  • customer names, addresses and orders, if you run a store
  • every form submission your form plugin kept
  • API keys and tokens stored in plugin settings: payment gateways, email services, CRMs, cloud storage
  • whatever your theme and plugins put in the uploads folder, including files you thought were private

Reprint skips caches, logs, backup archives and temporary files. Everything else comes along. That’s the point of the tool, and it’s why the copy needs as much care as the live site.

Using it safely

Before the copy

  • Prefer the Migration Token. If Tools → Reprint Server shows a connection token form instead, your host’s PHP lacks OpenSSL. Use the token, but keep it out of your history (in bash, a command that starts with a space isn’t saved when HISTCONTROL includes ignorespace), and replace it when you’re done.
  • Keep the key and state folder private. On a server, put reprint-key.pem and the state directory outside anything the web server serves. The move guide says the same.
  • Know what plugins the copy will run. A copy wakes up with your live settings. Reprint’s docs warn that it may still send email, take payments or call other live services.

Right after the copy

Before you open the copy in a browser, turn off anything that reaches the outside world. On a test copy, from its folder:

# stop outgoing mail and live integrations
wp plugin deactivate wp-mail-smtp woocommerce-gateway-stripe
# stop WP-Cron from running scheduled jobs
wp config set DISABLE_WP_CRON true --raw
# keep search engines out
wp option update blog_public 0

Swap in the plugin slugs your site actually uses. The goal is that the copy can’t email your customers, charge a card or sync to your CRM.

When you’re done

  1. Remove the client’s access. In Tools → Reprint Server, choose Remove Migration Token, or clear the connection token.
  2. Delete the plugin. Deactivating keeps its settings and credentials. Deleting it through WordPress removes them. A copy tool you’re not using is an open door you have to remember. Add it to your remote-access audit if you keep it.
  3. Delete copies you don’t need. The docs are clear that revoking access leaves existing copies unchanged. Old copies are the ones that leak: a laptop that gets stolen, a staging server nobody patched, a folder synced to a cloud drive.

If the copy will be on the internet

A copy on a public server is a second production site, with your real data and none of your attention. If you need one for client review or testing:

  • Put it behind a password at the web server, not just WordPress. On Apache or LiteSpeed, basic auth in .htaccess is enough.
  • Keep blog_public at 0, and don’t link to it from anywhere.
  • Give it its own database user and new salts (wp config shuffle-salts). The move guide tells you not to reuse the source host’s database credentials.
  • If people other than you will log in, reset their passwords on the copy and remove accounts they don’t need. Better yet, strip personal data from the copy before you share it.
  • Keep it updated, or take it down. An unpatched staging site is the easiest way into the data you protect on the live one.

Is it ready?

Reprint is at version 0.11, with about 100 active installs. It comes from the WordPress.org team and is open source on GitHub, which counts for a lot. Still, it’s new, and the in-browser Playground option is labeled experimental. For a first run, copy a site to your own computer and check it before you trust it with a real move. Reprint’s docs say a finished transfer doesn’t prove every plugin works on the copy.

The bigger lesson

Every copy of your site is a place your data lives, and you’re responsible for all of them. Reprint makes copies easy, which is good. It also makes them easy to forget. The habits are simple: authorize, copy, revoke, delete the plugin, and delete the copy when its job is done. It’s the same test every plugin faces on this site: a plugin has to earn its place. A migration tool earns its place during the migration, and not a day longer.

Sources