Skip to content

Retention and Cleanup

RUSEON Core includes a built-in scheduler that automatically purges old recordings to free up disk space.

Schedule

The cleanup routine runs every 1 hour.

Configuration

Retention is controlled at two levels:

  1. Global: Defined by server.record_retention_days.
  2. Per-Camera: Can be overridden using camera.retention_days (if set > 0).

Deletion Logic

Files are deleted based on their filesystem ModTime (Modification Time), rather than parsing the filename. This ensures accuracy and allows the OS to correctly report when the file was last written.

Released under the MIT License.