rsync windows to linux permission denied
- by user64908
Using Command
rsync -avzP --delete --omit-dir-times ../../ [email protected]:/var/www/mysite/
I'm getting
rsync: mkstemp "/var/www/mysite/.." failed: Permission denied (13)
If ext is in the www-data group should I still set all the files to be owned by user www-data?
I am trying to publish the files with rsync and then set the permissions using
sudo chown -R www-data doc
sudo chgrp -R www-data doc
but I can't even rsync because of the permission denied. The SSH works fine, the rsync too except when it tries to write over or update some of the files in /var/www
Client
* Windows 7
* Cygwin 1.7.16 (GNU bash, version 4.1.10(4)-release (i686-pc-cygwin))
* rsync version 3.0.9 protocol version 30
Server
* Ubuntu 12.04
* Apache2
* Root Accounts [ubuntu,ext]
* Groups [www-data]
* sudo vigr has www-data:x:33:ubuntu,ext
I have already configure this
http://stackoverflow.com/questions/2124169/cwrsync-ignores-nontsec-on-windows-7
This article has also managed to confuse me
http://unix.stackexchange.com/questions/41687/how-should-i-rsync-files-in-var-www-if-i-want-them-to-be-owned-by-www-data
What is the right procedure?