> For the complete documentation index, see [llms.txt](https://docs.vega365.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.vega365.com/xport/user-manual/volume-migration/step-by-step-user-guide/rehydrate-archived-media.md).

# Rehydrate Archived Media

At this stage of the migration, the devices are actively recording to the migrated volume on the **destination Recorder**. However, the media previously recorded on this volume—while it was part of the **source Recorder**—is currently **orphaned** and cannot be played back. This step **rehydrates the media database** by reconnecting the previously stored content with the destination Recorder's media database, restoring full playback access to historical video.

{% stepper %}
{% step %}

### Start

<figure><img src="https://771655570-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxj7X0c61rEOwTqSjg2jo%2Fuploads%2FXcV850mEHqYML8aAKOOQ%2Frehydratestart.png?alt=media&amp;token=1954ed61-b5b7-4b74-b5f6-6e5342adc86f" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Wait for Program Generation

XPort generates a program that must be executed on the destination recorder to re-hydrate the database. Wait for the program generation to complete.

<figure><img src="https://771655570-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxj7X0c61rEOwTqSjg2jo%2Fuploads%2FXDR4EXAOr7xIhxgMgQz8%2FhydprogramGen.png?alt=media&amp;token=1c20a296-c9a3-46f6-b8ff-e0db8ca3868c" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Copy program

Copy the program to the destination recorder.

<figure><img src="https://771655570-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxj7X0c61rEOwTqSjg2jo%2Fuploads%2FLt5k1qAlgrzsPFjx7JMu%2Fhyd_copy_program.png?alt=media&amp;token=899f5000-9061-408b-84d9-7e3638df6118" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Extract ZIP and Execute

Run the "launch.bat" program as an administrator on the destination recorder. &#x20;

<figure><img src="https://771655570-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxj7X0c61rEOwTqSjg2jo%2Fuploads%2FZRrCmCQ9ILrGwokhVnH0%2Fexecute.png?alt=media&amp;token=aa53fdba-9e6c-4888-82b5-fe15d09435bc" alt=""><figcaption></figcaption></figure>

<figure><img src="https://771655570-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxj7X0c61rEOwTqSjg2jo%2Fuploads%2Fams5YKXjwtZEC2jRC6mJ%2Flaunch.png?alt=media&amp;token=ca1c41a2-d424-4b15-b108-686d6c5c11d9" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Choose Mode

Choose Auto mode for a first-time run. If you are re-running the program after an unexpected shutdown, choose Failsafe mode.&#x20;

<figure><img src="https://771655570-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxj7X0c61rEOwTqSjg2jo%2Fuploads%2FlSUJ72sxI8fZ8zG4QVBQ%2Fchoosemode.png?alt=media&amp;token=bb41a5ca-cbe7-4ddf-bc14-a032e03cc133" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
The rehydration program can be run in three modes:

1. Auto (First-time run)
2. Failsafe (Retry failed)
3. Manual (Admin/Vega Support use only)

**Auto (First-time run)**: This is the default mode, intended for the initial execution. It can be run only once. During this run, any failed items are automatically recorded. If failed items exist, they must be retried by running the application in Failsafe mode.

**Failsafe (Retry failed)**: This mode is designed to handle retries for previously failed items or recover from unexpected shutdowns. It can be run multiple times until all items are successfully processed.

\
**Manual (Admin/Vega Support use only)**: This mode is reserved exclusively for administrators or Vega Support. It is used to manage manual rehydration or other specialized recovery operations.
{% endhint %}
{% endstep %}

{% step %}

### Monitor Progress

Media rehydration duration depends on the size of the archived media database and can be substantial. For instance, rehydrating **41 TB** of data may take up to **two hours**.\
Monitor the progress within the application — during this period, the **destination Recorder** will **not record any video**.

<figure><img src="https://771655570-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxj7X0c61rEOwTqSjg2jo%2Fuploads%2FLjkuTu7XHusUPpY9yGpN%2Fhydmonitor.png?alt=media&amp;token=208c1f8c-c8aa-46b4-a8ea-904132e227eb" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### XProtect Media DB Rebuild

After XPort's **media hydration** completes, the **XProtect Recorder** automatically restarts and begins rebuilding the media database for the rehydrated archive volume. This rebuilding process can take several hours, during which the **destination Recorder** will temporarily **suspend video recording** until the rebuild is finished. Periodically monitor the helper application we provide to check the XProtect rebuild status.

<figure><img src="https://771655570-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxj7X0c61rEOwTqSjg2jo%2Fuploads%2FJIwgf4DBdLl7ipv2vk8w%2FReBuildingDatabase.png?alt=media&amp;token=306ce10f-a773-45a7-8cab-4736149af1bd" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}
