diff --git a/ghettoVCB-restore.sh b/ghettoVCB-restore.sh index 0af286e..9ebc518 100755 --- a/ghettoVCB-restore.sh +++ b/ghettoVCB-restore.sh @@ -5,7 +5,7 @@ ###### DO NOT EDIT PASS THIS LINE ###### -LAST_MODIFIED_DATE=2020_10_10 +LAST_MODIFIED_DATE=2021_03_18 VERSION=1 VERSION_STRING=${LAST_MODIFIED_DATE}_${VERSION} @@ -93,7 +93,7 @@ sanityCheck() { ESX_VERSION=$(vmware -v | awk '{print $3}') case "${ESX_VERSION}" in - 7.0.0|7.0.1) VER=7; break;; + 7.0.0|7.0.1|7.0.2) VER=7; break;; 6.0.0|6.5.0|6.7.0) VER=6; break;; 5.0.0|5.1.0|5.5.0) VER=5; break;; 4.0.0|4.1.0) VER=4; break;; diff --git a/ghettoVCB.sh b/ghettoVCB.sh index c33c336..81a96e3 100755 --- a/ghettoVCB.sh +++ b/ghettoVCB.sh @@ -8,7 +8,7 @@ # User Definable Parameters ################################################################## -LAST_MODIFIED_DATE=2020_12_28 +LAST_MODIFIED_DATE=2021_03_18 VERSION=1 # directory that all VM backups should go (e.g. /vmfs/volumes/SAN_LUN1/mybackupdir) @@ -308,7 +308,7 @@ sanityCheck() { ESX_RELEASE=$(uname -r) case "${ESX_VERSION}" in - 7.0.0|7.0.1) VER=7; break;; + 7.0.0|7.0.1|7.0.2) VER=7; break;; 6.0.0|6.5.0|6.7.0) VER=6; break;; 5.0.0|5.1.0|5.5.0) VER=5; break;; 4.0.0|4.1.0) VER=4; break;; @@ -903,7 +903,7 @@ ghettoVCB() { #1 = readonly #0 = readwrite logger "debug" "Mounting NFS: ${NFS_SERVER}:${NFS_MOUNT} to /vmfs/volume/${NFS_LOCAL_NAME}" - if [[ ${ESX_RELEASE} == "5.5.0" ]] || [[ ${ESX_RELEASE} == "6.0.0" || ${ESX_RELEASE} == "6.5.0" || ${ESX_RELEASE} == "6.7.0" || ${ESX_RELEASE} == "7.0.0" || ${ESX_RELEASE} == "7.0.1" ]] ; then + if [[ ${ESX_RELEASE} == "5.5.0" ]] || [[ ${ESX_RELEASE} == "6.0.0" || ${ESX_RELEASE} == "6.5.0" || ${ESX_RELEASE} == "6.7.0" || ${ESX_RELEASE} == "7.0.0" || ${ESX_RELEASE} == "7.0.1" || ${ESX_RELEASE} == "7.0.2" ]] ; then ${VMWARE_CMD} hostsvc/datastore/nas_create "${NFS_LOCAL_NAME}" "${NFS_VERSION}" "${NFS_MOUNT}" 0 "${NFS_SERVER}" else ${VMWARE_CMD} hostsvc/datastore/nas_create "${NFS_LOCAL_NAME}" "${NFS_SERVER}" "${NFS_MOUNT}" 0