Page 1 of 1
SFTP?
Posted: Mon Sep 05, 2005 7:02 pm
by evermorian
I noticed that ZoneMinder has an option to FTP events to a remote location. My understanding is that running an FTP server is risky business and provides a major security hole for an Internet-connected server, even if carefully configured.
How are people handling this?
Is there any way to use something a little safer, like SFTP or SCP?
Andrew
Posted: Mon Sep 05, 2005 7:39 pm
by jameswilson
i just use ftp but my ftp server is just an ftp server
Posted: Tue Sep 06, 2005 6:10 am
by evermorian
Makes sense. I can probably go to a similar set up in the future.
As an interim solution, what about using a cron job that runs once a minute and does rsync over ssh to mirror the /var/www/html/zm/events directory to a remote location?
Anyone doing anything like that? Would it produce an outrageous load on the ZoneMinder machine or the remote server? Other problems?
Andrew
Posted: Tue Sep 06, 2005 12:16 pm
by lazyleopard
Probably better to write a little wrapper and use a filter with an "Automatically execute command..." specified. That way you could keep rsync (or scp, or whatever) from scanning he entire events tree every time...
Posted: Tue Sep 06, 2005 7:43 pm
by evermorian
Can you provide or point me at instructions for how to configure that? I can write a shell script that does the copy. I haven't seen where/how I would create a filter, either in the ZM console or in the docs.
Andrew
Posted: Tue Sep 06, 2005 8:45 pm
by cordel
Click on any of the tabulated numbers on the console page (except for those under zones) and that will/should bring up two windows. One will be the filter page else click on filter on the window that opens.
Regards,
Cordel
Posted: Tue Sep 06, 2005 9:27 pm
by evermorian
Okay, I click on the tabulated values and get a list of events. I click on ShowFilterWindow and I get a window that looks like a way to filter and sort past events (rather than something that would be triggered when an event is created). None of the drop-downs contain anything like "Automatically execute command..."
Andrew
Posted: Tue Sep 06, 2005 9:37 pm
by jameswilson
set all the filters as you need them and test with the 'submit' button.
Once your happy click save then another window will appear
in this window various automatic options are available includeing the one you want.
James
Posted: Tue Sep 06, 2005 9:40 pm
by evermorian
I see: it is necessary to click the "save" link from the filter window to get to the next window that allows input of the command to execute, etc.
Andrew