SFTP?

Support and queries relating to all previous versions of ZoneMinder
Locked
evermorian
Posts: 8
Joined: Sun Sep 04, 2005 7:18 pm
Location: Phoenix, AZ USA

SFTP?

Post 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
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

i just use ftp but my ftp server is just an ftp server
evermorian
Posts: 8
Joined: Sun Sep 04, 2005 7:18 pm
Location: Phoenix, AZ USA

Post 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
User avatar
lazyleopard
Posts: 403
Joined: Tue Mar 02, 2004 6:12 pm
Location: Gloucestershire, UK

Post 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...
Rick Hewett
evermorian
Posts: 8
Joined: Sun Sep 04, 2005 7:18 pm
Location: Phoenix, AZ USA

Post 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
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post 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
evermorian
Posts: 8
Joined: Sun Sep 04, 2005 7:18 pm
Location: Phoenix, AZ USA

Post 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
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post 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
evermorian
Posts: 8
Joined: Sun Sep 04, 2005 7:18 pm
Location: Phoenix, AZ USA

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