How can make rsync use sudo

Posted by Bryan M. on Server Fault See other posts from Server Fault or by Bryan M.
Published on 2010-06-15T19:24:20Z Indexed on 2010/06/15 19:33 UTC
Read the original article Hit count: 311

Filed under:
|
|

I use rsync to mirror a number of folders on our failover server. However, some of our files, such as thumbnails or full-text indexes, are generated by our applications under the web user (named 'nobody'), and default to restrictive permissions.

Also, I'm doing this over ssh, where root access is disabled, and I'd like to keep it that way, if possible.

Is there any reasonable way I can tell rsync to run as sudo? Or should I look into changing the file permissions?

Thanks

© Server Fault or respective owner

Related posts about backup

Related posts about sudo