Page 1 of 1

Store the events/images in another directory/drive

Posted: Wed Sep 29, 2010 8:26 pm
by xeo
Hi,
who do I change the dir where Zoneminder store the events/images (normally in /var/cache/zonemindes)
I try to simlink to the mounted partition where I want the files but without results.

Thank you in advance.

Posted: Tue Oct 05, 2010 2:58 pm
by knight-of-ni
Here are two solutions, the first you have only partially completed...

If you go the route of creating a link, then you also need to make sure that Zoneminder has permission to write to the destination folder. This will depend on what linux distro you are running. For Redhat & CentOS, the user apache needs write permission. For Ubuntu, the user www-data needs write permission. Typically the user that needs permission is the user that your Apache web server runs under.

Another way is to simply mount the partition directly to the zoneminder events folder. You do that automatically on startup by creating the proper entry in /etc/fstab. This is the way I like to do it.

Posted: Sun Oct 10, 2010 11:08 pm
by relyt05
Noob question:

What would the proper entry be to enter in /etc/fstab to store on an external HD?

Posted: Sat Oct 16, 2010 1:05 am
by knight-of-ni
Your question cannot be answered with precision because it requires detailed knowledge of your hardware and the specific os you are running.

Here is the fstab on my system:
/dev/sda3 /var/www/html/zm/events ext4 defaults,noatime,commit=120,data=writeback 0 2

From a command prompt enter "man fstab" to learn how to modify the above line for your system.

Be careful. Errors in your fstab can make your system non-bootable.

Posted: Mon Oct 18, 2010 6:54 pm
by estranged1977
In my experience the best and fast solution ui to use a gb network and save the events on a NAS server, im using now the iomega ix2-200, and in the zm directory before start capturing I deleted the folder events, then i created a link to the events foder in the nas server mounted with nfs.