Ways to get a staging copy of your site

You've got four usual routes to a test copy. Your host might build it for you. A plugin might build it inside your site. You might set up a separate address by hand. Or you might keep a copy on your own computer.
What you need first
- Admin access to your hosting account or your site's dashboard.
- Enough free disk space for a second copy of your files and database.
- A recent backup of the live site. Take it before you start, not after.
- A way to keep the copy private. See how to keep a test copy private.
Route 1: your host's staging tool
Some hosts build staging into the control panel. You click a button and the host makes the copy.
Kinsta's documentation says that1 "Each WordPress install at Kinsta can have its own free WordPress staging environment". When you create one, an option lets you1 "clone an existing environment" such as the live site.
WP Engine works in a similar way, with named environments. Its documentation says2 "Each site can have up to three environments (Production, Staging, and Development)."
Limits differ by host and by plan, so read your own host's page. On its shared plans, WP Engine says2 "Custom domains cannot be added to Staging." Your test copy may only be reachable on a host-given address.
Kinsta adds a reminder.1 Staging environments "should only be used for development/testing."
If your host has no staging tool, ask its support team before you look elsewhere. This page doesn't compare prices, because plans change often. Check the host's own page for what's included today.
Route 2: a staging plugin
If you run WordPress, a plugin can clone the site inside the same hosting account. The WP STAGING plugin's page in the WordPress.org directory describes one example. Among its listed features is the ability to3 "Clone the entire production site into a subdirectory like example.com/staging-site".
The same page says3 "Only administrators can access the cloned or backup website". It adds that3 "All data stays on your server unless you choose a transfer or remote storage workflow".
That page lists some features, such as pushing changes back to live, under a paid edition called PRO.3 Read the plugin's own page for what each edition does today. This site doesn't recommend a particular plugin. Other plugins and tools exist.
A plugin copy lives on the same server as the live site. That's handy, because you don't need a second hosting account.
Route 3: a subdomain or a subfolder
You can also set up the copy by hand on its own address. A subdomain looks like staging.example.com. A subfolder looks like example.com/staging-site.
This route takes more work. You copy the files, copy the database, then fix the addresses inside them so the copy points at itself. A hosted tool or a plugin does those steps for you.
WP Engine's documentation puts it this way:2 "It is standard for Staging and Development environments to use different domains than the Production environment." A separate address is normal.
Route 4: a copy on your own computer
A local copy runs on your own machine. Wikipedia describes the usual developer setup this way:4 "development is typically an individual developer's workstation".
Desktop tools can set up a local WordPress site. Local, one example, says it is5 "only available as a desktop application". Other tools do the same job.
A local copy suits building and trying things without a network. It doesn't behave exactly like your host's server, so a change that works at home can still act differently once it's live. What is a staging site? covers that difference.
Which to choose
| Route | Needs | Good for | Watch for |
|---|---|---|---|
| Host's tool | A host that offers one | Quick, close to the live setup | Plan limits |
| Plugin | A WordPress site and admin access | Hosts with no tool | Shares the live server |
| Subdomain or subfolder | Comfort with files and databases | Full control | More manual steps |
| Local copy | A computer that can run the software | Offline work | Differs from the real server |
Whichever route you pick, a copy made today goes out of date as the live site changes. The page on what ends up in the copy explains what you're actually getting.
Reference list
- Staging Environments, Kinsta
- Sites and environments, WP Engine
- WP STAGING plugin page, WordPress.org
- Deployment environment, Wikipedia
- Get Started, Local