I am using the following command to transfer file, but getting the error. Code: pawan@server1:/$ rsync -rvzh /var/www/clients/client75/web132/web/ [email protected]:/var/www/clients/client75/web132/web [email protected]'s password: sending incremental file list rsync: opendir "/var/www/clients/client75/web132/web/." failed: Permission denied (13) rsync: connection unexpectedly closed (9 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at io.c(605) [sender=3.0.9]
The web directories are secured against changes if you did not uncheck that on the ISPConfig interface. You have to do chattr -i /var/www/clients/client75/web132 on the target, and after finishing the sync chattr +i /var/www/clients/client75/web132
Thanks croydon. The chattr is not required if I am using the related apache user, may be I was using some wrong path. I am able to do it now without using chattr- Thanks though.