Its often useful to have an external storage for ZM videos , stills and events
Create usb disk , partition & format with label ZMDATA
create a directory /var/lib/zmdata
edit /etc/fstab and add entry :
LABEL=ZMDATA /var/lib/zmdata ext4 defaults 0 0
mount the disk and create directories :
/var/lib/zmdata/zoneminder/{events,images}
edit / create a new file /etc/zm/conf.d/03-usbmount.conf with contents
ZM_DIR_EVENTS=/var/lib/zmdata/zoneminder/events
ZM_DIR_IMAGES=/var/lib/zmdata/zoneminder/images
set permissions, chown -R 33.33 /var/lib/zmdata/zoneminder/
add the new storage and delete default, restart zoneminder
No comments:
Post a Comment