Motion - Support Question 2011x 03x 07x 213506

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

Topic revision: r2 - 08 Mar 2011, MichaelS
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.