0
I am copying files via rsync between two linux servers, the command I am using is:
rsync -Cravzpt --remove-source-files --exclude 'script.sh' --exclude 'index.php' /var/www/html/bkpserver/tarefario [email protected]:/var/www/html/
But when I run this command, it asks root password and after a few seconds, it shows the following error:
ssh: connect to host xxx.xxx.xxx.xxx port 22: Connection refused
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(226) [sender=3.1.1]
I have no idea why you are having this error, because I have exactly the same command on 3 more different servers and copying to the same target server and they all work.
This question is not about programming. There must be another OS community that there with that.
– Thiago Lunardi
@Thiagolunardi The question is not of programming.
– Sidon
@Thiagolunardi Dei o enter antes da hora, The question is not specifically about programming but is about Ubuntu servers. I think it’s in the scope.
– Sidon
There is Server fault Stack Exchange
– Thiago Lunardi
@Thiagolunardi So tell me, what kind of question can be asked in these tags that he flagged? Ubuntu and Server. Well, Ora. :-)
– Sidon