VMware Cloud Community
tomtan76
Contributor
Contributor

rsync a file from one esxi server to another

I have two esxi 3.5 servers with no shared drives.

i want to be able to mv VMs from the first server's local drive

to the second server's local drive with rsync.

both server have sshd turned on, and both have a statically built rsync in /bin.

I am currently able to rsync files to and from a third linux server.

But when i try to rsync straight between the two esxi server, rsync complains there is no ssh...

is there an ssh (client) binary that i can install on my esxi server?

Thanx

Reply
0 Kudos
25 Replies
devzero
Expert
Expert

>@devzero have you statically compiled a process tracing binary and tested the transfer with that?

i think it was the strace from centos3 i have tried.

Reply
0 Kudos
RobinVm1
Contributor
Contributor

hi,

after trying almost everything to rsync data back from the remote storage to the esxi (4.0) i am close to giving up.

I read, i think, the whole community posts on this subject.

I tried 3 different rsync binaries (all found in the community posts) (3.0.3, 3.04,3.0.6) nothing works.

Neighter starting on a remote host to an ESXi host running rsyncd

rsync -avhpWE --progress /localstore/mydirtotransfer rsync://myesxihost/mymodule/mytargetdir/

Nor starting from an ESXi host

rsync -avhpWE --progress rsync://myremotehost/mymodule/mysourcedir /vmfs/volumes/localstore/mytargetdir/

the only way i can restore my data is using an nfs mount, and then rsync local

rsync -avhpWE --progress /vmfs/volumes/myremotenfs/mysourcedir /vmfs/volumes/localstore/mytargetdir/

but this ist terriby slow. The maximum i can get this way ist about 9MB/s.

Please, if anyone can give me an idea on how to get better speeds, i'd be very happy.

Robin

PS: if i try the same commands with the option "-e" it works, but then the datarate is about only 4-5MB/s, which is (i think) because the ssh connection uses relatively hig cpu (75%).

is there any way to tell the dropbear not to use encryption or just to use blowfish? maybe this would speed up things a bit.

Reply
0 Kudos
marshall28
Contributor
Contributor

Does anyone have this esxi 3.5 rsync binary? The rapidshare link on the first page said file not found.

thanks

Reply
0 Kudos
TomaszSzreder
Contributor
Contributor

Try this one: http://vm-help.com/esx/esx3i/Enable_FTP/rsync (by Dave Mishchenko).

Reply
0 Kudos
Zhuominchen
Contributor
Contributor

Apart from Rsync binary working for ESXI 3/4/5,  please bear in mind that the files being Rsync need to be in

read-only mode.   This is my suggestion how you replicate a running VMware ESXI guest from one hosting machine to another.

1) Remove all snapshots for a given guest

2) Create ONE snapshot.  

Now you will see that there are two files

hostname.vmdk  (NOT change anymore) <--Snapshot

hostname-000001.vmdk (small running disk file, keep on changing as guest is using it)

3) Rsync all files to another host,  disregard hostname-000001.vmdk which is out of sync

Reply
0 Kudos
IvarHome
Hot Shot
Hot Shot

Rsync is not enough and now ESXi version is 6.7. I want also incremental backup of those rsync deltas, not just replication, also sheduling, also some windows where I can select datastore files that I want to backup and also deduplication should be nice. So, Im searching complete software.

Reply
0 Kudos