Store the events/images in another directory/drive

Forum for questions and support relating to the 1.24.x releases only.
Locked
xeo
Posts: 3
Joined: Tue Sep 07, 2010 7:44 am

Store the events/images in another directory/drive

Post 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.
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Post 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.
relyt05
Posts: 4
Joined: Tue Oct 05, 2010 10:19 pm

Post by relyt05 »

Noob question:

What would the proper entry be to enter in /etc/fstab to store on an external HD?
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Post 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.
estranged1977
Posts: 15
Joined: Wed Feb 17, 2010 1:57 am

Post 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.
Locked