> 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/gateway/guides/recording/storage.md). Agents can also search and read this documentation through its [MCP server](https://docs.devolutions.net/~gitbook/mcp).

# Recording storage and path

Where Devolutions Gateway stores session recordings, how to change the recording path on Windows, Linux and Docker, and how much space they need.

Devolutions Gateway stores session recordings in a folder of the machine it runs on, or on a network share. By default, the folder is `recordings` in the Devolutions Gateway configuration folder:

<table><thead><tr><th width="200">PLATFORM</th><th>DEFAULT RECORDING FOLDER</th></tr></thead><tbody><tr><td><strong>Windows</strong></td><td><code>%ProgramData%\Devolutions\Gateway\recordings</code></td></tr><tr><td><strong>Linux</strong></td><td><code>/etc/devolutions-gateway/recordings</code></td></tr><tr><td><strong>Docker</strong></td><td><code>/tmp/devolutions-gateway/recordings</code> inside the container, which is lost when the container is removed. Set <code>RECORDING_PATH</code> to a mounted volume.</td></tr></tbody></table>

Each recorded session gets its own folder, named after the Devolutions Gateway session ID, with a `recording.json` file that describes the session and its recording files.

## Change the recording path

Changing the path does not move existing recordings: copy them to the new folder if they must stay available.

{% tabs %}
{% tab title="Devolutions Server Console" %}
When Devolutions Gateway is installed with the Devolutions Server Console, set ***Recording storage path*** on the ***Other Configuration*** page of the installation wizard, or edit the gateway from the ***Companions*** tab. From the command line, the `gateway install` and `gateway edit` commands of the console accept `--gateway-recording-path`. An invalid path stops the wizard with "Devolutions Gateway recording path is invalid".
{% endtab %}

{% tab title="PowerShell" %}

```powershell
Set-DGatewayRecordingPath -RecordingPath 'D:\Recordings'
Restart-DGateway
```

`Get-DGatewayRecordingPath` shows the current path, and `Reset-DGatewayRecordingPath` goes back to the default folder.

{% hint style="warning" %}
When the `DevolutionsGateway` PowerShell module saves `gateway.json`, it keeps only the keys it knows. After a save, check the file and re-add `"TlsVerifyStrict": true`, `MinRecordingStorageFreeSpace` and any other key that was removed. When the `WebApp` section contains a key the module does not know, the module drops the whole `WebApp` section, which turns off the standalone web application: add the section back in `gateway.json`, or run `Set-DGatewayConfig -WebApp (New-DGatewayWebAppConfig -Enabled $true -Authentication Custom)`, then restart the Devolutions Gateway service. See [PowerShell module](https://docs.devolutions.net/gateway/reference/powershell-module.md).
{% endhint %}
{% endtab %}

{% tab title="gateway.json" %}
Set `RecordingPath` in `gateway.json`, then restart the Devolutions Gateway service. A relative path is relative to the configuration folder. In JSON, double the backslashes of Windows paths.

Windows:

```json
{
  "RecordingPath": "D:\\Recordings"
}
```

Linux:

```json
{
  "RecordingPath": "/var/lib/devolutions-gateway/recordings"
}
```

{% endtab %}

{% tab title="Docker" %}
Set the `RECORDING_PATH` environment variable of the container to a folder on a mounted volume, for example `/recordings` with a volume mounted on `/recordings`.
{% endtab %}
{% endtabs %}

## Use a network share

The recording path can be a network share, for example a UNC path on Windows or an NFS or CIFS mount on Linux.

* The account that runs the Devolutions Gateway service needs read and write access to the share. On Windows, the service runs as Network Service by default, which accesses the network as the computer account of the gateway machine.
* Recordings travel over the network to the share: plan for the extra traffic.
* Devolutions Gateway reports the total and free space of the share, so the storage meter works with network shares too.

If the service cannot write to the folder, recordings fail and the recorded sessions can end with "Connection to the recording server lost."

## Keep enough free space

<table><thead><tr><th width="320">SETTINGS</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><strong>MinRecordingStorageFreeSpace</strong></td><td>Optional key of <code>gateway.json</code>, in bytes. Below this free space, Devolutions Gateway refuses new recordings. When absent, only a full or unwritable disk stops recordings.</td></tr></tbody></table>

* When the storage is not accessible, not writable or below the threshold, Devolutions Gateway refuses new recordings ("recording storage is not accessible", "recording storage is not writable", "recording storage below minimum free-space threshold"). With a required recording, the session then does not open.
* When the storage fills during a recording, Devolutions Gateway stops it ("Recording storage is full; closing push stream").
* Devolutions Gateway writes "Recording storage low" (event ID 7010) in the Windows Event Log or syslog.
* Devolutions Server shows the disk usage of the recording storage in the ***Storage*** column of ***Administration*** – ***Devolutions Gateway*** and logs "{GatewayName} Gateway recording storage disk is {DiskPercentageUsed}% full." when the disk reaches 90%. Remote Desktop Manager shows a ***Storage*** column with "{used} of {total} used".

## How much space recordings need

The size of a graphical recording depends on its resolution, its frame rate and how much the screen changes. These estimates per minute of recording are a starting point; measure your own sessions to plan the storage.

<table><thead><tr><th width="200">RESOLUTION</th><th>1 FPS</th><th>5 FPS</th><th>10 FPS</th></tr></thead><tbody><tr><td><strong>720p (1280x720)</strong></td><td>0.35 MB</td><td>1.76 MB</td><td>3.52 MB</td></tr><tr><td><strong>1080p (1920x1080)</strong></td><td>0.79 MB</td><td>3.96 MB</td><td>7.91 MB</td></tr><tr><td><strong>4K (3840x2160)</strong></td><td>3.16 MB</td><td>15.82 MB</td><td>31.64 MB</td></tr></tbody></table>

Terminal recordings (TRP and Asciicast) are much smaller than video. To lower the size of graphical recordings, set a lower ***Recording frame rate*** or ***Resolution*** in the recording settings of Devolutions Server. See [Record sessions](https://docs.devolutions.net/gateway/guides/recording.md).

## Delete old recordings

Turn on ***Enable Devolutions Gateway recording automatic cleanup*** and set ***Delete recordings older than*** in the recording settings of Devolutions Server or Devolutions Cloud. The cleanup requires Devolutions Gateway 2025.1.0 or later ("Session recording cleanup is not supported by this Gateway. Please update to version {0} or later.") and does not apply to farms ("{0} is a Gateway Farm. Session recordings cannot be deleted."). Recordings marked ***Keep recording permanently*** are kept. See [Play and share recordings](https://docs.devolutions.net/gateway/guides/recording/playback.md).

## Move recordings from the legacy recording server

Recordings made with the former Devolutions Server recording server can be converted to the Devolutions Gateway format. See [Legacy recording server migration tool](https://docs.devolutions.net/powershell/devolutions-gateway-powershell/legacy-recording-server-migration-tool).


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.devolutions.net/gateway/guides/recording/storage.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
