Events directory

Support and queries relating to all previous versions of ZoneMinder
Locked
volkan2k
Posts: 6
Joined: Tue Feb 10, 2009 8:32 am

Events directory

Post 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?
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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.
Phil
dsandoz
Posts: 4
Joined: Thu Feb 21, 2008 9:47 pm

Copy FTP files to an external USB HHD

Post 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
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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.
Phil
volkan2k
Posts: 6
Joined: Tue Feb 10, 2009 8:32 am

Post by volkan2k »

Thank you for your help Phil.
Locked