-You have a security camera and a vibration sensor installed.
-The security camera feed is constantly saved on to a hard drive, but any data over 5 minutes old is deleted.
-If the motion sensor is tripped, a new permanent video file is created, with the last 5 minutes stuck on to the beginning. Video is now saved onto this new file (after the first 5 minutes).