php rsync with exec() not working

Posted by mojeime on Server Fault See other posts from Server Fault or by mojeime
Published on 2011-03-18T13:03:03Z Indexed on 2011/03/18 16:12 UTC
Read the original article Hit count: 306

Filed under:
|
|

Why this:

rsync -avz -e ssh /home/userneme/folder [email protected]:/var/www/folder

works from cronjob and this:

exec("rsync -avz -e ssh /home/userneme/folder [email protected]:/var/www/folder");

doesn't work.

I know exec is working because i have a few places in my appp that do convercion from pdf to jpg with ImageMagick (exec).

SOLVED

exec is working OK it was a permission issue on remote server. "Local" server is shared reseller account and remote server is my first VPS Ubuntu 10.10 LAMP box. If only I had a system administrator since i'm just a software developer forced to do this and i stink at it :) Thank You all!

© Server Fault or respective owner

Related posts about php

Related posts about rsync