Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I try to backup esxi via rsync over ssh. I run rsyc but I get error:

# rsync -e ssh -av root@ip.esxi:file.txt .
sh: rsync: not found
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(635) [receiver=3.0.3]

If I connect with ssh/scp everything is fine.

share|improve this question

3 Answers 3

up vote 1 down vote accepted

You need rsync on your ESXi. You can get a binary here.

share|improve this answer
    
The site reqiure username & password. –  amiad Dec 10 '13 at 11:32
    
Sorry, it was a typo in the URL. –  Damien Debin Dec 10 '13 at 14:40

The rsync command is not part of the default ESXi installation. ESXi uses a modified version of Busybox to provide a limited subset of Linux commands on the console. That's why rsync isn't available. While it's possible to dump a statically-compiled rsync binary onto an ESXi host, this is not the way to handle backups with VMware.

You can use scp, however.

There are better tools for VMware backups and handling virtual machines, though.

share|improve this answer

rsync is not installed, or not installed in a location that is in your $PATH on the remote side

share|improve this answer
    
I not run rsync on esxi but linux server. The remote server (esxi in this case) not need installed rsync but ssh only. –  amiad Oct 31 '13 at 12:24
1  
yes, it has to be installed on both machines. –  Javier Oct 31 '13 at 13:55

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.