Loop recording is the least conspicuous feature of a dashcam and at the same time the most important one. It keeps the card from ever filling up, and it is the reason a camera can be run sparingly at all.
How the loop works
The camera does not record one endless file but short segments, usually one to three minutes long. Once the card is full it overwrites the oldest segment. The result is a sliding window: the last few hours exist, everything before that is gone.
That design has two benefits. You never have to tidy up, and no archive of your journeys accumulates, which you would neither need nor have to justify.
Why short segments are better
Short segments close more often. If power drops suddenly, at most the current segment is lost. With very long segments you can end up with a corrupted file that will not open at all.
Short segments do have a drawback: an event can fall exactly on a boundary. You then need two files to show the full sequence. One to three minutes is a good compromise between the two.
Note
The loop does not care whether something happened. It keeps overwriting as long as the camera runs. Securing a recording is therefore always an active step.
Protection from being overwritten
Two routes protect a file. The impact sensor marks one automatically when it detects a shock. In addition, almost every camera lets you protect the current recording with a button.
Both have limits. The sensor does not notice a near miss, because nothing strikes anything. And protected files occupy storage permanently: once the card is full of protected recordings, the camera can eventually stop recording altogether. Clearing out protected files therefore belongs in your regular check.
How long does a card last?
The span follows from capacity and bitrate. Roughly speaking, a camera at typical settings writes several gigabytes per hour. A 64 gigabyte card therefore holds around a day of driving, often less.
That is not a shortcoming, it is the point. You do not need weeks of material, you need the hour in which something happened. How to rescue exactly that file is described in the article on rescuing footage before it is overwritten.
Setting the right segment length
In your camera settings the segment length usually sits under a term such as loop recording or interval. Three values are common: one, three and five minutes.
One minute suits short urban trips and produces many small files that are easy to handle. Three minutes is the standard most people get on with. Five minutes produces fewer files but costs more material when something goes wrong and makes trimming more laborious.
Never switch the loop off entirely, even where the camera offers that. Without a loop the card fills up and the camera simply stops recording, usually without you noticing.
Note
After any change to the settings, check that new files are actually being created. Some cameras require the card to be formatted after the segment length changes.