查看完整版本: [轉貼]ghettoVCB.sh

chun 2012-6-25 13:09

[轉貼]ghettoVCB.sh

<a href="http://communities.vmware.com/docs/DOC-8760">http://communities.vmware.com/docs/DOC-8760</a>
<div><h1 style="margin-bottom: 18px; padding-top: 10px; padding-bottom: 4px; border: 0px; outline: 0px; font-size: 30px; background-color: rgb(248, 244, 230); font-weight: normal; color: rgb(77, 78, 83); font-family: Arial, Helvetica, sans-serif; ">Table of Contents:</h1><ul style="padding-left: 2.25em; border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); list-style-position: initial; list-style-image: initial; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><ul style="padding-left: 2.25em; border: 0px; outline: 0px; background-color: transparent; list-style: disc; "><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Description</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Features</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Requirements</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Setup</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Configurations</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Usage</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Sample Execution&nbsp;<ul style="padding-left: 2.25em; border: 0px; outline: 0px; background-color: transparent; list-style: disc; "><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Dry run Mode</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Debug backup Mode</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Backup VMs stored in a list</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Backup All VMs residing on specific ESX(i) host</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Backup All VMs residing on specific ESX(i) host and exclude the VMs in the exclusion list</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Backup VMs using individual backup policies</li></ul></li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Enable compression for backups</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Email Backup Logs</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Restore backups (ghettoVCB-restore.sh)</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Cronjob FAQ</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">FAQ</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Our NFS Server Configuration</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Useful Links</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Change Log</li></ul></ul><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><h1 style="margin-bottom: 18px; padding-top: 10px; padding-bottom: 4px; border: 0px; outline: 0px; font-size: 30px; background-color: rgb(248, 244, 230); font-weight: normal; color: rgb(77, 78, 83); font-family: Arial, Helvetica, sans-serif; ">Description:</h1><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br>This script performs backups of virtual machines residing on&nbsp;<strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">ESX(i) 3.5/4.x+/5.x</strong>&nbsp;servers using methodology similar to<a class="jive-link-external" href="http://www.vmware.com/products/vi/consolidated_backup.html" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; color: rgb(51, 153, 204); text-decoration: none; ">VMware's VCB</a>&nbsp;tool. The script takes snapshots of live running virtual machines, backs up the&nbsp; master VMDK(s) and then upon completion, deletes the snapshot until the next backup. The only caveat is that it utilizes resources available to the Service Console of the ESX server or Busybox Console (Tech Support Mode) of the ESXi server&nbsp; running the backups as opposed to following the traditional method of offloading virtual machine backups through a VCB proxy.<br><br>This script has been tested on&nbsp;<strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">ESX 3.5/4.x/5.x and ESXi 3.5/4.x/5.x</strong>&nbsp;and supports the following backup mediums:&nbsp;<strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">LOCAL STORAGE</strong>,&nbsp;<strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">SAN</strong>&nbsp;and&nbsp;<strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">NFS</strong>. The script is non-interactive and can be setup to run via cron. Currently, this script accepts a text file that lists the display names of virtual machine(s) that are to be backed up. Additionally, one can specify a folder containing configuration files on a per VM basis for&nbsp; granular control over backup policies.<br><br>Additionally, for ESX(i) environments that don't have persistent NFS datastores designated for backups, the script offers the ability to automatically connect the ESX(i) server to a NFS exported folder and then upon backup completion, disconnect it from the ESX(i) server. The connection is established by creating an NFS datastore link which enables monolithic (or thick) VMDK backups as opposed to using the usual&nbsp; *nix mount command which necessitates breaking VMDK files into the 2gbsparse format for backup. Enabling this mode is self-explanatory and will evidently be so when editing the script (Note:&nbsp;<strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">VM_BACKUP_VOLUME</strong>&nbsp;variable is ignored if&nbsp;<strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">ENABLE_NON_PERSISTENT_NFS=1</strong>&nbsp;).<br><br>In its current configuration, the script will allow up to 3 unique backups of the Virtual Machine before it will overwrite the previous backups; this however, can be modified to fit procedures if need be. Please be diligent in running the script in a test or staging environment before using it on production live Virtual Machines; this script functions well within our environment but there is a chance that&nbsp; it may not fit well into other environments.</p><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; ">If you have any questions, you may post in the dedicated&nbsp;<a class="jive-link-socialgroup-small" href="http://communities.vmware.com/groups/ghettovcb" style="margin: 0px; padding: 1px 0px 1px 17px; border: 0px; outline: 0px; background-image: url(http://communities.vmware.com/4.0.13/images/jive-icon-groups-12x12.gif); background-color: transparent; color: rgb(51, 153, 204); text-decoration: none; zoom: 1; background-position: 0% 50%; background-repeat: no-repeat no-repeat; ">ghettoVCB VMTN community group</a>.</p><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; ">If you have found this script to be useful and would like to contribute back, please click&nbsp;<a class="jive-link-external" href="http://www.virtuallyghetto.com/p/how-you-can-help.html" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; color: rgb(51, 153, 204); text-decoration: none; ">here</a>&nbsp;to donate.</p><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Please read&nbsp;<span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; text-decoration: underline; ">ALL</span>&nbsp;documentation + FAQ's before posting a question about an issue or problem. Thank You<br></strong></p><h1 style="margin-bottom: 18px; padding-top: 10px; padding-bottom: 4px; border: 0px; outline: 0px; font-size: 30px; background-color: rgb(248, 244, 230); font-weight: normal; color: rgb(77, 78, 83); font-family: Arial, Helvetica, sans-serif; ">Features</h1><ul style="padding-left: 2.25em; border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); list-style-position: initial; list-style-image: initial; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Online back up of VM(s)</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Support for multiple VMDK disk(s) backup per VM</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Only valid VMDK(s) presented to the VM will be backed up</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Ability to shutdown guestOS and initiate backup process and power on VM afterwards with the option of hard power timeout</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Allow spaces in VM(s) backup list (not recommended and not a best practice)</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Ensure that snapshot removal process completes prior to to continuing onto the next VM backup</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">VM(s) that intially contain&nbsp;<strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">snapshots</strong>&nbsp;will not be backed up and will be ignored</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Ability to specify the number of backup rotations for VM</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Output back up VMDK(s) in either&nbsp;<strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">ZEROEDTHICK</strong>&nbsp;(default behavior) or&nbsp;<strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">2GB SPARSE</strong>&nbsp;or&nbsp;<strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">THIN</strong>&nbsp;or&nbsp;<strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">EAGERZEROEDTHICK</strong>format</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Support for both SCSI and IDE disks</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Non-persistent NFS backup</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Fully support VMDK(s) stored across multiple datastores</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Ability to compress backups (<span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; color: red; "><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Experimental Support - Please refer to FAQ #25</strong></span>)</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Ability to configure individual VM backup policies</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Ability to include/exclude specific VMDK(s) per VM (requires individual VM backup policy setup)</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Ability to configure logging output to file</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Independent disk awareness (will ignore VMDK)</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">New timeout variables for shutdown and snapshot creations</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Ability to configure snapshots with both memory and/or quiesce options</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Ability to configure disk adapter format</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Additional debugging information including dry run execution</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Support for VMs with both virtual/physical RDM (pRDM will be ignored and not backed up)</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Support for global ghettoVCB configuration file</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Support for VM exclusion list</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Ability to backup all VMs residing on a specific host w/o specifying VM list</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Implemented simple locking mechenism to ensure only 1 instance of ghettoVCB is running per host</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Updated backup directory structure - rsync friendly</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Additional logging and final status output</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Logging of ghettoVCB PID (proces id)</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Email backup logs (<span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; color: red; "><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Experimental Suppport</strong></span>)</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Rsync "Link" Support (<span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; color: red; "><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Experimental Suppport</strong></span>)</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; "><span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; color: rgb(0, 0, 0); ">Enhanced "dryrun" details including configuration and/or VMDK(s) issues</span></li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; "><span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; color: rgb(0, 0, 0); ">New storage debugging details pre/post backup</span></li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; "><span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; color: rgb(0, 0, 0); ">Quick email status summary</span></li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; "><span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; color: rgb(0, 0, 0); ">Updated ghettoVCB documentation</span></li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; "><span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; color: rgb(0, 0, 0); ">ghettoVCB available via github</span><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">&nbsp;<br></strong></li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; "><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; color: rgb(0, 0, 255); ">Support for ESXi 5.0&nbsp;</strong><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">NEW!</strong><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; "><span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; color: rgb(0, 0, 255); ">&nbsp;</span><br></strong></li></ul><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><hr style="width: 664px; height: 1px; background-color: rgb(220, 220, 220); border-style: solid none none; border-top-color: rgb(196, 206, 212); clear: both; margin: 6px 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><h1 style="margin-bottom: 18px; padding-top: 10px; padding-bottom: 4px; border: 0px; outline: 0px; font-size: 30px; background-color: rgb(248, 244, 230); font-weight: normal; color: rgb(77, 78, 83); font-family: Arial, Helvetica, sans-serif; ">Requirements:</h1><ul style="padding-left: 2.25em; border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); list-style-position: initial; list-style-image: initial; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">VMs running on ESX(i) 3.5/4.x+/5.x</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">SSH console access to ESX(i) host</li></ul><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><hr style="width: 664px; height: 1px; background-color: rgb(220, 220, 220); border-style: solid none none; border-top-color: rgb(196, 206, 212); clear: both; margin: 6px 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><h1 style="margin-bottom: 18px; padding-top: 10px; padding-bottom: 4px; border: 0px; outline: 0px; font-size: 30px; background-color: rgb(248, 244, 230); font-weight: normal; color: rgb(77, 78, 83); font-family: Arial, Helvetica, sans-serif; ">Setup:</h1><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br>1) Download&nbsp;<strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">ghettoVCB</strong>&nbsp;from&nbsp;<a class="jive-link-external-small" href="https://github.com/lamw/ghettoVCB/downloads" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; color: rgb(51, 153, 204); text-decoration: none; ">github</a>&nbsp;and upload to either your ESX or ESXi system (use scp or WinSCP to transfer the file)<br><br>2) Extract the contents of the tarball (filename will vary):<br><br></p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">[root@himalaya ~]# </code>tar -zxvf lamw-ghettoVCB-19e0d4b.tar.gz<br>tar: warning: skipping header 'g'<br>lamw-ghettoVCB-19e0d4b/<br>lamw-ghettoVCB-19e0d4b/ghettoVCB.conf<br>lamw-ghettoVCB-19e0d4b/ghettoVCB-restore.sh<br>lamw-ghettoVCB-19e0d4b/ghettoVCB-restore_vm_restore_configuration_template<br>lamw-ghettoVCB-19e0d4b/ghettoVCB.sh<br>lamw-ghettoVCB-19e0d4b/ghettoVCB-vm_backup_configuration_template<br>lamw-ghettoVCB-19e0d4b/README</pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br><br>3) The script is now ready to be used and is located in a directory named&nbsp;<strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">ghettoVCB</strong><br><br></p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">[root@himalaya lamw-ghettoVCB-19e0d4b]# ls -l<br></code>-rw------- 1 root root&nbsp;&nbsp; 631 2011-11-24 16:59 ghettoVCB.conf<br>-rwx------ 1 root root 16024 2011-11-24 17:03 ghettoVCB-restore.sh<br>-rw------- 1 root root&nbsp;&nbsp; 309 2010-05-11 01:41 ghettoVCB-restore_vm_restore_configuration_template<br>-rwx------ 1 root root 49369 2011-11-24 17:03 ghettoVCB.sh<br>-rw------- 1 root root&nbsp;&nbsp; 356 2011-11-24 16:59 ghettoVCB-vm_backup_configuration_template<br>-rw------- 1 root root&nbsp;&nbsp; 281 2011-11-20 21:27 README<br></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br><br></p><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><hr style="width: 664px; height: 1px; background-color: rgb(220, 220, 220); border-style: solid none none; border-top-color: rgb(196, 206, 212); clear: both; margin: 6px 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><h1 style="margin-bottom: 18px; padding-top: 10px; padding-bottom: 4px; border: 0px; outline: 0px; font-size: 30px; background-color: rgb(248, 244, 230); font-weight: normal; color: rgb(77, 78, 83); font-family: Arial, Helvetica, sans-serif; ">Configurations:</h1><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br>The following variables need to be defined within the script or in VM backup policy prior to execution.&nbsp;<br><br><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Defining the backup datastore and folder in which the backups are stored (if folder does not exist, it will automatically be created):</strong></p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">VM_BACKUP_VOLUME=/vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS<br></code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br><br><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Defining the backup disk format (zeroedthick, eagerzeroedthick, thin, and 2gbsparse are available):</strong></p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">DISK_BACKUP_FORMAT=thin<br></code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br><br><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Defining the backup rotation per VM:</strong></p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">VM_BACKUP_ROTATION_COUNT=3<br></code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br><br><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Defining whether the VM is powered down or not prior to backup (1 = enable, 0 = disable):</strong><br><br><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; "><span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; color: rgb(0, 0, 255); ">Note:</span>&nbsp;VM(s) that are powered off will not require snapshoting</strong></p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">POWER_VM_DOWN_BEFORE_BACKUP=0<br></code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br><br><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Defining whether the VM can be hard powered off when&nbsp; "POWER_VM_DOWN_BEFORE_BACKUP" is enabled and VM does not have VMware&nbsp; Tools installed</strong></p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">ENABLE_HARD_POWER_OFF=0<br></code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br><br><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">If "ENABLE_HARD_POWER_OFF" is enabled, then this defines the number&nbsp; of (60sec) iterations the script will before executing a hard power off&nbsp; when:</strong></p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">ITER_TO_WAIT_SHUTDOWN=3<br></code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br><br><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">The number (60sec) iterations the script will wait when powering off&nbsp; the VM and will give up and ignore the particular VM for backup:</strong></p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">POWER_DOWN_TIMEOUT=5<br></code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br><br><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">The number (60sec) iterations the script will wait when taking a&nbsp; snapshot of a VM and will give up and ignore the particular VM for&nbsp; backup:</strong><br><br><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; "><span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; color: rgb(0, 0, 255); ">Note:</span>&nbsp;Default value should suffice</strong></p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">SNAPSHOT_TIMEOUT=15<br></code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br><br><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Defining whether or not to enable compression (1 = enable, 0 = disable):</strong></p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">ENABLE_COMPRESSION=0<br></code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br><br><span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; color: rgb(255, 0, 0); "><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">NOTE:</strong></span>&nbsp;With ESXi 3.x/4.x/5.x,&nbsp; there is a limitation of the maximum size of a VM for compression. This&nbsp; is a limitation within the unsupported Busybox Console and&nbsp;<span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; text-decoration: underline; ">should</span>&nbsp;not affect backups running classic ESX 3.x,4.x or 5.x, on ESXi 3.x the&nbsp; largest supported VM is 4GB for compression and on ESXi 4.x the largest&nbsp; supported VM is 8GB. If you try to compress a larger VM, you&nbsp;<span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; text-decoration: underline; ">may</span>&nbsp;run into issues when trying to extract upon a restore.&nbsp;<span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; color: rgb(255, 0, 0); "><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">PLEASE TEST THE RESTORE PROCESS BEFORE MOVING TO PRODUCTION SYSTEMS!</strong></span><br><br><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Defining the adapter type for backed up VMDK (<span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; color: rgb(255, 0, 0); ">DEPERCATED</span>&nbsp;-&nbsp;<span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; color: rgb(255, 0, 0); ">NO LONGER NEEDED</span>):</strong></p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">ADAPTER_FORMAT=buslogic<br></code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br><br><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Defining whether virtual machine memory is snapped and if quiescing is enabled (1 = enable, 0 = disable):</strong><br><br><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; "><span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; color: rgb(0, 0, 255); ">Note:</span>&nbsp;By default both are disabled</strong></p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">VM_SNAPSHOT_MEMORY=0<br>VM_SNAPSHOT_QUIESCE=0<br></code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br><br><span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; color: rgb(255, 0, 0); "><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">NOTE:</strong></span>&nbsp;<strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">VM_SNAPSHOT_MEMORY</strong>&nbsp;is only used to ensure when the snapshot is taken, it's memory contents&nbsp; are also captured. This is only relevant to the actual snapshot and it's&nbsp; not used in any shape/way/form in regards to the backup. All backups&nbsp; taken whether your VM is running or offline will result in an offline VM&nbsp; backup when you restore. This was originally added for debugging&nbsp; purposes and in generally should be left disabled<br><br><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Defining VMDK(s) to backup from a particular VM either a list of vmdks or "all"</strong></p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">VMDK_FILES_TO_BACKUP="myvmdk.vmdk"<br></code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Defining NON-PERSISTENT NFS Backup Volume (1 = yes, 0 = no):<br></strong></p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; ">ENABLE_NON_PERSISTENT_NFS=0</pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; color: rgb(255, 0, 0); "><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">NOTE:</strong></span>&nbsp;This is meant for environments that do not want a persisted connection to their NFS backup volume and allows the NFS volume to only be mounted during backups. The script expects the following 5 variables to be defined if this is to be used: UNMOUNT_NFS, NFS_SERVER, NFS_MOUNT, NFS_LOCAL_NAME and NFS_VM_BACKUP_DIR</p><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Defining whether or not to unmount the NFS backup volume (1 = yes, 0 = no):</strong></p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; ">UNMOUNT_NFS=0</pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Defining the NFS server address (IP/hostname):</strong></p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; ">NFS_SERVER=172.51.0.192</pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Defining the NFS export path:</strong></p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; ">NFS_MOUNT=/upload</pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Defining the NFS datastore name:</strong></p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; ">NFS_LOCAL_NAME=backup</pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Defining the NFS backup directory for VMs:</strong></p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; ">NFS_VM_BACKUP_DIR=mybackups</pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; color: rgb(255, 0, 0); "><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">NOTE:</strong></span>&nbsp;Only supported if you are running vSphere 4.1 and this feature is experimental. If you are having issues with sending mail, please take a look at&nbsp;<strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Email Backup Log</strong>&nbsp;section&nbsp;<br><br><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Defining whether or not to email backup logs (1 = yes, 0 = no):</strong></p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">EMAIL_LOG=1<br></code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br><br><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Defining whether or not to email message will be deleted off the host&nbsp; whether it is successful in sending, this is used for debugging&nbsp; purposes. (1 = yes, 0 = no):</strong></p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">EMAIL_DEBUG=1<br></code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br><br><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Defining email server:</strong></p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">EMAIL_SERVER=auroa.primp-industries.com<br></code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br><br><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Defining email server port:</strong></p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">EMAIL_SERVER_PORT=25<br></code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Defining email delay interval</strong>&nbsp;(useful if you have slow SMTP server and would like to include a delay in netcat using -i param, default is 1second):</p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; ">EMAIL_DELAY_INTERVAL=1</pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Defining recipient of the email:</strong></p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">EMAIL_TO=auroa@primp-industries.com<br></code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br><br><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Defining from user which may require specific domain entry depending on email server configurations:</strong></p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">EMAIL_FROM=root@ghettoVCB<br></code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; "><span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; color: rgb(255, 0, 0); ">Note:</span>&nbsp;</strong>This enables an automatic creation of a generic symbolic link (both a relative &amp; absolution path) in which users can refer to run replication backups using rsync from a remote host. This does not actually support rsync backups with ghettoVCB. Please take a look at the Rsync Section of the documentation for more details.</p><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Defining to support RSYNC symbolic link creation (1 = yes, 0 = no):</strong></p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">RSYNC_LINK=0<br></code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><ul style="padding-left: 2.25em; border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); list-style-position: initial; list-style-image: initial; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">A sample global ghettoVCB configuration file is included with the download called&nbsp;<strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">ghettoVCB.conf</strong>.&nbsp; It contains the same variables as defined from above and allows a user&nbsp; to customize and define multiple global configurations based on a user's&nbsp; environment.</li></ul><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">[root@himalaya ghettoVCB]# cat ghettoVCB.conf<br>VM_BACKUP_VOLUME=/vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS<br>DISK_BACKUP_FORMAT=thin<br>VM_BACKUP_ROTATION_COUNT=3<br>POWER_VM_DOWN_BEFORE_BACKUP=0<br>ENABLE_HARD_POWER_OFF=0<br>ITER_TO_WAIT_SHUTDOWN=3<br>POWER_DOWN_TIMEOUT=5<br>ENABLE_COMPRESSION=0<br>ADAPTER_FORMAT=buslogic<br>VM_SNAPSHOT_MEMORY=0<br>VM_SNAPSHOT_QUIESCE=0<br>ENABLE_NON_PERSISTENT_NFS=0<br>UNMOUNT_NFS=0<br>NFS_SERVER=172.30.0.195<br>NFS_MOUNT=/nfsshare<br>NFS_LOCAL_NAME=nfs_storage_backup<br>NFS_VM_BACKUP_DIR=mybackups<br>SNAPSHOT_TIMEOUT=15<br>EMAIL_LOG=0<br>EMAIL_DEBUG=0<br>EMAIL_SERVER=auroa.primp-industries.com<br>EMAIL_SERVER_PORT=25<br></code>EMAIL_DELAY_INTERVAL=1<br><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">EMAIL_TO=auroa@primp-industries.com<br>EMAIL_FROM=root@ghettoVCB<br></code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br><br>To override any existing configurations within the ghettoVCB.sh script&nbsp; and to use a global configuration file, user just needs to specify the&nbsp; new flag -g and path to global configuration file (For an example,&nbsp; please refer to the sample execution section of the documenation)<br><br><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Ensure that you do not edit past this section:</strong></p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">########################## DO NOT MODIFY PAST THIS LINE ##########################<br></code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br><br></p><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><hr style="width: 664px; height: 1px; background-color: rgb(220, 220, 220); border-style: solid none none; border-top-color: rgb(196, 206, 212); clear: both; margin: 6px 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><h1 style="margin-bottom: 18px; padding-top: 10px; padding-bottom: 4px; border: 0px; outline: 0px; font-size: 30px; background-color: rgb(248, 244, 230); font-weight: normal; color: rgb(77, 78, 83); font-family: Arial, Helvetica, sans-serif; ">Usage:</h1><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; ">[root@himalaya ghettoVCB]# ./ghettoVCB.sh<br>Logging output to "/tmp/ghettoVCB-2011-03-13_11-45-57.log" ...<br>###############################################################################<br>#<br># ghettoVCB for ESX/ESXi 3.5 &amp; 4.x+<br># Author: William Lam<br># http://www.virtuallyghetto.com/<br># Created: 11/17/2008<br># Last modified: 2011_11_19 Version 1<br>#<br>###############################################################################<br><br>Usage: ./ghettoVCB.sh -f [VM_BACKUP_UP_LIST] -c [VM_CONFIG_DIR] -l [LOG_FILE] -d [DEBUG_LEVEL] -g [GLOBAL_CONF] -e [VM_EXCLUSION_LIST]<br><br>OPTIONS:<br>&nbsp;&nbsp; -a&nbsp;&nbsp;&nbsp;&nbsp; Backup all VMs on host<br>&nbsp;&nbsp; -f&nbsp;&nbsp;&nbsp;&nbsp; List of VMs to backup<br>&nbsp;&nbsp; -c&nbsp;&nbsp;&nbsp;&nbsp; VM configuration directory for VM backups<br>&nbsp;&nbsp; -g&nbsp;&nbsp;&nbsp;&nbsp; Path to global ghettoVCB configuration file<br>&nbsp;&nbsp; -l&nbsp;&nbsp;&nbsp;&nbsp; File to output logging<br>&nbsp;&nbsp; -d&nbsp;&nbsp;&nbsp;&nbsp; Debug level [info|debug|dryrun] (default: info)<br><br>(e.g.)<br><br>Backup VMs stored in a list<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ./ghettoVCB.sh -f vms_to_backup<br><br>Backup all VMs residing on this host<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ./ghettoVCB.sh -a<br><br>Backup all VMs residing on this host except for the VMs in the exclusion list<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ./ghettoVCB.sh -a -e vm_exclusion_list<br><br>Backup VMs based on specific configuration located in directory<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ./ghettoVCB.sh -f vms_to_backup -c vm_backup_configs<br><br>Backup VMs using global ghettoVCB configuration file<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ./ghettoVCB.sh -f vms_to_backup -g /global/ghettoVCB.conf<br><br>Output will log to /tmp/ghettoVCB.log (consider logging to local or remote datastore to persist logs)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ./ghettoVCB.sh -f vms_to_backup -l /vmfs/volume/local-storage/ghettoVCB.log<br><br>Dry run (no backup will take place)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ./ghettoVCB.sh -f vms_to_backup -d dryrun<code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; "><br><br></code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br><br>The input to this script is a file that contains the display name of the&nbsp; virtual machine(s) separated by a newline. When creating this file on a&nbsp; non-Linux/UNIX system, you may introduce ^M character which can cause&nbsp; the script to miss-behave. To ensure this does not occur, plesae create&nbsp; the file on the ESX/ESXi host.<br><br>Here is a sample of what the file would look like:<br><br></p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">[root@himalaya ~]# cat vms_to_backup<br></code>vCOPS<br>vMA<br>vCloudConnector<code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; "><br></code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br><br></p><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><hr style="width: 664px; height: 1px; background-color: rgb(220, 220, 220); border-style: solid none none; border-top-color: rgb(196, 206, 212); clear: both; margin: 6px 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><h1 style="margin-bottom: 18px; padding-top: 10px; padding-bottom: 4px; border: 0px; outline: 0px; font-size: 30px; background-color: rgb(248, 244, 230); font-weight: normal; color: rgb(77, 78, 83); font-family: Arial, Helvetica, sans-serif; ">Sample Execution:</h1><ul style="padding-left: 2.25em; border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); list-style-position: initial; list-style-image: initial; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Dry run Mode</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; "><p style="border: 0px; outline: 0px; font-size: 1em; background-color: transparent; line-height: 18px; ">Debug Mode</p></li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Backup VMs stored in a list</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Backup All VMs residing on specific ESX(i) host</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Backup VMs based on individual VM backup policies</li></ul><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><h2 style="margin-bottom: 16px; padding-top: 10px; padding-bottom: 4px; border: 0px; outline: 0px; font-size: 22px; background-color: rgb(248, 244, 230); font-weight: normal; color: rgb(12, 141, 99); clear: none; font-family: Arial, Helvetica, sans-serif; ">Dry run Mode (no backup will take place)</h2><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; color: rgb(0, 0, 255); "><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Note:</strong></span>&nbsp;This execution mode provides a qucik summary of details on whether a given set of VM(s)/VMDK(s) will be backed up. It provides additional information such as VMs that may have snapshots, VMDK(s) that are configured as independent disks, or other issues that may cause a VM or VMDK to not backed up.</p><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><ul style="padding-left: 2.25em; border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); list-style-position: initial; list-style-image: initial; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Log verbosity: dryrun</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Log output: stdout &amp; /tmp (default)<ul style="padding-left: 2.25em; border: 0px; outline: 0px; background-color: transparent; list-style: disc; "><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Logs by default will be stored in /tmp, these log files may not persist through reboots, especially when dealing with ESXi. You should log to either a local or remote datastore to ensure that logs are kept upon a reboot.</li></ul></li></ul><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; ">[root@himalaya ghettoVCB]# ./ghettoVCB.sh -f vms_to_backup -d dryrun<br>Logging output to "/tmp/ghettoVCB-2011-03-13_15-19-57.log" ...<br>2011-03-13 15:19:57 -- info: ============================== ghettoVCB LOG START ==============================<br><br>2011-03-13 15:19:57 -- info: CONFIG - VERSION = 2011_03_13_1<br>2011-03-13 15:19:57 -- info: CONFIG - GHETTOVCB_PID = 30157<br>2011-03-13 15:19:57 -- info: CONFIG - VM_BACKUP_VOLUME = /vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS<br>2011-03-13 15:19:57 -- info: CONFIG - VM_BACKUP_ROTATION_COUNT = 3<br>2011-03-13 15:19:57 -- info: CONFIG - VM_BACKUP_DIR_NAMING_CONVENTION = 2011-03-13_15-19-57<br>2011-03-13 15:19:57 -- info: CONFIG - DISK_BACKUP_FORMAT = thin<br>2011-03-13 15:19:57 -- info: CONFIG - POWER_VM_DOWN_BEFORE_BACKUP = 0<br>2011-03-13 15:19:57 -- info: CONFIG - ENABLE_HARD_POWER_OFF = 0<br>2011-03-13 15:19:57 -- info: CONFIG - ITER_TO_WAIT_SHUTDOWN = 3<br>2011-03-13 15:19:57 -- info: CONFIG - POWER_DOWN_TIMEOUT = 5<br>2011-03-13 15:19:57 -- info: CONFIG - SNAPSHOT_TIMEOUT = 15<br>2011-03-13 15:19:57 -- info: CONFIG - LOG_LEVEL = dryrun<br>2011-03-13 15:19:57 -- info: CONFIG - BACKUP_LOG_OUTPUT = /tmp/ghettoVCB-2011-03-13_15-19-57.log<br>2011-03-13 15:19:57 -- info: CONFIG - VM_SNAPSHOT_MEMORY = 0<br>2011-03-13 15:19:57 -- info: CONFIG - VM_SNAPSHOT_QUIESCE = 0<br>2011-03-13 15:19:57 -- info: CONFIG - VMDK_FILES_TO_BACKUP = all<br>2011-03-13 15:19:57 -- info: CONFIG - EMAIL_LOG = 0<br>2011-03-13 15:19:57 -- info:<br>2011-03-13 15:19:57 -- dryrun: ###############################################<br>2011-03-13 15:19:57 -- dryrun: Virtual Machine: scofield<br>2011-03-13 15:19:57 -- dryrun: VM_ID: 704<br>2011-03-13 15:19:57 -- dryrun: VMX_PATH: /vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage/scofield/scofield.vmx<br>2011-03-13 15:19:57 -- dryrun: VMX_DIR: /vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage/scofield<br>2011-03-13 15:19:57 -- dryrun: VMX_CONF: scofield/scofield.vmx<br>2011-03-13 15:19:57 -- dryrun: VMFS_VOLUME: himalaya-local-SATA.RE4-GP:Storage<br>2011-03-13 15:19:57 -- dryrun: VMDK(s):<br>2011-03-13 15:19:58 -- dryrun:&nbsp; scofield_3.vmdk 3 GB<br>2011-03-13 15:19:58 -- dryrun:&nbsp; scofield_2.vmdk 2 GB<br>2011-03-13 15:19:58 -- dryrun:&nbsp; scofield_1.vmdk 1 GB<br>2011-03-13 15:19:58 -- dryrun:&nbsp; scofield.vmdk&nbsp;&nbsp; 5 GB<br>2011-03-13 15:19:58 -- dryrun: INDEPENDENT VMDK(s):<br>2011-03-13 15:19:58 -- dryrun: TOTAL_VM_SIZE_TO_BACKUP: 11 GB<br>2011-03-13 15:19:58 -- dryrun: ###############################################<br><br>2011-03-13 15:19:58 -- dryrun: ###############################################<br>2011-03-13 15:19:58 -- dryrun: Virtual Machine: vMA<br>2011-03-13 15:19:58 -- dryrun: VM_ID: 1440<br>2011-03-13 15:19:58 -- dryrun: VMX_PATH: /vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage/vMA/vMA.vmx<br>2011-03-13 15:19:58 -- dryrun: VMX_DIR: /vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage/vMA<br>2011-03-13 15:19:58 -- dryrun: VMX_CONF: vMA/vMA.vmx<br>2011-03-13 15:19:58 -- dryrun: VMFS_VOLUME: himalaya-local-SATA.RE4-GP:Storage<br>2011-03-13 15:19:58 -- dryrun: VMDK(s):<br>2011-03-13 15:19:58 -- dryrun:&nbsp; vMA-000002.vmdk 5 GB<br>2011-03-13 15:19:58 -- dryrun: INDEPENDENT VMDK(s):<br>2011-03-13 15:19:58 -- dryrun: TOTAL_VM_SIZE_TO_BACKUP: 5 GB<br>2011-03-13 15:19:58 -- dryrun: Snapshots found for this VM, please commit all snapshots before continuing!<br>2011-03-13 15:19:58 -- dryrun: THIS VIRTUAL MACHINE WILL NOT BE BACKED UP DUE TO EXISTING SNAPSHOTS!<br>2011-03-13 15:19:58 -- dryrun: ###############################################<br><br>2011-03-13 15:19:58 -- dryrun: ###############################################<br>2011-03-13 15:19:58 -- dryrun: Virtual Machine: vCloudConnector<br>2011-03-13 15:19:58 -- dryrun: VM_ID: 2064<br>2011-03-13 15:19:58 -- dryrun: VMX_PATH: /vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage/vCloudConnector/vCloudConnector.vmx<br>2011-03-13 15:19:58 -- dryrun: VMX_DIR: /vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage/vCloudConnector<br>2011-03-13 15:19:58 -- dryrun: VMX_CONF: vCloudConnector/vCloudConnector.vmx<br>2011-03-13 15:19:58 -- dryrun: VMFS_VOLUME: himalaya-local-SATA.RE4-GP:Storage<br>2011-03-13 15:19:58 -- dryrun: VMDK(s):<br>2011-03-13 15:19:59 -- dryrun:&nbsp; vCloudConnector.vmdk&nbsp;&nbsp;&nbsp; 3 GB<br>2011-03-13 15:19:59 -- dryrun: INDEPENDENT VMDK(s):<br>2011-03-13 15:19:59 -- dryrun:&nbsp; vCloudConnector_1.vmdk&nbsp; 40 GB<br>2011-03-13 15:19:59 -- dryrun: TOTAL_VM_SIZE_TO_BACKUP: 3 GB<br>2011-03-13 15:19:59 -- dryrun: Snapshots can not be taken for indepdenent disks!<br>2011-03-13 15:19:59 -- dryrun: THIS VIRTUAL MACHINE WILL NOT HAVE ALL ITS VMDKS BACKED UP!<br>2011-03-13 15:19:59 -- dryrun: ###############################################<br><br>2011-03-13 15:19:59 -- info: ###### Final status: OK, only a dryrun. ######<br><br>2011-03-13 15:19:59 -- info: ============================== ghettoVCB LOG END ================================</pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; ">In the example above, we have 3 VMs to be backed up:</p><ul style="padding-left: 2.25em; border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); list-style-position: initial; list-style-image: initial; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">scofield has 4 VMDK(s) that total up to 11GB and does not contain any snapshots/independent disks and this VM should backup without any issues</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">vMA has 1 VMDK but it also contains a snapshot and clearly this VM will not be backed up until the snapshot has been committed</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">vCloudConnector has 2 VMDK(s), one which is 3GB and another which is 40GB and configured as an independent disk. Since snapshots do not affect independent disk, only the 3GB VMDK will be backed up for this VM as denoted by the "<strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">TOTAL_VM_SIZE_TO_BACKUP</strong>"</li></ul><h2 style="margin-bottom: 16px; padding-top: 10px; padding-bottom: 4px; border: 0px; outline: 0px; font-size: 22px; background-color: rgb(248, 244, 230); font-weight: normal; color: rgb(12, 141, 99); clear: none; font-family: Arial, Helvetica, sans-serif; ">Debug backup mode</h2><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; color: rgb(0, 0, 255); "><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Note:</strong></span>&nbsp;This execution modes provides more in-depth information about environment/backup process including additional storage debugging information which provides information about both the source/destination datastore pre and post backups. This can be very useful in troubleshooting backups</p><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><ul style="padding-left: 2.25em; border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); list-style-position: initial; list-style-image: initial; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Log verbosity: debug</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Log output: stdout &amp; /tmp (default)<ul style="padding-left: 2.25em; border: 0px; outline: 0px; background-color: transparent; list-style: disc; "><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Logs by default will be stored in /tmp, these log files may not persist&nbsp; through reboots, especially when dealing with ESXi. You should log to&nbsp; either a local or remote datastore to ensure that logs are kept upon a&nbsp; reboot.</li></ul></li></ul><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; ">[root@himalaya ghettoVCB]# ./ghettoVCB.sh -f vms_to_backup -d debug<br>Logging output to "/tmp/ghettoVCB-2011-03-13_15-27-59.log" ...<br>2011-03-13 15:27:59 -- info: ============================== ghettoVCB LOG START ==============================<br><br>2011-03-13 15:27:59 -- debug: Succesfully acquired lock directory - /tmp/ghettoVCB.lock<br><br>2011-03-13 15:27:59 -- debug: HOST VERSION: VMware ESX 4.1.0 build-260247<br>2011-03-13 15:27:59 -- debug: HOST LEVEL: VMware ESX 4.1.0 GA<br>2011-03-13 15:27:59 -- debug: HOSTNAME: himalaya.primp-industries.com<br><br>2011-03-13 15:27:59 -- info: CONFIG - VERSION = 2011_03_13_1<br>2011-03-13 15:27:59 -- info: CONFIG - GHETTOVCB_PID = 31074<br>2011-03-13 15:27:59 -- info: CONFIG - VM_BACKUP_VOLUME = /vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS<br>2011-03-13 15:27:59 -- info: CONFIG - VM_BACKUP_ROTATION_COUNT = 3<br>2011-03-13 15:27:59 -- info: CONFIG - VM_BACKUP_DIR_NAMING_CONVENTION = 2011-03-13_15-27-59<br>2011-03-13 15:27:59 -- info: CONFIG - DISK_BACKUP_FORMAT = thin<br>2011-03-13 15:27:59 -- info: CONFIG - POWER_VM_DOWN_BEFORE_BACKUP = 0<br>2011-03-13 15:27:59 -- info: CONFIG - ENABLE_HARD_POWER_OFF = 0<br>2011-03-13 15:27:59 -- info: CONFIG - ITER_TO_WAIT_SHUTDOWN = 3<br>2011-03-13 15:27:59 -- info: CONFIG - POWER_DOWN_TIMEOUT = 5<br>2011-03-13 15:27:59 -- info: CONFIG - SNAPSHOT_TIMEOUT = 15<br>2011-03-13 15:27:59 -- info: CONFIG - LOG_LEVEL = debug<br>2011-03-13 15:27:59 -- info: CONFIG - BACKUP_LOG_OUTPUT = /tmp/ghettoVCB-2011-03-13_15-27-59.log<br>2011-03-13 15:27:59 -- info: CONFIG - VM_SNAPSHOT_MEMORY = 0<br>2011-03-13 15:27:59 -- info: CONFIG - VM_SNAPSHOT_QUIESCE = 0<br>2011-03-13 15:27:59 -- info: CONFIG - VMDK_FILES_TO_BACKUP = all<br>2011-03-13 15:27:59 -- info: CONFIG - EMAIL_LOG = 0<br>2011-03-13 15:27:59 -- info:<br>2011-03-13 15:28:01 -- debug: Storage Information before backup:<br>2011-03-13 15:28:01 -- debug: SRC_DATASTORE: himalaya-local-SATA.RE4-GP:Storage<br>2011-03-13 15:28:01 -- debug: SRC_DATASTORE_CAPACITY: 1830.5 GB<br>2011-03-13 15:28:01 -- debug: SRC_DATASTORE_FREE: 539.4 GB<br>2011-03-13 15:28:01 -- debug: SRC_DATASTORE_BLOCKSIZE: 4<br>2011-03-13 15:28:01 -- debug: SRC_DATASTORE_MAX_FILE_SIZE: 1024 GB<br>2011-03-13 15:28:01 -- debug:<br>2011-03-13 15:28:01 -- debug: DST_DATASTORE: dlgCore-NFS-bigboi.VM-Backups<br>2011-03-13 15:28:01 -- debug: DST_DATASTORE_CAPACITY: 1348.4 GB<br>2011-03-13 15:28:01 -- debug: DST_DATASTORE_FREE: 296.8 GB<br>2011-03-13 15:28:01 -- debug: DST_DATASTORE_BLOCKSIZE: NA<br>2011-03-13 15:28:01 -- debug: DST_DATASTORE_MAX_FILE_SIZE: NA<br>2011-03-13 15:28:01 -- debug:<br>2011-03-13 15:28:02 -- info: Initiate backup for scofield<br>2011-03-13 15:28:02 -- debug: /usr/sbin/vmkfstools -i "/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage/scofield/scofield_3.vmdk" -a "buslogic" -d "thin" "/vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS/scofield/scofield-2011-03-13_15-27-59/scofield_3.vmdk"<br>Destination disk format: VMFS thin-provisioned<br>Cloning disk '/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage/scofield/scofield_3.vmdk'...<br>Clone: 37% done.<br>2011-03-13 15:28:04 -- debug: /usr/sbin/vmkfstools -i "/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage/scofield/scofield_2.vmdk" -a "buslogic" -d "thin" "/vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS/scofield/scofield-2011-03-13_15-27-59/scofield_2.vmdk"<br>Destination disk format: VMFS thin-provisioned<br>Cloning disk '/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage/scofield/scofield_2.vmdk'...<br>Clone: 85% done.<br>2011-03-13 15:28:05 -- debug: /usr/sbin/vmkfstools -i "/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage/scofield/scofield_1.vmdk" -a "buslogic" -d "thin" "/vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS/scofield/scofield-2011-03-13_15-27-59/scofield_1.vmdk"<br><br>2011-03-13 15:28:06 -- debug: /usr/sbin/vmkfstools -i "/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage/scofield/scofield.vmdk" -a "buslogic" -d "thin" "/vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS/scofield/scofield-2011-03-13_15-27-59/scofield.vmdk"<br>Destination disk format: VMFS thin-provisioned<br>Cloning disk '/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage/scofield/scofield.vmdk'...<br>Clone: 78% done.<br>2011-03-13 15:29:52 -- info: Backup Duration: 1.83 Minutes<br>2011-03-13 15:29:52 -- info: Successfully completed backup for scofield!<br><br>2011-03-13 15:29:54 -- debug: Storage Information after backup:<br>2011-03-13 15:29:54 -- debug: SRC_DATASTORE: himalaya-local-SATA.RE4-GP:Storage<br>2011-03-13 15:29:54 -- debug: SRC_DATASTORE_CAPACITY: 1830.5 GB<br>2011-03-13 15:29:54 -- debug: SRC_DATASTORE_FREE: 539.4 GB<br>2011-03-13 15:29:54 -- debug: SRC_DATASTORE_BLOCKSIZE: 4<br>2011-03-13 15:29:54 -- debug: SRC_DATASTORE_MAX_FILE_SIZE: 1024 GB<br>2011-03-13 15:29:54 -- debug:<br>2011-03-13 15:29:54 -- debug: DST_DATASTORE: dlgCore-NFS-bigboi.VM-Backups<br>2011-03-13 15:29:54 -- debug: DST_DATASTORE_CAPACITY: 1348.4 GB<br>2011-03-13 15:29:54 -- debug: DST_DATASTORE_FREE: 296.8 GB<br>2011-03-13 15:29:54 -- debug: DST_DATASTORE_BLOCKSIZE: NA<br>2011-03-13 15:29:54 -- debug: DST_DATASTORE_MAX_FILE_SIZE: NA<br>2011-03-13 15:29:54 -- debug:<br>2011-03-13 15:29:55 -- debug: Storage Information before backup:<br>2011-03-13 15:29:55 -- debug: SRC_DATASTORE: himalaya-local-SATA.RE4-GP:Storage<br>2011-03-13 15:29:55 -- debug: SRC_DATASTORE_CAPACITY: 1830.5 GB<br>2011-03-13 15:29:55 -- debug: SRC_DATASTORE_FREE: 539.4 GB<br>2011-03-13 15:29:55 -- debug: SRC_DATASTORE_BLOCKSIZE: 4<br>2011-03-13 15:29:55 -- debug: SRC_DATASTORE_MAX_FILE_SIZE: 1024 GB<br>2011-03-13 15:29:55 -- debug:<br>2011-03-13 15:29:55 -- debug: DST_DATASTORE: dlgCore-NFS-bigboi.VM-Backups<br>2011-03-13 15:29:55 -- debug: DST_DATASTORE_CAPACITY: 1348.4 GB<br>2011-03-13 15:29:55 -- debug: DST_DATASTORE_FREE: 296.8 GB<br>2011-03-13 15:29:55 -- debug: DST_DATASTORE_BLOCKSIZE: NA<br>2011-03-13 15:29:55 -- debug: DST_DATASTORE_MAX_FILE_SIZE: NA<br>2011-03-13 15:29:55 -- debug:<br>2011-03-13 15:29:55 -- info: Snapshot found for vMA, backup will not take place<br><br>2011-03-13 15:29:57 -- debug: Storage Information before backup:<br>2011-03-13 15:29:57 -- debug: SRC_DATASTORE: himalaya-local-SATA.RE4-GP:Storage<br>2011-03-13 15:29:57 -- debug: SRC_DATASTORE_CAPACITY: 1830.5 GB<br>2011-03-13 15:29:57 -- debug: SRC_DATASTORE_FREE: 539.4 GB<br>2011-03-13 15:29:57 -- debug: SRC_DATASTORE_BLOCKSIZE: 4<br>2011-03-13 15:29:57 -- debug: SRC_DATASTORE_MAX_FILE_SIZE: 1024 GB<br>2011-03-13 15:29:57 -- debug:<br>2011-03-13 15:29:57 -- debug: DST_DATASTORE: dlgCore-NFS-bigboi.VM-Backups<br>2011-03-13 15:29:57 -- debug: DST_DATASTORE_CAPACITY: 1348.4 GB<br>2011-03-13 15:29:57 -- debug: DST_DATASTORE_FREE: 296.8 GB<br>2011-03-13 15:29:57 -- debug: DST_DATASTORE_BLOCKSIZE: NA<br>2011-03-13 15:29:57 -- debug: DST_DATASTORE_MAX_FILE_SIZE: NA<br>2011-03-13 15:29:57 -- debug:<br>2011-03-13 15:29:58 -- info: Initiate backup for vCloudConnector<br>2011-03-13 15:29:58 -- debug: /usr/sbin/vmkfstools -i "/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage/vCloudConnector/vCloudConnector.vmdk" -a "buslogic" -d "thin" "/vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS/vCloudConnector/vCloudConnector-2011-03-13_15-27-59/vCloudConnector.vmdk"<br>Destination disk format: VMFS thin-provisioned<br>Cloning disk '/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage/vCloudConnector/vCloudConnector.vmdk'...<br>Clone: 97% done.<br>2011-03-13 15:30:45 -- info: Backup Duration: 47 Seconds<br>2011-03-13 15:30:45 -- info: WARN: vCloudConnector has some Independent VMDKs that can not be backed up!<br><br>2011-03-13 15:30:45 -- info: ###### Final status: ERROR: Only some of the VMs backed up, and some disk(s) failed! ######<br><br>2011-03-13 15:30:45 -- debug: Succesfully removed lock directory - /tmp/ghettoVCB.lock<br><br>2011-03-13 15:30:45 -- info: ============================== ghettoVCB LOG END ================================</pre><h2 style="margin-bottom: 16px; padding-top: 10px; padding-bottom: 4px; border: 0px; outline: 0px; font-size: 22px; background-color: rgb(248, 244, 230); font-weight: normal; color: rgb(12, 141, 99); clear: none; font-family: Arial, Helvetica, sans-serif; ">Backup VMs stored in a list</h2><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">[root@himalaya ~]# ./ghettoVCB.sh -f vms_to_backup</code></pre><h2 style="margin-bottom: 16px; padding-top: 10px; padding-bottom: 4px; border: 0px; outline: 0px; font-size: 22px; background-color: rgb(248, 244, 230); font-weight: normal; color: rgb(12, 141, 99); clear: none; font-family: Arial, Helvetica, sans-serif; ">Backup All VMs residing on specific ESX(i) host</h2><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">/ghettoVCB # ./ghettoVCB.sh -a</code></pre><h2 style="margin-bottom: 16px; padding-top: 10px; padding-bottom: 4px; border: 0px; outline: 0px; font-size: 22px; background-color: rgb(248, 244, 230); font-weight: normal; color: rgb(12, 141, 99); clear: none; font-family: Arial, Helvetica, sans-serif; ">Backup All VMs residing on specific ESX(i) host and exclude the VMs in the exclusion list</h2><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">/ghettoVCB # ./ghettoVCB.sh -a -e vm_exclusion_list</code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><h2 style="margin-bottom: 16px; padding-top: 10px; padding-bottom: 4px; border: 0px; outline: 0px; font-size: 22px; background-color: rgb(248, 244, 230); font-weight: normal; color: rgb(12, 141, 99); clear: none; font-family: Arial, Helvetica, sans-serif; ">Backup VMs based on individual VM backup policies and log output to /tmp/ghettoVCB.log</h2><ul style="padding-left: 2.25em; border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); list-style-position: initial; list-style-image: initial; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Log verbosity: info (default)</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Log output: /tmp/ghettoVCB.log<ul style="padding-left: 2.25em; border: 0px; outline: 0px; background-color: transparent; list-style: disc; "><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Logs by default will be stored in /tmp, these log files may not persist&nbsp; through reboots, especially when dealing with ESXi. You should log to&nbsp; either a local or remote datastore to ensure that logs are kept upon a&nbsp; reboot.</li></ul></li></ul><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br>1. Create folder to hold individual VM backup policies (can be named anything):</p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">[root@himalaya ~]# mkdir backup_config<br></code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br><br>2. Create individual VM backup policies for each VM that ensure each&nbsp; file is named exactly as the display name of the VM being backed up (use&nbsp; provided template to create duplicates):</p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">[root@himalaya backup_config]# cp ghettoVCB-vm_backup_configuration_template scofield<br>[root@himalaya backup_config]# cp ghettoVCB-vm_backup_configuration_template vCloudConnector<br></code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br><br>Listing of VM backup policy within backup configuration directory</p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">[root@himalaya backup_config]# ls<br>ghettoVCB-vm_backup_configuration_template&nbsp; </code>scofield&nbsp; vCloudConnector<code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">&nbsp; </code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br><br>Backup policy for "scofield" (backup only 2 specific VMDKs)</p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">[root@himalaya backup_config]# cat scofield<br>VM_BACKUP_VOLUME=/vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS<br>DISK_BACKUP_FORMAT=thin<br>VM_BACKUP_ROTATION_COUNT=3<br>POWER_VM_DOWN_BEFORE_BACKUP=0<br>ENABLE_HARD_POWER_OFF=0<br>ITER_TO_WAIT_SHUTDOWN=4<br>POWER_DOWN_TIMEOUT=5<br>SNAPSHOT_TIMEOUT=15<br>ENABLE_COMPRESSION=0<br>VM_SNAPSHOT_MEMORY=0<br>VM_SNAPSHOT_QUIESCE=0<br>VMDK_FILES_TO_BACKUP="</code>scofield_2.vmdk,scofield_1.vmdk<code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">"<br></code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br><br>Backup policy for VM "vCloudConnector" (backup all VMDKs found)</p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">[root@himalaya backup_config]# cat </code>vCloudConnector<br><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">VM_BACKUP_VOLUME=/vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS<br>DISK_BACKUP_FORMAT=thin<br>VM_BACKUP_ROTATION_COUNT=3<br>POWER_VM_DOWN_BEFORE_BACKUP=0<br>ENABLE_HARD_POWER_OFF=0<br>ITER_TO_WAIT_SHUTDOWN=4<br>POWER_DOWN_TIMEOUT=5<br>SNAPSHOT_TIMEOUT=15<br>ENABLE_COMPRESSION=0<br>VM_SNAPSHOT_MEMORY=0<br>VM_SNAPSHOT_QUIESCE=0<br>VMDK_FILES_TO_BACKUP="</code>vCloudConnector.vmdk<code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">"<br><br></code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br><br><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Note:</strong>&nbsp;When specifying -c option (individual VM backup policy mode) if a VM is listed in the backup list but&nbsp;<strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">DOES NOT</strong>&nbsp;have a corresponding backup policy, the VM will be backed up using the&nbsp; default configuration found within the ghettoVCB.sh script.<br><br>Execution of backup</p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">[root@himalaya ~]# ./ghettoVCB.sh -f vms_to_backup -c backup_config -l /tmp/ghettoVCB.log<br><br></code>2011-03-13 15:40:50 -- info: ============================== ghettoVCB LOG START ==============================<br><br>2011-03-13 15:40:51 -- info: CONFIG - USING CONFIGURATION FILE = backup_config//scofield<br>2011-03-13 15:40:51 -- info: CONFIG - VERSION = 2011_03_13_1<br>2011-03-13 15:40:51 -- info: CONFIG - GHETTOVCB_PID = 2967<br>2011-03-13 15:40:51 -- info: CONFIG - VM_BACKUP_VOLUME = /vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS<br>2011-03-13 15:40:51 -- info: CONFIG - VM_BACKUP_ROTATION_COUNT = 3<br>2011-03-13 15:40:51 -- info: CONFIG - VM_BACKUP_DIR_NAMING_CONVENTION = 2011-03-13_15-40-50<br>2011-03-13 15:40:51 -- info: CONFIG - DISK_BACKUP_FORMAT = thin<br>2011-03-13 15:40:51 -- info: CONFIG - POWER_VM_DOWN_BEFORE_BACKUP = 0<br>2011-03-13 15:40:51 -- info: CONFIG - ENABLE_HARD_POWER_OFF = 0<br>2011-03-13 15:40:51 -- info: CONFIG - ITER_TO_WAIT_SHUTDOWN = 4<br>2011-03-13 15:40:51 -- info: CONFIG - POWER_DOWN_TIMEOUT = 5<br>2011-03-13 15:40:51 -- info: CONFIG - SNAPSHOT_TIMEOUT = 15<br>2011-03-13 15:40:51 -- info: CONFIG - LOG_LEVEL = info<br>2011-03-13 15:40:51 -- info: CONFIG - BACKUP_LOG_OUTPUT = /tmp/ghettoVCB.log<br>2011-03-13 15:40:51 -- info: CONFIG - VM_SNAPSHOT_MEMORY = 0<br>2011-03-13 15:40:51 -- info: CONFIG - VM_SNAPSHOT_QUIESCE = 0<br>2011-03-13 15:40:51 -- info: CONFIG - VMDK_FILES_TO_BACKUP = scofield_2.vmdk,scofield_1.vmdk<br>2011-03-13 15:40:51 -- info: CONFIG - EMAIL_LOG = 0<br>2011-03-13 15:40:51 -- info:<br>2011-03-13 15:40:53 -- info: Initiate backup for scofield<br>Destination disk format: VMFS thin-provisioned<br>Cloning disk '/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage/scofield/scofield_2.vmdk'...<br>Clone: 100% done.<br><br>Destination disk format: VMFS thin-provisioned<br>Cloning disk '/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage/scofield/scofield_1.vmdk'...<br>Clone: 100% done.<br><br>2011-03-13 15:40:55 -- info: Backup Duration: 2 Seconds<br>2011-03-13 15:40:55 -- info: Successfully completed backup for scofield!<br><br>2011-03-13 15:40:57 -- info: CONFIG - VERSION = 2011_03_13_1<br>2011-03-13 15:40:57 -- info: CONFIG - GHETTOVCB_PID = 2967<br>2011-03-13 15:40:57 -- info: CONFIG - VM_BACKUP_VOLUME = /vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS<br>2011-03-13 15:40:57 -- info: CONFIG - VM_BACKUP_ROTATION_COUNT = 3<br>2011-03-13 15:40:57 -- info: CONFIG - VM_BACKUP_DIR_NAMING_CONVENTION = 2011-03-13_15-40-50<br>2011-03-13 15:40:57 -- info: CONFIG - DISK_BACKUP_FORMAT = thin<br>2011-03-13 15:40:57 -- info: CONFIG - POWER_VM_DOWN_BEFORE_BACKUP = 0<br>2011-03-13 15:40:57 -- info: CONFIG - ENABLE_HARD_POWER_OFF = 0<br>2011-03-13 15:40:57 -- info: CONFIG - ITER_TO_WAIT_SHUTDOWN = 3<br>2011-03-13 15:40:57 -- info: CONFIG - POWER_DOWN_TIMEOUT = 5<br>2011-03-13 15:40:57 -- info: CONFIG - SNAPSHOT_TIMEOUT = 15<br>2011-03-13 15:40:57 -- info: CONFIG - LOG_LEVEL = info<br>2011-03-13 15:40:57 -- info: CONFIG - BACKUP_LOG_OUTPUT = /tmp/ghettoVCB.log<br>2011-03-13 15:40:57 -- info: CONFIG - VM_SNAPSHOT_MEMORY = 0<br>2011-03-13 15:40:57 -- info: CONFIG - VM_SNAPSHOT_QUIESCE = 0<br>2011-03-13 15:40:57 -- info: CONFIG - VMDK_FILES_TO_BACKUP = all<br>2011-03-13 15:40:57 -- info: CONFIG - EMAIL_LOG = 0<br>2011-03-13 15:40:57 -- info:<br>2011-03-13 15:40:59 -- info: Snapshot found for vMA, backup will not take place<br><br>2011-03-13 15:40:59 -- info: CONFIG - USING CONFIGURATION FILE = backup_config//vCloudConnector<br>2011-03-13 15:40:59 -- info: CONFIG - VERSION = 2011_03_13_1<br>2011-03-13 15:40:59 -- info: CONFIG - GHETTOVCB_PID = 2967<br>2011-03-13 15:40:59 -- info: CONFIG - VM_BACKUP_VOLUME = /vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS<br>2011-03-13 15:40:59 -- info: CONFIG - VM_BACKUP_ROTATION_COUNT = 3<br>2011-03-13 15:40:59 -- info: CONFIG - VM_BACKUP_DIR_NAMING_CONVENTION = 2011-03-13_15-40-50<br>2011-03-13 15:40:59 -- info: CONFIG - DISK_BACKUP_FORMAT = thin<br>2011-03-13 15:40:59 -- info: CONFIG - POWER_VM_DOWN_BEFORE_BACKUP = 0<br>2011-03-13 15:40:59 -- info: CONFIG - ENABLE_HARD_POWER_OFF = 0<br>2011-03-13 15:40:59 -- info: CONFIG - ITER_TO_WAIT_SHUTDOWN = 4<br>2011-03-13 15:40:59 -- info: CONFIG - POWER_DOWN_TIMEOUT = 5<br>2011-03-13 15:40:59 -- info: CONFIG - SNAPSHOT_TIMEOUT = 15<br>2011-03-13 15:40:59 -- info: CONFIG - LOG_LEVEL = info<br>2011-03-13 15:40:59 -- info: CONFIG - BACKUP_LOG_OUTPUT = /tmp/ghettoVCB.log<br>2011-03-13 15:40:59 -- info: CONFIG - VM_SNAPSHOT_MEMORY = 0<br>2011-03-13 15:40:59 -- info: CONFIG - VM_SNAPSHOT_QUIESCE = 0<br>2011-03-13 15:40:59 -- info: CONFIG - VMDK_FILES_TO_BACKUP = vCloudConnector.vmdk<br>2011-03-13 15:40:59 -- info: CONFIG - EMAIL_LOG = 0<br>2011-03-13 15:40:59 -- info:<br>2011-03-13 15:41:01 -- info: Initiate backup for vCloudConnector<br>Destination disk format: VMFS thin-provisioned<br>Cloning disk '/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage/vCloudConnector/vCloudConnector.vmdk'...<br>Clone: 100% done.<br><br>2011-03-13 15:41:51 -- info: Backup Duration: 50 Seconds<br>2011-03-13 15:41:51 -- info: WARN: vCloudConnector has some Independent VMDKs that can not be backed up!<br><br>2011-03-13 15:41:51 -- info: ###### Final status: ERROR: Only some of the VMs backed up, and some disk(s) failed! ######<br><br>2011-03-13 15:41:51 -- info: ============================== ghettoVCB LOG END ================================<code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; "><br><br></code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><hr style="width: 664px; height: 1px; background-color: rgb(220, 220, 220); border-style: solid none none; border-top-color: rgb(196, 206, 212); clear: both; margin: 6px 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><h1 style="margin-bottom: 18px; padding-top: 10px; padding-bottom: 4px; border: 0px; outline: 0px; font-size: 30px; background-color: rgb(248, 244, 230); font-weight: normal; color: rgb(77, 78, 83); font-family: Arial, Helvetica, sans-serif; ">Enable compression for backups (EXPERIMENTAL SUPPORT)</h1><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br>Please take a look at&nbsp;<strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">FAQ #25</strong>&nbsp;for more details before continuing<br><br>To make use of this feature, modify the variable&nbsp;<strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">ENABLE_COMPRESSION</strong>&nbsp;from 0 to 1. Please note, do not mix uncompressed backups with&nbsp; compressed backups. Ensure that directories selected for backups do not contain any backups with previous versions of ghettoVCB before enabling&nbsp; and implementing the compressed backups feature.</p><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><hr style="width: 664px; height: 1px; background-color: rgb(220, 220, 220); border-style: solid none none; border-top-color: rgb(196, 206, 212); clear: both; margin: 6px 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><h1 style="margin-bottom: 18px; padding-top: 10px; padding-bottom: 4px; border: 0px; outline: 0px; font-size: 30px; background-color: rgb(248, 244, 230); font-weight: normal; color: rgb(77, 78, 83); font-family: Arial, Helvetica, sans-serif; ">Email Backup Logs (EXPERIMENTAL SUPPORT)</h1><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; ">nc (netcat) utility must be present for email support to function, this utility is a now a default with the release of vSphere 4.1 or greater, previous releases of VI 3.5 and/or vSphere 4.0 does not contain this utility. The reason this is listed as experimental is it may not be compatible with all email servers as the script utlizes&nbsp;<strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">nc</strong>&nbsp;(netcat) utility to communicate to an email server. This feature is&nbsp; provided as-is with no guarantees. If you enable this feature, a&nbsp; separate log will be generated along side&nbsp; any normal logging which will&nbsp; be used to email recipient. If for whatever reason, the email fails to&nbsp; send, an entry will appear per the normal logging mechanism.</p><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; ">Users should also make note due to limited functionality of netcat, it uses SMTP pipelining which is not the most ideal method of communicating with an SMTP server. Email from ghettoVCB may not work if your email server does not support this feature.</p><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; ">You can define an email recipient in the following two ways:</p><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">EMAIL_TO=william@virtuallyghetto.com<br></code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; ">OR</p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">EMAIL_TO=william@virtuallyghetto.com,tuan@virtuallyghetto.com</code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><hr style="width: 664px; height: 1px; background-color: rgb(220, 220, 220); border-style: solid none none; border-top-color: rgb(196, 206, 212); clear: both; margin: 6px 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><h1 style="margin-bottom: 18px; padding-top: 10px; padding-bottom: 4px; border: 0px; outline: 0px; font-size: 30px; background-color: rgb(248, 244, 230); font-weight: normal; color: rgb(77, 78, 83); font-family: Arial, Helvetica, sans-serif; ">Rsync Support&nbsp; (EXPERIMENTAL SUPPORT)</h1><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br>To make use of this feature, modify the variable&nbsp;<strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">RSYNC_LINK</strong>&nbsp;from 0&nbsp; to 1. Please note, this is an experimental feature request from users that rely on rsync to replicate changes from one datastore volume to&nbsp; another datastore volume. The premise of this feature is to have a standardized folder that rsync can monitor for changes to replicate to&nbsp; another backup datastore. When this feature is enabled, a symbolic link&nbsp; will be generated with the format of "&lt;VMNAME&gt;-symlink" and will&nbsp; reference the latest successful VM backup. You can then rely on this&nbsp; symbolic link to watch for changes and replicate to your backup&nbsp; datastore.&nbsp;<br><br>Here is an example of what this would look like:</p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">[root@himalaya ghettoVCB]# ls -la /vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS/vcma/<br>total 0<br>drwxr-xr-x 1 nobody nobody 110 Sep 27 08:08 .<br>drwxr-xr-x 1 nobody nobody&nbsp; 17 Sep 16 14:01 ..<br>lrwxrwxrwx 1 nobody nobody&nbsp; 89 Sep 27 08:08 vcma-symlink -&gt; /vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS/vcma/vcma-2010-09-27_08-07-37<br>drwxr-xr-x 1 nobody nobody&nbsp; 58 Sep 27 08:04 vcma-2010-09-27_08-04-26<br>drwxr-xr-x 1 nobody nobody&nbsp; 58 Sep 27 08:06 vcma-2010-09-27_08-05-55<br>drwxr-xr-x 1 nobody nobody&nbsp; 58 Sep 27 08:08 vcma-2010-09-27_08-07-37<br></code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br><br><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">FYI -&nbsp;</strong>This feature has not been tested, please provide feedback if this does not work as expected.</p><hr style="width: 664px; height: 1px; background-color: rgb(220, 220, 220); border-style: solid none none; border-top-color: rgb(196, 206, 212); clear: both; margin: 6px 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><h1 style="margin-bottom: 18px; padding-top: 10px; padding-bottom: 4px; border: 0px; outline: 0px; font-size: 30px; background-color: rgb(248, 244, 230); font-weight: normal; color: rgb(77, 78, 83); font-family: Arial, Helvetica, sans-serif; ">Restore backups (ghettoVCB-restore.sh):</h1><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br>To recover a VM that has been processed by ghettoVCB, please take a look at this document:&nbsp;<a class="jive-link-wiki-small" href="http://communities.vmware.com/docs/DOC-10595" style="margin: 0px; padding: 1px 0px 1px 17px; border: 0px; outline: 0px; background-image: url(http://communities.vmware.com/4.0.13/images/jive-icon-wiki-12x12.gif); background-color: transparent; color: rgb(51, 153, 204); text-decoration: none; zoom: 1; background-position: 0% 50%; background-repeat: no-repeat no-repeat; ">Ghetto Tech Preview - ghettoVCB-restore.sh - Restoring VM's backed up from ghettoVCB to ESX(i) 3.5 and 4.x+</a><br><br></p><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><hr style="width: 664px; height: 1px; background-color: rgb(220, 220, 220); border-style: solid none none; border-top-color: rgb(196, 206, 212); clear: both; margin: 6px 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><h1 style="margin-bottom: 18px; padding-top: 10px; padding-bottom: 4px; border: 0px; outline: 0px; font-size: 30px; background-color: rgb(248, 244, 230); font-weight: normal; color: rgb(77, 78, 83); font-family: Arial, Helvetica, sans-serif; ">Cronjob FAQ:</h1><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br><a class="jive-link-external" href="http://www.cyberciti.biz/faq/how-do-i-add-jobs-to-cron-under-linux-or-unix-oses/" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; color: rgb(51, 153, 204); text-decoration: none; ">Please take a moment to read over what is a cronjob and how to set one up, before continuing</a><br><br>The task of configuring cronjobs on classic ESX servers (with Service&nbsp; Console) is no different than traditional cronjobs on *nix operating&nbsp; systems (this procedure is outlined in the link above). With ESXi on the&nbsp; other hand, additional factors need to be taken into account when&nbsp; setting up cronjobs in the limited shell console called Busybox because changes made do not persist through a system reboot. The following&nbsp; document will outline steps to ensure that cronjob configurations are&nbsp; saved and present upon a reboot.</p><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; color: rgb(255, 0, 0); "><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Important Note:</strong></span>&nbsp;Always redirect the ghettoVCB output to /dev/null and/or to a log when automating via cron, this becomes very important as one user has identified a limited amount of buffer capacity in which once filled, may cause ghettoVCB to stop in the middle of a backup. This primarily only affects users on ESXi, but it is good practice to always redirect the output.</p><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; ">e.g.</p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">0 0 * * 1-5 /vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/ghettoVCB.sh -f /vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/backuplist &gt; /dev/null</code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; ">or</p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">0 0 * * 1-5 /vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/ghettoVCB.sh -f /vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/backuplist &gt; /tmp/ghettoVCB.log</code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Task</strong>: Configure ghettoVCB.sh to execute a backup five days a week (M-F) at 12AM (midnight) everyday and send output to a unique log file<br><br><span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; text-decoration: underline; "><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Configure on ESX:</strong></span><br><br>1. As root, you'll install your cronjob by issuing:</p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">[root@himalaya ~]# crontab -e<br></code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br><br>2. Append the following entry:</p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">0 0 * * 1-5 /vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/ghettoVCB.sh -f /vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/backuplist &gt; /vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/ghettoVCB-backup-$(date +\%s).log<br></code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br><br>3. Save and exit</p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">[root@himalaya dlgCore-NFS-bigboi.VM-Backups]# crontab -e<br>no crontab for root - using an empty one<br>crontab: installing new crontab<br></code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br><br>4. List out and verify the cronjob that was just created:</p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">[root@himalaya dlgCore-NFS-bigboi.VM-Backups]# crontab -l<br>0 0 * * 1-5 /vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/ghettoVCB.sh -f /vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/backuplist &gt; /vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/ghettoVCB-backup-$(date +\%s).log<br></code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br><br>You're ready to go!<br><br><span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; text-decoration: underline; "><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Configure on ESXi:</strong></span><br><br>1. Setup the cronjob by appending the following line to&nbsp;<span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; text-decoration: underline; ">/var/spool/cron/crontabs/root</span>:<br><br></p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">0 0 * * 1-5 /vmfs/volumes/simplejack-local-storage/ghettoVCB.sh -f /vmfs/volumes/simplejack-local-storage/backuplist &gt; /vmfs/volumes/simplejack-local-storage/ghettoVCB-backup-$(date +\%s).log<br></code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; ">If you are unable to edit/modify /var/spool/cron/crontabs/root, please make a copy and then edit the copy with the changes</p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">cp /var/spool/cron/crontabs/root /var/spool/cron/crontabs/root.backup</code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; ">Once your changes have been made, then "mv" the backup to the original file. This may occur on ESXi 4.x or 5.x hosts</p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">mv /var/spool/cron/crontabs/root.backup /var/spool/cron/crontabs/root</code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; ">You can now verify the crontab entry has been updated by using "cat" utility.</p><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br>2. Kill the current crond (cron daemon) and then restart the crond for the changes to take affect:<br><br>On ESXi &lt; 3.5u3</p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">kill $(ps | grep crond | cut -f 1 -d ' ')<br></code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br><br>On ESXi 3.5u3+</p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">~ # kill $(pidof crond)<br>~ # crond<br></code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br><br>On ESXi 4.x/5.x</p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">~ # kill $(cat /var/run/crond.pid)<br>~ # busybox crond<br></code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br><br>3. Now that the cronjob is ready to go, you need to ensure that this&nbsp; cronjob will persist through a reboot. You'll need to add the following&nbsp; two lines to&nbsp;<strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">/etc/rc.local</strong>&nbsp;(ensure that the cron entry matches what was defined above)<br><br>On ESXi 3.5</p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">/bin/kill $(pidof crond)<br>/bin/echo "0 0 * * 1-5 /vmfs/volumes/simplejack-local-storage/ghettoVCB.sh -f /vmfs/volumes/simplejack-local-storage/backuplist &gt; /vmfs/volumes/simplejack-local-storage/ghettoVCB-backup-\$(date +\\%s).log" &gt;&gt; /var/spool/cron/crontabs/root<br>crond<br></code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br><br>On ESXi 4.0</p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">/bin/kill $(cat /var/run/crond.pid)<br>/bin/echo "0 0 * * 1-5 /vmfs/volumes/simplejack-local-storage/ghettoVCB.sh -f /vmfs/volumes/simplejack-local-storage/backuplist &gt; /vmfs/volumes/simplejack-local-storage/ghettoVCB-backup-\$(date +\\%s).log" &gt;&gt; /var/spool/cron/crontabs/root<br>/bin/busybox crond<br></code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br><br>Afterwards the file should look like the following:&nbsp;<br><br></p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">~ # cat /etc/rc.local<br>#! /bin/ash<br>export PATH=/sbin:/bin<br><br>log() {<br>&nbsp;&nbsp; echo "$1"<br>&nbsp;&nbsp; logger init "$1"<br>}<br><br>#execute all service retgistered in /etc/rc.local.d<br>if [http:// -d /etc/rc.local.d |http:// -d /etc/rc.local.d ]; then<br>&nbsp;&nbsp; for filename in `find /etc/rc.local.d/ | sort`<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; do<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if [ -f $filename ] &amp;&amp; [ -x $filename ]; then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; log "running $filename"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $filename<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fi<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; done<br>fi<br><br>/bin/kill $(cat /var/run/crond.pid)<br>/bin/echo "0 0 * * 1-5 /vmfs/volumes/simplejack-local-storage/ghettoVCB.sh -f /vmfs/volumes/simplejack-local-storage/backuplist &gt; /vmfs/volumes/simplejack-local-storage/ghettoVCB-backup-\$(date +\\%s).log" &gt;&gt; /var/spool/cron/crontabs/root<br>/bin/busybox crond<br><br></code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br><br>This will ensure that the cronjob is re-created upon a reboot of the system through a startup script<br><br>2. To ensure that this is saved in the ESXi configuration, we need to manually initiate an ESXi backup by running:</p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">~ # /sbin/auto-backup.sh<br>config implicitly loaded<br>local.tgz<br>etc/vmware/vmkiscsid/vmkiscsid.db<br>etc/dropbear/dropbear_dss_host_key<br>etc/dropbear/dropbear_rsa_host_key<br>etc/opt/vmware/vpxa/vpxa.cfg<br>etc/opt/vmware/vpxa/dasConfig.xml<br>etc/sysconfig/network<br>etc/vmware/hostd/authorization.xml<br>etc/vmware/hostd/hostsvc.xml<br>etc/vmware/hostd/pools.xml<br>etc/vmware/hostd/vmAutoStart.xml<br>etc/vmware/hostd/vmInventory.xml<br>etc/vmware/hostd/proxy.xml<br>etc/vmware/ssl/rui.crt<br>etc/vmware/ssl/rui.key<br>etc/vmware/vmkiscsid/initiatorname.iscsi<br>etc/vmware/vmkiscsid/iscsid.conf<br>etc/vmware/vmware.lic<br>etc/vmware/config<br>etc/vmware/dvsdata.db<br>etc/vmware/esx.conf<br>etc/vmware/license.cfg<br>etc/vmware/locker.conf<br>etc/vmware/snmp.xml<br>etc/group<br>etc/hosts<br>etc/inetd.conf<br>etc/rc.local<br>etc/chkconfig.db<br>etc/ntp.conf<br>etc/passwd<br>etc/random-seed<br>etc/resolv.conf<br>etc/shadow<br>etc/sfcb/repository/root/interop/cim_indicationfilter.idx<br>etc/sfcb/repository/root/interop/cim_indicationhandlercimxml.idx<br>etc/sfcb/repository/root/interop/cim_listenerdestinationcimxml.idx<br>etc/sfcb/repository/root/interop/cim_indicationsubscription.idx<br>Binary files /etc/vmware/dvsdata.db and /tmp/auto-backup.31345.dir/etc/vmware/dvsdata.db differ<br>config implicitly loaded<br>Saving current state in /bootbank<br>Clock updated.<br>Time: 20:40:36&nbsp;&nbsp; Date: 08/14/2009&nbsp;&nbsp; UTC<br><br></code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br><br>Now you're really done!</p><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; ">If you're still having trouble getting the cronjob to work, ensure that&nbsp; you've specified the correct parameters and there aren’t any typos in&nbsp; any part of the syntax.&nbsp;<br><br>Ensure crond (cron daemon) is running:<br><br><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">ESX 3.x/4.0:</strong></p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">[root@himalaya dlgCore-NFS-bigboi.VM-Backups]# ps -ef | grep crond | grep -v grep<br>root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2625&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp; 0 Aug13 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00:00:00 crond<br></code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><br><br><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">ESXi 3.x/4.0:</strong></p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">~ # ps | grep crond | grep -v grep<br>5196 5196 busybox&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; crond<br></code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">ESXi 4.1/5.0:</strong></p><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; ">It looks like VMware has changed the process name when crond is restarted, you will actually not find "crond" but it'll show up as "busybox busybox". This is a little harder to verify, but assuming you followed the steps, you should have crond running<br><br>Ensure that the date/time on your ESX(i) host is setup correctly:<br><br><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">ESX(i):</strong></p><pre class="jive-pre" style="margin: 10px 20px; padding: 10px; border-width: 1px 1px 1px 2px; border-style: solid; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); outline: 0px; font-size: 1.2em; background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); overflow: auto; width: auto; color: rgb(51, 51, 51); background-repeat: repeat repeat; "><code class="jive-code jive-plain" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">[root@himalaya dlgCore-NFS-bigboi.VM-Backups]# date<br>Fri Aug 14 23:44:47 PDT 2009<br></code></pre><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; min-height: 8pt; height: 8pt; ">&nbsp;</p><p style="border: 0px; outline: 0px; font-size: 12px; background-color: rgb(248, 244, 230); line-height: 18px; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; "><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; ">Note:</strong>&nbsp;Careful attention must be noted if more than one backup is performed per day. Backup windows&nbsp; should be staggered to avoid contention or saturation of resources&nbsp; during these periods.</p></div>
頁: [1]
查看完整版本: [轉貼]ghettoVCB.sh