# XGen Deep Backup

<div align="left"><figure><img src="https://454332562-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGyyK7o0fNRXvtva8vEkG%2Fuploads%2FV8vT6nlkF7RiQJe5tFVu%2FxgtDeepBackUp_user.jpg?alt=media&#x26;token=1b1fd83f-a180-4424-8fe0-3420261a8a79" alt=""><figcaption></figcaption></figure></div>

## Overview

The Deep Backup Tool enables users to revert to an earlier Xgen scene along with all related files as they were during the backup. You might wonder why this tool is necessary when you could simply save your Maya scene and reopen an earlier version. Here are a few reasons why this tool is beneficial:

*   #### Managing Xgen in Maya

    Xgen in Maya operates in a 'live' mode, continuously referencing the most recent .ptex files. If you've received feedback to modify elements like hair clumping and update Ptex maps (density, curl, clumps, region, etc.), and your director later prefers the version from 10 days ago, simply reopening that Maya scene won't sync with older settings. This is because Xgen links to the latest maps/settings by default. To preserve previous work states, always maintain a separate copy of the entire Xgen folder.
* To prevent this, we should perform incremental backups regularly.

{% embed url="https://youtu.be/3sKLX6U532E" %}

***

To correctly use the deep backup tool:

1. ​Make sure to have a Maya saved first
2. Enter a deep back up folder name and select either .ma or .mb
3. Click on **Deep Backup**. The Deep Backup Tool will create a backup folder each time you click ‘Deep Backup'. The default folder can be found in your MayaProject/data/xgt\_backup folder.
4. You can also set the backup path to a different directory by clicking on the **>** key.

<div align="left"><figure><img src="https://454332562-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGyyK7o0fNRXvtva8vEkG%2Fuploads%2FHP86KKsoiGjxgFCoTcbB%2Fdeepbackup-v1_orig.jpg?alt=media&#x26;token=270217ac-4603-46e1-b160-2d4f7ce37a8e" alt=""><figcaption></figcaption></figure></div>

{% hint style="success" %}
In each backup folder, it contains:

1. The entire xgen collections folder
2. The 3dPaintTextures folder
3. The .ma/.mb) file
4. The .xgen file

When you do a deep backup, these items are copied and moved over to the backup folder, and they will be put into a ‘dated’ folder, to avoid overwrites.
{% endhint %}

5\. To roll back a version, simply click on one of the file on the list, and click **“Roll Back”**. Here I currently have a scene with modifier renamed

<figure><img src="https://454332562-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGyyK7o0fNRXvtva8vEkG%2Fuploads%2FtTgraiPlR3I42K5pjPWQ%2Fimage103_orig.png?alt=media&#x26;token=43ce0f24-0962-433e-9c99-dba679c366e2" alt=""><figcaption></figcaption></figure>

6. It will ask if you want to replace the ‘current’ collection folder with the backup.

<div align="left"><figure><img src="https://454332562-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGyyK7o0fNRXvtva8vEkG%2Fuploads%2FZXU54xnQ5BRG1Wq6UOms%2Fimage63_orig.png?alt=media&#x26;token=e0993b38-91c6-4fa4-8c67-511f3c566524" alt=""><figcaption></figcaption></figure></div>

{% hint style="info" %}
Now, something to take note of when you want to ‘Roll Back’ to a previous backup folder.

* Each roll backs will make yet, another copy of your '**current**' **xgen** and **3dPaintTextures** folder, and store it in **backupPath\xgt\_temp\original**. If there is any issue, you can go to this folder and make manual copy/paste if necessary. If everything works fine after a roll back, you can simply remove these extra folders.
{% endhint %}

***

