Rsync In ESXI
Published: 2023-02-24
Having Rsync on ESXI can be useful for many rasons. Personally, I like to use it in an SSH session to copy what I call "base" images of VMs whenever I need a new one.
Generally, I'll build a virtual machine with basic settings and create a template or base image. When I have the machine the way I like it, I'll copy it off to a storage folder on the datastore, usually called "baseimages". Whenver I need a new vm based on that "template", I'll simply copy it back and register it on the host.
Rsync is nice in this scenario because it will give a progress bar and one can also see data write speeds as well. While the web interface could be used to browse the datastore and visually start the copy from there, I prefer to use the command line - I find it a bit more robust. The web gui has a bug in it (at least on 7.0 U3) where it errors out on copy even though it still completes the task.
In order to maintain persistance on my server (USB install of ESXI) I added a couple of lines of code to the local.sh
file to recreate the sym links on boot.
Installing Rsync
Main credit goes here: https://github.com/gmasonPCS/rsync-on-esxi
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
|
Sample Command
1 2 |
|