# Recording settings

Source: https://docs.neode.sk/console/settings/recordings/
Last updated: 2026-11-30

> Who is recorded, the session watermark, how long recordings are kept, and where the server stores them, encrypted, with a size cap.

**Settings**, **Recordings** has two parts: **Who is recorded** for
accounts with **Set recording rules**, and **Storage** for accounts with
**Change server settings**. What the recordings are and how to play them is
on [Session recordings](https://docs.neode.sk/console/recordings.md).

## Who is recorded

**Rules** lists the rules there are. Without a rule a device is recorded
on request and its recordings are kept 90 days.

**Add or change a rule** takes:

| Field | What it means |
|---|---|
| **For** | **Whole server**, an **Organization**, a **Device group** or a **Device** (by its ID) |
| **Recording** | **Off**, **On request** or **Always**, or **From the wider rule** to set only the watermark or the retention |
| **Watermark** | **Watermark on**, **Watermark off** or **Watermark from the wider rule** (see [Watermark](#watermark)) |
| **Keep for (days)** | Whole server and organizations only. 0 keeps recordings until someone deletes them; empty leaves the retention to the wider rule |

A rule for the same organization, group or device replaces the one there.
The trash button removes a rule; the wider rule applies again. A device
follows its own rule, else the strictest rule of its groups (Always over On
request over Off), else its organization's, else the whole server's. Rules
apply to sessions that start after the change.

## Watermark

With the watermark on, the browser viewer shows three lines over the
picture, repeated across the screen at an angle:

- the name of the person connected: the signed-in account's name, or for
  a [guest link](https://docs.neode.sk/console/recordings.md#guest-links) the link's label
  ("Guest" when it has none)
- the current date and time to the second, with the offset from UTC
- the device ID

The viewer has no control that hides it. When the session is recorded,
the watermark is drawn into every frame of the WebM file, so the
recording carries it too. With the watermark off, the viewer and its
recordings are unchanged.

The watermark is part of the same rules as the recording mode and is
resolved the same way, on its own: a device follows its own rule, else
its device groups (on wins over off), else its organization, else the
whole server. Without a rule it is off. A rule can set only the
watermark: leave **Recording** on **From the wider rule**. **Allow session
recording** off in the organization's policy stops the recording but not
the watermark.

The watermark is drawn by the browser viewer. Sessions from NeoDesk
Desktop and the recordings it makes don't show it.

## Storage

| Setting | Default | What it does |
|---|---|---|
| **Where recordings are kept** | A folder on this server | **A folder on this server** or **S3-compatible storage**. New recordings go here; recordings that exist stay where they were written |
| **Folder** | `recordings` beside the database | An absolute path. The service account needs write access |
| **S3 address** | | The service's address with `http://` or `https://`, such as `https://s3.eu-central-1.amazonaws.com` or `http://minio:9000` |
| **Region** | us-east-1 | The bucket's region |
| **Bucket** | | The bucket's name; it must exist |
| **Prefix** | none | A folder in the bucket |
| **Bucket in the path** | On | On for MinIO and most other services; off for AWS, which puts the bucket in the host name |
| **Access key**, **Secret key** | | The S3 key pair. The secret is stored encrypted with the recordings key and never shown again; leave it empty to keep it |
| **Encrypt recordings** | On | Each piece of a recording is encrypted with AES-256-GCM and the recordings key |
| **Size cap** | 0 (none) | In GB. At the cap the server refuses new recordings, and sessions that must be recorded don't start |
| **Warn at** | 90 | The share of the cap at which the console warns, here, on Recordings and on Server status |

**In use** shows how many recordings there are and how much they take,
against the cap. **Check now** writes, reads and removes a small file with
the saved settings and says what went wrong. Server status, under
**Recordings**, shows the same usage.

## The recordings key

The recordings key is the file `recordings.key` beside the database (in the
data folder when the database is PostgreSQL). The server makes it at its
first start. It is not the key of saved device passwords, and it is not in
the backups.

Without this file no server can play the encrypted recordings. To move them
to another server, copy both the recordings (the folder, or the bucket) and
`recordings.key` beside the new server's database before you start it. The
key's short ID is under **Encrypt recordings**, so you can tell two servers'
keys apart.

## Recordings in backups

Full backups leave the recordings and the recordings key out: recordings
can be large, and the key opens all of them. To keep them with a backup,
run on the server:

```bash
neodesk-server backup --out /var/backups/neodesk --recordings
```

It writes the backup and, beside it, a folder `<backup>-recordings` with
the recordings folder and `recordings.key`. With S3 storage the recordings
stay in the bucket (back up the bucket) and only the key is copied.

## Command line

```bash
neodesk recordings rules
neodesk recordings rule-set --scope org --scope-id acme --mode always --retention-days 30
neodesk recordings rule-set --scope device --scope-id 123456789 --watermark on
neodesk recordings rule-delete org --scope-id acme
neodesk recordings storage
neodesk recordings storage-set --cap-bytes 107374182400 --warn-percent 85
neodesk recordings storage-check
```
