# Copying the database

## Copying between the Live and Development databases <a href="#copying-across-versions" id="copying-across-versions"></a>

This option lets you overwrite the entire database, or only a selected data type, from Development to Live and vice versa. Note that the operation can take some time to finish if you have a large database.

To start the process, navigate to the *Data* tab and then click the *Copy and restore database* link.

<figure><img src="https://34394582-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M5sbzwG7CljeZdkntrL%2Fuploads%2FewwYkss0PBSbDIgGyPHL%2Fcopy-and-restore-database-link%402x.png?alt=media&#x26;token=90550442-65ba-4e78-a849-8bebdc38432a" alt=""><figcaption></figcaption></figure>

Bubble will open a popup that shows you the different options.

<figure><img src="https://34394582-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M5sbzwG7CljeZdkntrL%2Fuploads%2FMt2b21sqWnYGrGVCTbEm%2Fcopy-and-restore-database%402x.png?alt=media&#x26;token=df2898b6-6d09-4f52-a247-f142066bb8d4" alt=""><figcaption><p>Click the image to enlarge.</p></figcaption></figure>

You will see two buttons:

* Copy Live data into the Development database
* Copy Development data into the Live database

To start the process, click one of the buttons.

<figure><img src="https://34394582-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M5sbzwG7CljeZdkntrL%2Fuploads%2FT0eiAbDmsvnzl1p7j3Mx%2Fcopy-from-live-to-development.png?alt=media&#x26;token=17286eb9-7f75-4a7d-af7b-79848be4d938" alt=""><figcaption><p>Click the image to enlarge.</p></figcaption></figure>

1. In this example, we want to copy data from Live into Development, so we click the left button
2. *Data types to copy* lets you select *all* *types* or select one type\*
3. As an extra security measure to avoid accidental overwriting of data, we ask that you spell out a short sentence to confirm that you want to proceed
4. Finally, you can press the *Confirm* button to start the operation. For large database where you copy all content, the process can take some time to finish

{% hint style="danger" %}
Keep in mind when copying Live data into Development that this can give your *Collaborators* access to more data than you intended. Always be mindful of the privacy of your users when you copy data.
{% endhint %}

{% hint style="warning" %}
\*Be cautious when you copy only one data type, as it can lead to data inconsistencies if some things are related. Sometimes it's better to still restore all to make sure that no relationships are lost.
{% endhint %}
