# Staging WordPress with the cPanel WP Toolkit

> Create a staging copy of your WordPress site with WP Toolkit, test changes safely and push them to the live site.

Source: https://helpcenter.ruachost.com/wordpress/wp-toolkit/staging-wordpress-with-the-cpanel-wp-toolkit/

The **WP Toolkit** in cPanel makes it easy to create a **staging environment** for your WordPress site. A staging site is a safe copy of your live website where you can test changes, updates, or new features before publishing them to your main site.

## Why Use Staging?

- Test updates, plugins, and themes without affecting your live site.
- Experiment with design changes safely.
- Push changes to production only when ready.
- Reduce downtime and avoid breaking your live site.

## Creating a Staging Site

1. **Log in to cPanel.**
2. On the **Tools page → Domains section**, click **WP Toolkit**.
3. Locate the WordPress installation you want to stage.
4. Click **Clone**.
5. Choose where to clone the site:

   - **New Subdomain** (e.g., `staging.example.com`)
   - ### Existing Domain/Subdomain
6. (Optional) Change the database name if needed.
7. Click **Start**.
8. WP Toolkit will create a staging copy of your site.

## Synchronizing Data Between Sites

Once you’ve made changes on the staging site, you can sync them back to the live site:

1. In WP Toolkit, locate the **source site** (live or staging).
2. Click **Copy Data**.
3. In the **Copy Data** dialog:

   - **Location** → Select the destination site (staging or live).
   - **Data to Copy** → Choose files, database, or both.
   - **Database Tables** → Select specific tables, new tables, or all tables.
   - (Optional) **Create a Restore Point** → Enables rollback if something goes wrong.
4. Click **Start**.
5. WP Toolkit copies the selected data to the destination site.\
   ![Screenshot](https://helpcenter.ruachost.com/kb-images/b0c84505e9c0.webp)

## Notes

- Always create a **restore point** before syncing data.
- Staging sites can become out of sync with the live site sync regularly if needed.
- Use staging for testing updates, new plugins, or design changes before applying them live.
