Illustrated title card for the guide: Frigate Retention for Continuous, Motion and Alert Footage
recording

Frigate Retention for Continuous, Motion and Alert Footage

Set Frigate recording retention with YAML for continuous, motion and alert tiers. See what expires, check History playback and export a clip.

Set record.enabled: true and use continuous.days for all recorded footage, motion.days for the motion tier, and alerts.retain.days for qualifying footage that overlaps an alert’s capture window. Set detections.retain.days separately for review items classified as detections. Frigate v0.18.3 recording guide

Enable recording and find the YAML

The examples target Frigate v0.18.3. Frigate 0.17.0 introduced the separate continuous and motion keys under record. Frigate v0.18.3 recording guide · Frigate 0.17.0 release notes

  1. In the camera’s ffmpeg block, check that the input you want to record has record in its roles list. For a shared stream, add that role to the existing input. Frigate getting started guide
  2. Open the existing Frigate configuration. For a container install, the file maps to /config/config.yml inside the container. For the Home Assistant App, look under /addon_configs/<addon_directory>/. Frigate also accepts config.yaml and gives config.yml priority if both files exist. Frigate configuration guide
  3. Apply one example to the top-level record: block, alongside cameras:, to set global defaults. If the block already exists, edit its retention values in place. Check any record: settings under cameras.<name> because camera values override the corresponding global values. Frigate configuration guide

For alerts based on tracked objects, check that object detection is enabled and that your Review settings classify the activity as an alert. Frigate recordings troubleshooting · Frigate Review configuration

Choose a retention profile

Before shortening retention, export clips you want to keep. The next cleanup can expire existing footage under the shorter settings. Low disk space can also trigger early deletion of the oldest recordings. Frigate v0.18.3 cleanup code · Frigate recording guide

Set unused review tiers to days: 0 explicitly. The v0.18.3 schema defaults both alert and detection retention to 10 days. Frigate v0.18.3 recording schema

Continuous with longer motion and review retention

Keep continuous footage for 3 days and set the motion tier to 7 days total. Set alert and detection review retention to 30 days with mode: motion. Cleanup uses each completed review’s end time to determine its age and checks recording segments separately for overlap with the capture window. Frigate v0.18.3 recording guide · Frigate v0.18.3 cleanup code

record:
  enabled: true
  continuous:
    days: 3
  motion:
    days: 7
  alerts:
    retain:
      days: 30
      mode: motion
  detections:
    retain:
      days: 30
      mode: motion

Motion tier retention

Keep the motion tier for 3 days. Set continuous, alert and detection retention to zero so the motion tier has the only positive retention window. Frigate v0.18.3 recording guide · Frigate v0.18.3 recording schema · Frigate v0.18.3 cleanup code

record:
  enabled: true
  continuous:
    days: 0
  motion:
    days: 3
  alerts:
    retain:
      days: 0
  detections:
    retain:
      days: 0

Alert retention profile

Set alert review retention to 30 days with mode: motion. Set continuous and motion retention to zero. Set detections.retain.days to zero so completed detections have no positive retention window. Frigate v0.18.3 recording guide · Frigate v0.18.3 recording schema · Frigate v0.18.3 cleanup code

record:
  enabled: true
  continuous:
    days: 0
  motion:
    days: 0
  alerts:
    retain:
      days: 30
      mode: motion
  detections:
    retain:
      days: 0

Frigate classifies Review items as alerts or detections. For tracked objects, the configured labels and any required zones help determine the category. The record.alerts and record.detections settings apply to footage for their respective categories. Frigate Review configuration · Frigate v0.18.3 recording guide

If a saved change requires a restart, use Restart Frigate in the Settings menu. Frigate configuration guide · Frigate recordings troubleshooting

See what survives as footage ages

Here is what the 3-day continuous, 7-day motion and 30-day review profile keeps after normal cleanup. Assume valid recorded segments, enough free space, and no audio activity. In this example, the alert and its sample segment ended at about the same time. The longest applicable retention window governs each example. Frigate v0.18.3 recording guide · Frigate v0.18.3 cleanup code

Footage ageQuiet, outside reviewMotion, outside reviewMotion within an alert capture window
1 dayKeptKeptKept
5 daysExpiredKeptKept
10 daysExpiredExpiredKept
31 daysExpiredExpiredExpired

Here, outside review means outside the capture windows for both alerts and detections. In this profile, detections use the same 30-day review retention setting as alerts. Frigate v0.18.3 recording guide · Frigate v0.18.3 cleanup code

Under alerts: or detections:, set pre_capture and post_capture to the seconds you want before and after the review item. With mode: motion, quiet parts of that window can be skipped. Use mode: all under the relevant retain: block to keep quiet segments within that window too. Frigate v0.18.3 recording guide

Check playback in History

  1. In Live, open the camera’s single-camera view and select History. You can also open a Review item to jump to its full-resolution recording. Frigate History guide
  2. Filter by date and drag the timeline handle to check playback. A gap marks a period with no stored recording. Frigate History guide
  3. If expected footage is missing, check whether recording was enabled for that camera at the time, whether its stream has the record role, and whether the applicable retention window has expired. For stream and storage checks, follow the missing-recordings checklist. Frigate History guide · Frigate missing-recordings checklist

Export and download a clip before it expires

  1. On desktop in History, open Actions (the film icon) and choose Export. Frigate History guide
  2. Enter a custom start and end time or select the range on the timeline. You can name the export before submitting it. Frigate History guide · Frigate Exports guide
  3. Wait for processing to finish. Open Exports from the main navigation, find the clip by name and play it. Use Download to save a copy outside Frigate. Frigate Exports guide

Frigate stores exports separately from recordings, so recording retention leaves the exported file in place. Frigate Exports guide

Evidence and limits. Frigate’s tagged v0.18.3 recording materials and the official 0.18 guides for History and Exports were checked on November 27, 2026. The configuration and UI steps were not run.

Sources

  1. Recording guide at Frigate v0.18.3
  2. Frigate 0.17.0 release notes
  3. Getting started | Frigate
  4. Frigate Configuration | Frigate
  5. Recordings Errors | Frigate
  6. Review configuration | Frigate
  7. Recording retention cleanup at Frigate v0.18.3
  8. Recording | Frigate
  9. Recording configuration schema at Frigate v0.18.3
  10. History | Frigate
  11. Exports | Frigate

Related