> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/powershell/es/devolutions-gateway-powershell/legacy-recording-server-migration-tool.md).

# Herramienta de migración del servidor de grabación heredado

Este script de PowerShell transforma los ficheros de grabación de sesiones del servidor de grabación heredado de Devolutions al formato de grabación de sesiones de Devolutions Gateway, lo que le permite migrar sin perder las grabaciones anteriores. Una vez que los ficheros se hayan convertido al nuevo formato, será necesario volver a indexarlos desde Devolutions Server para que puedan encontrarse en su nueva ubicación y reproducirse desde Devolutions Gateway.

La reindexación permite detectar los registros presentes en el lado de Devolutions Gateway, lo que hace posible transferir manualmente los ficheros y luego volver a indexarlos. Sin embargo, no es posible simplemente arrastrar y soltar los ficheros en la carpeta; es necesario respetar un formato específico.

Descargue [MigrateRecordings.ps1](https://github.com/Devolutions/devolutions-gateway/blob/master/tools/legacy-recording/MigrateRecordings.ps1) y ejecútelo desde un terminal de PowerShell con privilegios elevados indicando como parámetro la ruta de salida de las grabaciones heredadas:

```powershell
PS > .\MigrateRecordings.ps1 -LegacyPath "C:\inetpub\recording\output"
Migrating recordings to 'C:\ProgramData\Devolutions\Gateway\recordings'
Migrating 7e05bf2d-c97b-44eb-b256-351b3e2ef1f0 (075503d9-d016-496e-b0aa-cab8b020ce2d)
Migrating 2115ab16-308c-4eb4-a871-73bc8fd69022 (0f366b0e-e09d-4f57-b290-779f46fb68fd)
Migrating 479930c5-705a-4051-9edf-bdc2748452a4 (39a7d0ec-339e-4086-8d73-fbf455e1038a)
Migrating 2e3d219b-48a3-432a-b214-f11b8ddaa32e (b3409164-078b-4013-b4f6-9a4663d3df98)
```

Si Devolutions Gateway está configurado para utilizar una ubicación distinta de la predeterminada, se puede usar `-RecordingsPath` para sustituir la ruta de destino predeterminada. También puede realizar la migración en un equipo para copiar manualmente los ficheros a la ruta de grabaciones de Devolutions Gateway en otro equipo.

{% hint style="info" %}
Está disponible un [fichero legacy.zip de ejemplo](https://github.com/Devolutions/devolutions-gateway/blob/master/tools/legacy-recording/legacy.zip) que contiene grabaciones heredadas como referencia y para probar este script.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.devolutions.net/powershell/es/devolutions-gateway-powershell/legacy-recording-server-migration-tool.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
