Good Day All.
Can someone please advice me to what would be the best way to Record outside of the zoneminder default folder?
My current setup records eveything to "/var/cache/zoneminder/events"
I have just fitted a new HDD, and it is mounted to "/media/CCTV"
So I no longer what to record to "/var/cache/zoneminder/events" but instead record it to "/media/CCTV".
What is the best way to do this?
Thanks for your time.
Best Regards.
Recording outside of working directory
-
- Posts: 106
- Joined: Wed Dec 15, 2010 11:20 am
- Location: Isle Of Wight, UK
Re: Recording outside of working directory
Just create a symlink to your new directory.
Backup you original event folder
Create the symlink
Check the directory
events should point to /media/CCTV
One thing, just be careful on not starting zoneminder with your harddrive unmounted, because zm run a consitensy check every few minutes, and if your directory is not present, zmaudit.pl won't find the files and it'll delete the events from the database.
Backup you original event folder
Code: Select all
$ mv /usr/share/zoneminder/events /usr/share/zoneminder/eventsbackup
Code: Select all
$ ln -s /media/CCTV /usr/share/zoneminder/events
Code: Select all
ls -hal /usr/share/zoneminder/
One thing, just be careful on not starting zoneminder with your harddrive unmounted, because zm run a consitensy check every few minutes, and if your directory is not present, zmaudit.pl won't find the files and it'll delete the events from the database.
Last edited by DREMA on Wed Jun 01, 2011 8:30 pm, edited 1 time in total.
Just... enjoy life!
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Re: Recording outside of working directory
I think probably should be
Code: Select all
ls -n
Code: Select all
ln -s
Phil
Re: Recording outside of working directory
Hahaha right, damn dyslexia.
Corrected.
Corrected.
Just... enjoy life!
-
- Posts: 106
- Joined: Wed Dec 15, 2010 11:20 am
- Location: Isle Of Wight, UK
Re: Recording outside of working directory
Thanks for your replies.
I am now trying to hardlink zoneminder to my spare drive.
Here is what I have put in my "/etc/fstab"
Now when I load the ZoneMinder front page is shows "Disk: -1%" and will not record to disk.
I guess I have missed something, can you please advice.
I am now trying to hardlink zoneminder to my spare drive.
Here is what I have put in my "/etc/fstab"
Code: Select all
/dev/sdb1 /media/CCTV ext4 defaults 0 2
/media/CCTV/images /var/cache/zoneminder/images none defaults,bind 0 2
/media/CCTV/events /var/cache/zoneminder/events none defaults,bind 0 2
/media/CCTV/temp /var/cache/zoneminder/temp none defaults,bind 0 2
I guess I have missed something, can you please advice.
Re: Recording outside of working directory
Read http://www.zoneminder.com/wiki/index.ph ... Hard_Drive
Symlinks are not detected by the debian installer packages, so will be removed and recreated. zmaudit will then not be able to find the files and will kill all the events in your database.
If using debian or ubuntu, do not use symlinks for this!
Symlinks are not detected by the debian installer packages, so will be removed and recreated. zmaudit will then not be able to find the files and will kill all the events in your database.
If using debian or ubuntu, do not use symlinks for this!