on_picture_save - calling rsync
I have a line in my conf file which uploads images via rsync/ssh to my web server. (See verbatim text).
But this only works when I call motion directly from the command line, not from init.d.
I'm guessing that this has to do with motion running under the motion user, and rsync not liking that?
What's the best practice here, can rsync be run under the motion user, or will motion have to be run as root? (I know this is supposed to be a bad idea).
Thanks for a very cool app, by the way...
on_picture_save rsync -avz &f -e ssh firstname.lastname@example.org:/var/www/www.domain.co.uk/securityCamera/galleries/&Y&m&d/
| Motion version:
| ffmpeg version:
|| ffmpeg, mysql, postgresql
| Server OS:
|| Ubuntu 8.04
- 07 Mar 2011