Rsync - cannot transfer file to remote server

Discussion in 'ISPConfig 3 Priority Support' started by pawan, Aug 29, 2017.

  1. pawan

    pawan Member HowtoForge Supporter

    I am using the following command to transfer file, but getting the error.

    Code:
    [email protected]:/$ 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]
    
     
  2. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    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
     
  3. pawan

    pawan Member HowtoForge Supporter

    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.
     

Share This Page