Page 1 of 1
scp upload support
Posted: Fri Apr 20, 2007 1:45 pm
by trickeh
just a suggestion but it would be really useful (and more secure!)
SCP support could be added so events can be automatically sent over a secure connection to a remote host same as the ftp does.
thanks!
Posted: Mon Apr 23, 2007 12:02 am
by jameswilson
do you mean as an upload?
Posted: Mon Apr 23, 2007 2:41 pm
by trickeh
just to clarify..
assume you have a setup which is recording 24/7 and you require offsite backup of the logged events.
It would be nice if zoneminder had a crontab to schedule tar'ing and gnupg encrypting the events every 24hrs and scp'ing the archive to an offsite server.
cheers
Tricky
Posted: Mon Apr 23, 2007 7:57 pm
by zoneminder
If you want to use scp then you can just create a script that does the scping for you and add that to your filter instead of the upload function. That script will be executed in the events directory and be passed a parameter which is <mon id>/<event id> which is the path to the event dir. So all your script would really need to do would be to scp the files at that location to your destination. That is a more flexible way of doing things that adding a new option to ZM at the moment as everyone wants something different. The script would only be run once per event.