Storage
The Storage component manages Viserons database and how to store files. It helps you to organize segments, recordings and snapshots across multiple storage locations.
Files can be retained based on age and/or space used so that you never run out of storage.
Configuration
Configuration example
storage:
recorder:
tiers:
- path: /ssd/tier1
events:
max_age:
days: 1
continuous:
max_age:
days: 1
- path: /hdd/tier2
events:
max_age:
days: 7
snapshots:
tiers:
- path: /config/tier1
max_age:
days: 1
tip
The above example will store recordings/events on /ssd/tier1
for 1 day, and then move them to /hdd/tier2
for 7 days.
It will also store continuous recordings on /ssd/tier1
for 1 day, after which they are deleted.
storagemap required
Storage configuration.
recordermap (optional)
Configuration for recordings.
tierslist (optional, default: hover to show)
Tiers are used to move files between different storage locations. When a file reaches the max age or max size of a tier, it will be moved to the next tier. If the file is already in the last tier, it will be deleted.
Minimum items:
1
pathstring required
Path to store files in. Cannot be
/tmp
or /tmp/viseron
.pollboolean (optional, default:
false
)Poll the file system for new files. Much slower than non-polling but required for some file systems like NTFS mounts.
move_on_shutdownboolean (optional, default:
false
)Move/delete files to the next tier when Viseron shuts down. Useful to not lose files when shutting down Viseron if using a RAM disk.
check_intervalmap (optional, default: hover to show)
How often to check for files to move to the next tier.
daysinteger (optional, default:
0
)Days between checks for files to move/delete.
Lowest value:
0
hoursinteger (optional, default:
0
)Hours between checks for files to move/delete.
Lowest value:
0
minutesinteger (optional, default:
0
)Minutes between checks for files to move/delete.
Lowest value:
0
secondsinteger (optional, default:
0
)Seconds between checks for files to move/delete.
Lowest value:
0
continuousmap (optional)
Retention rules for continuous recordings.
min_sizemap (optional)
Minimum size of files to keep in this tier.
gbfloat (optional)
Min size in GB. Added together with
min_mb
.mbfloat (optional)
Min size in MB. Added together with
min_gb
.max_sizemap (optional)
Maximum size of files to keep in this tier.
gbfloat (optional)
Max size in GB. Added together with
max_mb
.mbfloat (optional)
Max size in MB. Added together with
max_gb
.max_agemap (optional)
Maximum age of files to keep in this tier.
daysinteger (optional)
Max age in days.
hoursinteger (optional)
Max age in hours.
minutesinteger (optional)
Max age in minutes.
min_agemap (optional)
Minimum age of files to keep in this tier.
daysinteger (optional)
Min age in days.
hoursinteger (optional)
Min age in hours.
minutesinteger (optional)
Min age in minutes.
eventsmap (optional)
Retention rules for event recordings.
min_sizemap (optional)
Minimum size of files to keep in this tier.
gbfloat (optional)
Min size in GB. Added together with
min_mb
.mbfloat (optional)
Min size in MB. Added together with
min_gb
.max_sizemap (optional)
Maximum size of files to keep in this tier.
gbfloat (optional)
Max size in GB. Added together with
max_mb
.mbfloat (optional)
Max size in MB. Added together with
max_gb
.max_agemap (optional)
Maximum age of files to keep in this tier.
daysinteger (optional)
Max age in days.
hoursinteger (optional)
Max age in hours.
minutesinteger (optional)
Max age in minutes.
min_agemap (optional)
Minimum age of files to keep in this tier.
daysinteger (optional)
Min age in days.
hoursinteger (optional)
Min age in hours.
minutesinteger (optional)
Min age in minutes.
snapshotsmap (optional)
Snapshots are images taken when events are triggered or post processors finds anything. Snapshots will be taken for object detection, motion detection, and any post processor that scans the image, for example face and license plate recognition.
tierslist (optional, default: hover to show)
Default tiers for all domains, unless overridden in the domain configuration.
Tiers are used to move files between different storage locations. When a file reaches the max age or max size of a tier, it will be moved to the next tier. If the file is already in the last tier, it will be deleted.
Tiers are used to move files between different storage locations. When a file reaches the max age or max size of a tier, it will be moved to the next tier. If the file is already in the last tier, it will be deleted.
Minimum items:
1
min_sizemap (optional)
Minimum size of files to keep in this tier.
gbfloat (optional)
Min size in GB. Added together with
min_mb
.mbfloat (optional)
Min size in MB. Added together with
min_gb
.max_sizemap (optional)
Maximum size of files to keep in this tier.
gbfloat (optional)
Max size in GB. Added together with
max_mb
.mbfloat (optional)
Max size in MB. Added together with
max_gb
.max_agemap (optional)
Maximum age of files to keep in this tier.
daysinteger (optional)
Max age in days.
hoursinteger (optional)
Max age in hours.
minutesinteger (optional)
Max age in minutes.
min_agemap (optional)
Minimum age of files to keep in this tier.
daysinteger (optional)
Min age in days.
hoursinteger (optional)
Min age in hours.
minutesinteger (optional)
Min age in minutes.
pathstring required
Path to store files in. Cannot be
/tmp
or /tmp/viseron
.pollboolean (optional, default:
false
)Poll the file system for new files. Much slower than non-polling but required for some file systems like NTFS mounts.
move_on_shutdownboolean (optional, default:
false
)Move/delete files to the next tier when Viseron shuts down. Useful to not lose files when shutting down Viseron if using a RAM disk.
check_intervalmap (optional, default: hover to show)
How often to check for files to move to the next tier.
daysinteger (optional, default:
0
)Days between checks for files to move/delete.
Lowest value:
0
hoursinteger (optional, default:
0
)Hours between checks for files to move/delete.
Lowest value:
0
minutesinteger (optional, default:
0
)Minutes between checks for files to move/delete.
Lowest value:
0
secondsinteger (optional, default:
0
)Seconds between checks for files to move/delete.
Lowest value:
0
face_recognitionmap (optional)
Override the default snapshot tiers for face recognition. If not set, the default tiers will be used.
tierslist required
Tiers are used to move files between different storage locations. When a file reaches the max age or max size of a tier, it will be moved to the next tier. If the file is already in the last tier, it will be deleted.
Minimum items:
1
min_sizemap (optional)
Minimum size of files to keep in this tier.
gbfloat (optional)
Min size in GB. Added together with
min_mb
.mbfloat (optional)
Min size in MB. Added together with
min_gb
.max_sizemap (optional)
Maximum size of files to keep in this tier.
gbfloat (optional)
Max size in GB. Added together with
max_mb
.mbfloat (optional)
Max size in MB. Added together with
max_gb
.max_agemap (optional)
Maximum age of files to keep in this tier.
daysinteger (optional)
Max age in days.
hoursinteger (optional)
Max age in hours.
minutesinteger (optional)
Max age in minutes.
min_agemap (optional)
Minimum age of files to keep in this tier.
daysinteger (optional)
Min age in days.
hoursinteger (optional)
Min age in hours.
minutesinteger (optional)
Min age in minutes.
pathstring required
Path to store files in. Cannot be
/tmp
or /tmp/viseron
.pollboolean (optional, default:
false
)Poll the file system for new files. Much slower than non-polling but required for some file systems like NTFS mounts.
move_on_shutdownboolean (optional, default:
false
)Move/delete files to the next tier when Viseron shuts down. Useful to not lose files when shutting down Viseron if using a RAM disk.
check_intervalmap (optional, default: hover to show)
How often to check for files to move to the next tier.
daysinteger (optional, default:
0
)Days between checks for files to move/delete.
Lowest value:
0
hoursinteger (optional, default:
0
)Hours between checks for files to move/delete.
Lowest value:
0
minutesinteger (optional, default:
0
)Minutes between checks for files to move/delete.
Lowest value:
0
secondsinteger (optional, default:
0
)Seconds between checks for files to move/delete.
Lowest value:
0
object_detectormap (optional)
Override the default snapshot tiers for object detection. If not set, the default tiers will be used.
tierslist required
Tiers are used to move files between different storage locations. When a file reaches the max age or max size of a tier, it will be moved to the next tier. If the file is already in the last tier, it will be deleted.
Minimum items:
1
min_sizemap (optional)
Minimum size of files to keep in this tier.
gbfloat (optional)
Min size in GB. Added together with
min_mb
.mbfloat (optional)
Min size in MB. Added together with
min_gb
.max_sizemap (optional)
Maximum size of files to keep in this tier.
gbfloat (optional)
Max size in GB. Added together with
max_mb
.mbfloat (optional)
Max size in MB. Added together with
max_gb
.max_agemap (optional)
Maximum age of files to keep in this tier.
daysinteger (optional)
Max age in days.
hoursinteger (optional)
Max age in hours.
minutesinteger (optional)
Max age in minutes.
min_agemap (optional)
Minimum age of files to keep in this tier.
daysinteger (optional)
Min age in days.
hoursinteger (optional)
Min age in hours.
minutesinteger (optional)
Min age in minutes.
pathstring required
Path to store files in. Cannot be
/tmp
or /tmp/viseron
.pollboolean (optional, default:
false
)Poll the file system for new files. Much slower than non-polling but required for some file systems like NTFS mounts.
move_on_shutdownboolean (optional, default:
false
)Move/delete files to the next tier when Viseron shuts down. Useful to not lose files when shutting down Viseron if using a RAM disk.
check_intervalmap (optional, default: hover to show)
How often to check for files to move to the next tier.
daysinteger (optional, default:
0
)Days between checks for files to move/delete.
Lowest value:
0
hoursinteger (optional, default:
0
)Hours between checks for files to move/delete.
Lowest value:
0
minutesinteger (optional, default:
0
)Minutes between checks for files to move/delete.
Lowest value:
0
secondsinteger (optional, default:
0
)Seconds between checks for files to move/delete.
Lowest value:
0
license_plate_recognitionmap (optional)
Override the default snapshot tiers for license plate recognition. If not set, the default tiers will be used.
tierslist required
Tiers are used to move files between different storage locations. When a file reaches the max age or max size of a tier, it will be moved to the next tier. If the file is already in the last tier, it will be deleted.
Minimum items:
1
min_sizemap (optional)
Minimum size of files to keep in this tier.
gbfloat (optional)
Min size in GB. Added together with
min_mb
.mbfloat (optional)
Min size in MB. Added together with
min_gb
.max_sizemap (optional)
Maximum size of files to keep in this tier.
gbfloat (optional)
Max size in GB. Added together with
max_mb
.mbfloat (optional)
Max size in MB. Added together with
max_gb
.max_agemap (optional)
Maximum age of files to keep in this tier.
daysinteger (optional)
Max age in days.
hoursinteger (optional)
Max age in hours.
minutesinteger (optional)
Max age in minutes.
min_agemap (optional)
Minimum age of files to keep in this tier.
daysinteger (optional)
Min age in days.
hoursinteger (optional)
Min age in hours.
minutesinteger (optional)
Min age in minutes.
pathstring required
Path to store files in. Cannot be
/tmp
or /tmp/viseron
.pollboolean (optional, default:
false
)Poll the file system for new files. Much slower than non-polling but required for some file systems like NTFS mounts.
move_on_shutdownboolean (optional, default:
false
)Move/delete files to the next tier when Viseron shuts down. Useful to not lose files when shutting down Viseron if using a RAM disk.
check_intervalmap (optional, default: hover to show)
How often to check for files to move to the next tier.
daysinteger (optional, default:
0
)Days between checks for files to move/delete.
Lowest value:
0
hoursinteger (optional, default:
0
)Hours between checks for files to move/delete.
Lowest value:
0
minutesinteger (optional, default:
0
)Minutes between checks for files to move/delete.
Lowest value:
0
secondsinteger (optional, default:
0
)Seconds between checks for files to move/delete.
Lowest value:
0
motion_detectormap (optional)
Override the default snapshot tiers for motion detection. If not set, the default tiers will be used.
tierslist required
Tiers are used to move files between different storage locations. When a file reaches the max age or max size of a tier, it will be moved to the next tier. If the file is already in the last tier, it will be deleted.
Minimum items:
1
min_sizemap (optional)
Minimum size of files to keep in this tier.
gbfloat (optional)
Min size in GB. Added together with
min_mb
.mbfloat (optional)
Min size in MB. Added together with
min_gb
.max_sizemap (optional)
Maximum size of files to keep in this tier.
gbfloat (optional)
Max size in GB. Added together with
max_mb
.mbfloat (optional)
Max size in MB. Added together with
max_gb
.max_agemap (optional)
Maximum age of files to keep in this tier.
days