on_picture_save - calling rsync
Question
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 user@domain.co.uk:/var/www/www.domain.co.uk/securityCamera/galleries/&Y&m&d/
Environment
Motion version: |
3.2.12 |
ffmpeg version: |
|
Libraries: |
ffmpeg, mysql, postgresql |
Server OS: |
Ubuntu 8.04 |
--
MichaelS - 07 Mar 2011
Answer