# Duplicating a virtual environment

## Introduction

If you're creating multiple virtual environments that have similar attributes (partial `name`, `description`, and/or `type`), you can duplicate an existing virtual environment and then edit the duplicated virtual environment as needed.

## What information is duplicated?

<table><thead><tr><th width="221.0859375">Virtual environment item</th><th width="124.1796875">Duplicated?<select><option value="PC07581ImKEx" label="yes" color="blue"></option><option value="fnG1erOZKCak" label="no" color="blue"></option></select></th><th>Notes</th></tr></thead><tbody><tr><td>Name</td><td><span data-option="PC07581ImKEx">yes</span></td><td><p>The original name is duplicated and appended with the word <code>Copy</code>. For example:</p><p></p><p><img src="https://2440044887-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYNcUBVQwSkOMG6KjZfz%2Fuploads%2FKuNgMh2yP58ahandI4Ya%2Fdupe%20virtual%20environment%20%20b.png?alt=media&#x26;token=3b856f1f-c0d0-4449-884e-7ff99e852bf7" alt=""></p><p></p><p>Here, <code>FR (France) - Production</code> has become <code>FR (France) - Production Copy</code>.</p></td></tr><tr><td>Description</td><td><span data-option="PC07581ImKEx">yes</span></td><td>Duplicated without any changes.</td></tr><tr><td>Type</td><td><span data-option="PC07581ImKEx">yes</span></td><td>Duplicated without any changes.</td></tr><tr><td>Configuration versions</td><td><span data-option="fnG1erOZKCak">no</span></td><td>The duplicated virtual environment is created with a new <a href="../../../implementing-virtual-environments/configuring-a-virtual-environment-version/understanding-virtual-environment-versions#the-lifecycle-of-a-virtual-environment-version">draft versio</a>n, ready for you to <a href="../../implementing-virtual-environments/configuring-a-virtual-environment-version/configuring-virtual-environment-replacements">configure replacement components</a>. </td></tr><tr><td>Package deployments</td><td><span data-option="fnG1erOZKCak">no</span></td><td>The package deployments panel will be updated if/when you <a href="../../virtual-environment-packages/managing-packages/deploying-a-package">deploy flow versions to this environment via a package</a>.</td></tr><tr><td>Flow deployments</td><td><span data-option="fnG1erOZKCak">no</span></td><td>The virtual environment is duplicated without any flow deployments. This panel will be updated when you choose to deploy flow versions to this environment, either <a href="../../implementing-virtual-environments/deploying-a-single-process-flow-to-a-virtual-environment">individually</a> or via <a href="../../virtual-environment-packages/managing-packages/deploying-a-package">packages</a>. </td></tr><tr><td>Deployment status</td><td><span data-option="fnG1erOZKCak">no</span></td><td><p>If you duplicate a virtual environment which is currently <code>deployed</code> (i.e. it has a <a href="../../implementing-virtual-environments/deploying-the-configuration-for-a-virtual-environment">deployed configuration</a> version AND at least one <a href="../../implementing-virtual-environments/deploying-a-single-process-flow-to-a-virtual-environment">deployed and enabled flow deployment</a>), the duplicated environment is created with a <code>not deployed</code> status. For example:</p><p><br><img src="https://2440044887-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYNcUBVQwSkOMG6KjZfz%2Fuploads%2FEL1KovXPNJR2jme2gIjI%2Fdupe%20virtual%20environment%20%20a.png?alt=media&#x26;token=96f96e2f-ed0e-4447-b914-4102eead6372" alt=""></p></td></tr></tbody></table>

## The steps

{% stepper %}
{% step %}
**Access virtual environments**

[Log in to the dashboard](https://app.wearepatchworks.com/virtual-environments) and select `virtual environments` | `overview` from the left-hand navigation menu.
{% endstep %}

{% step %}
**Select the required virtual environment**

Click the ellipsis icon associated with the virtual environment that you want to duplicate - for example:

<div align="left"><figure><img src="https://2440044887-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYNcUBVQwSkOMG6KjZfz%2Fuploads%2FvXZzupHcsXYJ0xYkDL7W%2Fdupe%20virtual%20environment%20%200.png?alt=media&#x26;token=6ee7271f-5d8f-434e-93a8-385c3a7827c2" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}
**Duplicate the selected virtual environment**

Select the `duplicate` option:

<figure><img src="https://2440044887-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYNcUBVQwSkOMG6KjZfz%2Fuploads%2FtOHMr1mNRUBkB5ooq4PM%2Fdupe%20virtual%20environment%20%201.png?alt=media&#x26;token=febbcaf5-84e7-44f9-9130-fa97c8946726" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Update the duplicated virtual environment**

A new virtual environment is added to your virtual environments overview page, ready for you to update as needed - for example:

<div align="left"><figure><img src="https://2440044887-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYNcUBVQwSkOMG6KjZfz%2Fuploads%2FWpucUUfuqN8tYLWBKFjp%2Fdupe%20virtual%20environment%20%202.png?alt=media&#x26;token=e95e1c42-5124-4041-9623-12abcef170fa" alt="" width="563"><figcaption></figcaption></figure></div>

{% hint style="info" %}
For information about updating a new virtual environment, please refer to the guidance in our [Implementing virtual environments](https://doc.wearepatchworks.com/product-documentation/virtual-environments/implementing-virtual-environments) section.
{% endhint %}
{% endstep %}
{% endstepper %}
