ESXi 5.1 and rsync – damiendebin.net.
Posted by jpluimers on 2014/03/23
Interesting: ESXi 5.1 and rsync – damiendebin.net. It works in ESXi 5.5 too, and the French link below has a version that runs on ESXi 4.
Now you can do these forms of backup:
- ESXi: Hot Replication of Running Virtual Machines – Cascadeo Corp..
- VMware ESX 4: sauvegarde d’une VM sans VSphere CLI, avec SSH, Rsync, Snapshot – Pegasus45.
(Google translated title: VMware ESX 4: backup of a VM without vSphere CLI with SSH, Rsync, Snapshot – Pegasus45.) - Client NUT natif pour VMWare ESXi @ Le journal de René.
(Google translated title: NUT Client for VMware ESXi native @ The Journal of René.) - Client NUT pour ESXi 5 @ Le journal de René.
(Google translated title: NUT Client for ESXi 5 @ The Journal of René.)
Install it like this:
cd /tmpwget http://damiendebin.net/files/esxi-static-rsync-3-1-0.tar.gztar xvf esxi-static-rsync-3-1-0.tar.gzmv rsync-static /bin/rsync-staticln -s /bin/rsync-static /bin/rsyncrsync
To change the firewall:
cat > /etc/vmware/firewall/rsync.xml- paste the XML text
- press CTRL-D to save the file
esxcli network firewall refreshesxcli network firewall ruleset list
When using rsync, these links will get you up to speed:
- Rsync: backup and restore (very elaborate tutorial).
- How to Use rsync to Backup Your Data on Linux.
- Rsync Show Progress Bar While Copying Files.
- Rsync Basics.
- Rsync -ain explained.
- networking – rsync certain files, excluding the rest, ignoring .svn/ directory, recursively – Server Fault.
- 10 types of people: Rsync only specific files and directories.
- Using rsync to recursively copy a directory while excluding a sub-directory but including a file in a sub-directory of the excluded sub-directory – Super User using
--exclude-from=FILEand--include-from=FILE. - The -L flag to rsync will sync the contents of files or directories linked to, rather than the symbolic link.via linux – Perform rsync while following sym links – Server Fault.
- Using time to print execution time of a command.
- vi cheat sheet.
–jeroen
Alternate download for now:
http://www.xs4all.nl/~jp/rsync-esxi/esxi-static-rsync-3-1-0.tar.gz






VMware ESXi – converting a thick disk to a thin disk – via: Server Fault « The Wiert Corner – irregular stream of stuff said
[…] instance with rsync is great for making a local […]
tj said
Hi, I statically compiled the latest rsync (3.1.1) & can successfully execute the command on my esxi server. I am getting the following error from rsync however:
ERROR: out of memory in receive_sums [sender] │······
rsync error: error allocating core memory buffers (code 22) at util2.c(102) [sender=3.1.1] │······
rsync: [generator] write error: Broken pipe (32) │······
Do you know how I could go about making this work? The command I am using is:
rsync -vrltH –delete -pgo –stats -S -D –numeric-ids –bwlimit=50 -A -X –exclude-from=/home/files/porchefiles/2014.08.03-08.58.10/exclude –link-des│······t=/home/files/porchefiles/2014.08.02-21.48.13/tree hq.porchecars.com:/home/ /home/files/porchefiles/2014.08.03-08.58.10/tree
Both sender & receiver are on 3.1.1.
Thanks
jpluimers said
I have no idea, as I haven’t compiled rsync statically (how do you do that?), I just downloaded statically linked builds.
jpluimers said
Finally figured this out with rsync 3.1.2: add the
--protocol=29parameter to force using a lower protocol version.A blog post is coming up on this in a few months.
7zip on ESXi through p7zip « The Wiert Corner – irregular stream of stuff said
[…] A while ago, I wrote about getting rsync on ESXi: ESXi 5.1 and rsync – damiendebin.net. […]
*nix: recursively listing “hidden” files from the current directory « The Wiert Corner – irregular stream of stuff said
[…] a follow up on my recent rsync on ESXi 5.1 post, as – when rsync in ESXi terminates the hard way because of a lost SSH connection – […]