rsync /var/www dir problem

Discussion in 'ISPConfig 3 Priority Support' started by Tom John, May 29, 2019.

  1. Tom John

    Tom John Member HowtoForge Supporter

    Hi guys,

    i want to copy files from one server to another with the following command and get the following error:
    Code:
    [email protected]:~# rsync -zvh /var/www/clients/client1/* [email protected]:/var/www/clients/client1
    [email protected]'s password: 
    skipping directory web1
    skipping directory web10
    skipping directory web11
    skipping directory web13
    skipping directory web14
    skipping directory web16
    skipping directory web2
    skipping directory web4
    skipping directory web5
    skipping directory web6
    skipping directory web8
    skipping directory web9
    rsync: mkdir "/var/www/clients/client1" failed: No such file or directory (2)
    rsync error: error in file IO (code 11) at main.c(675) [Receiver=3.1.2]
    
    
    When i want to copy the whole /var/www file it doenst work as well
    Code:
    [email protected]:~# rsync -zvh /var/www/* [email protected]:/var/www
    [email protected]'s password: 
    skipping directory apps
    skipping directory clients
    skipping directory conf
    skipping directory html
    skipping directory php-fcgi-scripts
    skipping directory webalizer
    skipping non-regular file "artyemotions.com"
    skipping non-regular file "discount-webdesign.com"
    skipping non-regular file "ispconfig"
    skipping non-regular file "jptorrealba.com"
    skipping non-regular file "loslassen.teneriffa-akupunktur.com"
    skipping non-regular file "mexico.teneriffa-akupunktur.com"
    skipping non-regular file "neue-welten.teneriffa-akupunktur.com"
    skipping non-regular file "portal.discount-webdesign.com"
    skipping non-regular file "rooms-tenerife.com"
    skipping non-regular file "server1.cl-i.net"
    skipping non-regular file "teneriffa-akupunktur.com"
    skipping non-regular file "thailand.teneriffa-akupunktur.com"
    skipping non-regular file "tom-john.com"
    skipping non-regular file "up-and-download.com"
    skipping non-regular file "upload.up-and-download.com"
    
    sent 582 bytes  received 847 bytes  92.19 bytes/sec
    total size is 461  speedup is 0.32
    [email protected]:~# 
    
    What is my error?
    how can i copy the files correctly with rsync?
    thanks for your kind help
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    I use this command, run on the old server:

    rsync -avz --delete -e ssh /var/www/ [email protected]:/var/www/
     
  3. Tom John

    Tom John Member HowtoForge Supporter

    Thank you so much, now its working.
    I did copy the mysql database with this command:
    Code:
    rsync -avz --delete -e ssh /var/lib/mysql [email protected]:/var/lib/mysql
    
    before i stopped all mysql.service on both servers.
    after starting mysql.service again on the new server i get this error in the logs:
    Code:
    -- Unit mysql.service has begun starting up.
    
    Jun 01 20:49:34 server4.cl-i.net mysqld[27023]: Initialization of mysqld failed: 0
    Jun 01 20:49:34 server4.cl-i.net systemd[1]: mysql.service: Control process exited, code=exited status=1
    
    
    
    Why do i get this error of mysql ?
    thanks a lot for your help
     
    Last edited: Jun 1, 2019
  4. Tom John

    Tom John Member HowtoForge Supporter

    I just installed the server new and then i did copy the mysql database with mysql dump and it worked better.
     

Share This Page