Storage and retention

RockRecorder deletes the oldest recordings by itself, so the recordings drive never runs out of room. How it decides is the retention mode:

  • Auto: recordings use the space there is. When a disk gets down to its reserve of free space, the oldest recordings on it are deleted to make room. You don't set a size.
  • Fixed: you set how much space recordings may use, and the oldest are deleted to stay under it.

New servers use Auto. A server that was upgraded keeps Fixed with the limits it had, until you change it.

See where you stand

Go to Administration > Storage. It shows:

  • Recordings (how much space they take), Free for new recordings, and the Oldest recording.
  • Estimated retention (Auto): how long recordings are kept at the rate of the last 30 days. It shows after 3 days of recordings, and gets shorter if you add channels or the channels get busier.
  • Disks: each disk recordings are on, and the system disk. The bar shows recordings, other files and free space, with a mark where the reserve starts. Click Recordings under a bar to see them by type (MRadio, MPhone, Cisco BiB…).
  • Retention: the mode and limits in force, and how many recordings are on hold.
  • Cleanup: when the nightly cleanup and the free space check last ran, and what was last freed.

Administration > Storage in Auto mode: a recordings disk that's nearly full by design with its 50 GB reserve marked, an estimated retention of about 412 days, and the Retention and Cleanup cards

Auto mode

In Auto, a nearly full recordings disk is normal: it means you're keeping as much as the disk can hold.

Every 15 minutes RockRecorder checks each disk recordings are on. A disk with less free space than its reserve has its oldest recordings deleted until the reserve is free again.

Setting What it does Default
mode "auto" or "fixed" "auto" on new servers
max_age_days Recordings older than this are deleted even when there's space. 0 for no age limit No age limit
reserve_gb Free space kept on each disk 5% of the disk, at least 5 GB and at most 50 GB
min_required_days How long your agency has to keep recordings. Only a warning: nothing is kept longer because of it Off

Max age still applies in Auto: recordings older than it are deleted even when the disk has room. If you want to keep recordings longer, raise max_age_days, or set it to 0 for no age limit.

Never deleted to make room:

  • Recordings on hold.
  • Recordings from the last 24 hours.

If your agency has to keep recordings for a set time, set min_required_days. The Storage page then warns when the estimated retention is shorter than that, so you can add a bigger drive or keep copies elsewhere with Archiving before recordings you need are deleted.

Fixed mode

Setting What it does Default
max_age_days Recordings older than this are deleted 365 days
max_storage_gb If recordings take more than this, the oldest are deleted until they fit 1000 GB

Set a limit to 0 to turn it off. The size limit is applied by the nightly cleanup.

Make the size limit a bit smaller than the drive, so there's always free space for new recordings. The storage calculator helps size it.

Change the mode or a limit

These are set on the server, not in the browser. Over SSH:

sudo nano /etc/rockrecorder/rockrecorder.toml

Change the values under [retention]. To switch a server to Auto and keep recordings for at most 3 years:

[retention]
mode = "auto"
max_age_days = 1095

Save the file. No restart is needed: the next check uses it, and the Storage page shows the new mode and limits.

Switching to Auto lets recordings fill the disk. Switching to Fixed with a max_storage_gb smaller than what's on the disk deletes the oldest recordings at the next nightly cleanup.

In both modes:

Setting What it does Default
max_hold_days The longest a recording can be kept on hold 730 days
report_max_age_days Incident reports older than this are deleted 730 days

The limits cover all channels together.

Make the space go further: FLAC

Recordings stored as FLAC take about a third of the space of WAV, with exactly the same audio, so the same drive keeps about three times as much. New servers use FLAC from the start; on an upgraded server you turn it on, and convert the recordings already on disk. See Storing recordings as FLAC.

Retention works the same for both formats.

The nightly cleanup

The cleanup runs every night at 02:00. If the server was off then, it runs when the server starts. It:

  1. Ends holds that have run out.
  2. Deletes recordings older than the age limit.
  3. Makes room: in Fixed, deletes the oldest until recordings fit under the size limit. In Auto, runs the free space check, which also runs every 15 minutes.
  4. Deletes incident reports older than their limit.

A recording's file and its database entry are deleted together. Recordings on hold are never deleted.

Keep recordings longer: holds

A hold keeps recordings past the limits, for an investigation or a records request. Admins can place them on channels they can see:

  • On the Recordings page: right-click a recording (or a selection) and choose Keep. Pick a Keep until date and add a Reason, such as the case number.
  • In an incident report: tick Keep these recordings.

Held recordings show a shield icon with the date and reason. Every hold ends, at most 2 years after it's placed, and saving it again starts that over. To find them all, use Kept only on the Recordings page's Search tab. Placing and releasing holds is written to the audit log.

Get warned

The Storage page shows a warning at the top when something needs you:

  • Auto: a disk can't keep its reserve, with the reason: recordings on hold are using the space, other files are using it, or the disk is filling faster than retention can clear. Also when recordings aren't kept as long as min_required_days.
  • Fixed: a disk is over 80% full, and again over 90%.
  • Both: the nightly cleanup failed or isn't running. In Auto, the same for the free space check.

To get these by email, go to Administration > Notifications > System Alerts and tick Recordings disk filling up and Nightly storage cleanup. In Auto, the disk alert is sent when a disk can't keep its free space or the free space check stops. In Fixed, it's sent when the disk is fuller than the percentage you set (85% by default).

Still stuck? Contact us or call 803-930-2500.