In its most basic form, a shell script can provide a convenient variation of a system command where special environment settings, command options, or post-processing apply automatically, but in a way that allows the new script to still act as a fully normal Unix command. All posts here will be for debian based or ESXi based systems.
|
ESXi 5.x FTP backup scriptDEPRECATED - Due to FTP protocol not being able to support thin provisioned (sparse) files, this method is no longer suggested. You run the risk of filling up your FTP server with vmdk files at the fully allocated size. A suggested replacement is using the "vmcpdir" command along with something like the "NFSbackup.sh" script to avoid the "sparse" file problem. Both are written by me and can be found on this site.
This script performs an FTP backup of all running VM guests on an EXSi 5.x server. It performs a soft shutdown, or a power off, of each running VM guest prior to backup. |
vmcpdirThis command copies the contents of an ESXi 5.x guest folder to a destination without the thin provisioned (sparse) files expanding to their fully allocated size.
|