The formula
Storage = bitrate × seconds per day × days × cameras × share of time recorded.
- Bitrate is in the camera’s settings or data sheet. Reolink’s 4K camera sends 6,144 kbit/s by default, at least 4,096 and at most 8,192. If your camera has other figures, use them.
- Days is your deletion period. For crime prevention 30 days at most, and shorter if you do not need 30. It is the biggest lever in the sum, and the only one Danish law caps.
- Share is 1 for round-the-clock recording. Record only on motion and it falls – by how much depends on the place. A warehouse at night is quiet; a shop entrance is not.
- Terabytes are counted as on the disk’s box: 1 TB = 1,000,000,000,000 bytes. Add 15 % so the disk never runs completely full.
Three businesses worked through
Storage for a shop, a workshop and a building site
The shop has four cameras at 4,096 kbit/s and keeps 14 days, because thefts are noticed within a week. The workshop has eight 4K cameras on default settings and keeps 30 days. The building site has sixteen 4K cameras but records only on motion and keeps 14 days.
| Assumption and result | Shop | Workshop | Building site |
|---|---|---|---|
| Cameras × bitrate | 4 × 4,096 kbit/s | 8 × 6,144 kbit/s | 16 × 6,144 kbit/s |
| Recording | Round the clock | Round the clock | Motion, share 0.3 |
| Days | 14 | 30 | 14 |
| Data | 2.48 TB | 15.93 TB | 4.46 TB |
| With 15 % headroom | 2.85 TB | 18.31 TB | 5.13 TB |
| Network into the recorder | 16.4 Mbit/s | 49.2 Mbit/s | 98.3 Mbit/s |
| Disk that fits | 1 × 4 TB | 2 × 10 TB | 1 × 8 TB |
Two things stand out. First, the building site with sixteen cameras uses less than the workshop with eight, because it records less and keeps footage for a shorter time. Second, the shop would need 6.10 TB at 30 days instead of 14 – a bigger disk for footage nobody needs. The deletion period is both law and money.
The network is rarely the bottleneck: even 98 Mbit/s fits a normal gigabit port. What costs is remote viewing over the internet. Reolink itself says internet bandwidth is only used when someone views footage from outside. Use the camera’s small stream on the phone.
The script
We wrote the sum as a small Python script with no third-party packages. It warns you if you set more than 30 days.
#!/usr/bin/env python3
"""How much disk space does the footage need? (standard library only)"""
import sys
LIMIT_DAYS = 30 # Danish CCTV Act, section 4 c(4)
def storage_tb(kbps, cameras, days, hours=24.0, share=1.0):
"""Data volume in TB (1 TB = 10**12 bytes, as on the disk's box)."""
seconds = hours * 3600 * days * share
return kbps * 1000 / 8 * seconds * cameras / 10**12
def main(kbps, cameras, days, hours=24.0, share=1.0, headroom=0.15):
if days > LIMIT_DAYS:
print(f"NOTE: {days} days is over {LIMIT_DAYS} days. For crime "
"prevention, footage must be deleted sooner.")
tb = storage_tb(kbps, cameras, days, hours, share)
mbit_in = kbps * cameras / 1000
print(f"{cameras} cameras x {kbps} kbit/s x {hours:g} h x {days} days"
f" x share {share:g}")
print(f" data: {tb:.2f} TB | with {headroom:.0%} headroom: "
f"{tb * (1 + headroom):.2f} TB")
print(f" network into the recorder: {mbit_in:.1f} Mbit/s")
return tb
if __name__ == "__main__":
# example: python3 storage.py 6144 8 30
if len(sys.argv) < 4:
sys.exit("usage: storage.py KBPS CAMERAS DAYS [HOURS] [SHARE]")
nums = [float(x) for x in sys.argv[1:]]
main(int(nums[0]), int(nums[1]), int(nums[2]), *nums[3:])
Run on 03.12.2026 with Python 3.9: python3 storage.py 4096 4 14 gives 2.48 TB, 6144 8 30 gives 15.93 TB and 6144 16 14 24 0.3 gives 4.46 TB – the figures in the table. With 60 days the script prints the warning first.
The deletion period inside the recorder
A number on paper only helps if the recorder actually deletes. In Frigate, the open-source recorder whose documentation we read, it looks like this. The set-up was checked against the version 0.18 documentation and parsed as valid YAML, but not run on a live system.
record:
enabled: true
continuous:
days: 0 # no round-the-clock recording
motion:
days: 14 # motion kept for 14 days
alerts:
pre_capture: 5
post_capture: 5
retain:
days: 30 # never over 30 days for crime prevention
mode: motion
detections:
retain:
days: 14
mode: motion
Note one detail in Frigate’s documentation: when less than about one hour of space is left, Frigate deletes the oldest recordings “regardless of retention settings”, and it measures the whole disk – other files included. A full disk therefore shortens your history without warning. The opposite can happen too: a recorder that stops deleting keeps footage too long.
Mistakes we know from backups – and that hit recorders
We have not run a recorder, but we have run backups for years, and the failures look alike:
- The setting means something else than you think. In our hosting panel the retention number counted copies in the cloud, not on the disk. When uploads failed, copies piled up locally, the disk filled, and there was no off-site copy. One clean-up freed 208 GB. Check what “30 days” in your recorder really means.
- Old copies hide. On the day we tightened our backup policy we found about 300 GB of forgotten local copies. Exported clips from a recorder are the same: Frigate never deletes exports by itself.
- The status code lies. A wrong page can answer perfectly normally, so our monitoring tests the content, not only the response. For cameras that means: check that a picture arrives, not just that the camera is “online”.
- Measure the disk every day. Our office machines send a daily report on disk, memory, temperature and uptime. A recorder deserves the same.
- Rehearse the restore. A restore test of a database copy passed for us on 6 November 2026. In the same way, try finding and exporting a clip from the day before yesterday before you need it.
If footage must also live somewhere other than the recorder, the backup rule applies: the copy must not outlive the original. For crime prevention, 30 days applies to the cloud copy too.
Sources
- Reolink – RLC-810A specifications — bitrate and bandwidth, read 03.12.2026
- Frigate – Recording — continuous, motion, alerts, detections, deletion on a full disk, read 03.12.2026
- Ubiquiti EU store — disk sizes and recorder ports, read 03.12.2026
- Retsinformation – CCTV Act section 4 c — deletion within 30 days, read 03.12.2026
Questions about storage
How many TB do we need for 8 cameras?
With 4K cameras at 6,144 kbit/s, round-the-clock recording and 30 days, about 16 TB, or 18 TB with headroom. With 14 days or motion-only recording it is far less. Run the script with your own bitrate.
Is round-the-clock or motion recording better?
Round the clock leaves no gaps but uses the most space. Motion saves space but can miss the start of an event; Frigate therefore keeps a few seconds before and after.
May we keep footage in the cloud as a backup?
Yes, if the cloud is secured and the copy is deleted on the same schedule as the original. The cloud provider becomes your data processor, so you need a processing agreement.
Why does the disk fill up even though we set 30 days?
Usually because the bitrate is higher than expected, exported clips are never deleted, or other files share the disk. Measure the disk daily.
Fixed price, no commitment
Get a free CCTV check and a fixed price
Tell us briefly what you use today and what you want to achieve. A person answers by e-mail with a proposal and a fixed price before any work starts.
- A fixed price before we start
- An answer by e-mail, no calls
- Your details are used only to answer you