Page 1 of 1

Events directory

Posted: Wed Feb 25, 2009 9:13 am
by volkan2k
Hi all

At the moment ZoneMinder saves the events that are made in the events directory (/var/www/html/zm/events)

I want him to keep doing that + save it on my USB harddisk

Could anyone help me out?

Posted: Wed Feb 25, 2009 12:26 pm
by zoneminder
You can easily make the /var/www/html/zm/events path a symbolic link to another directory on your USB harddisk. You may need to configure your apache to follow symbolic links and caveats about disk performance and what happens if the disk disappears etc all apply.

Copy FTP files to an external USB HHD

Posted: Thu Feb 26, 2009 1:48 am
by dsandoz
Hi Phil:

Is there a way to copy the "Tar file" that ZM ftp's to an external USB HHD?
Can the FTP'ing and the file copying be accomplished at the same time? It seems like a line could be added to the zmfilter.pl file. I'm looking at the zmfilter.pl file, man "is it complex" I can see the tar files in /tmp, so it would be a matter of creating a Perl script to copy them. Not sure how long tmp will keep them. Am I on the right track?

Thanks
DanO

Posted: Thu Feb 26, 2009 9:24 am
by zoneminder
It might be the simplest way to do this would be to create a custom script and add that as an action to the filter. It will run after the ftp and can then just use the same file as I don't think it gets deleted.

Posted: Fri Feb 27, 2009 8:55 am
by volkan2k
Thank you for your help Phil.