I'm using capistrano-wpcli (link), a program that uses 'rsync' to synchronize folders between development and testing servers.

I've set the uploads folder's permission on the remote server to 777 temporarily:

drwxrwxrwx 3 web www-data 4096 May 24 20:04 uploads

I'm performing rsync operation as a deploy user, the deploy user is in www-data group (if it matters at all with 777 permission).

The rsync command looks like this:

rsync -avz --rsh=ssh web/app/uploads/ deploy@domain.com:/srv/www/domain.com/shared/uploads/

Unfortunately, the rsync operation returns this error message several times:

rsync: failed to set times on "/srv/www/domain.com/shared/uploads/.": Operation not permitted (1)

Why is the rsync operation not permitted?

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.