Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 251495

ghettoVCB-restore on ESXI 5.01

$
0
0

Dear the  genius William Lam,

 

Happy christmas.

 

I had tried to restore a  a backup of virual machine    with "ghettoVCB-restore"

 

the back was created by using the script "ghettoVCB.sh".

 

i had updated line line 87 of the  script :

"if [ "${ESX_VERSION}" == "5.0.0" ]; then"

to

"if [[ "${ESX_VERSION}" == "5.0.0" ]] || [[ "${ESX_VERSION}" == "5.1.0" ]]; then"

 

 

after that the script "ghettoVCB-restore" show the following error :

"ERROR: This script needs to be executed by \"root\"!"

 

So i had removed the followinf portion of the script :

[

if [ ! "`whoami`" == "root" ]; then
  logger "ERROR: This script needs to be executed by \"root\"!"
  echo "ERROR: This script needs to be executed by \"root\"!"
                exit 1
        fi

]

 

the operation of restoring the bachup had compleated successfully.

 

But there was some errorrs , i think it is releated to  the following :

the value of $VM_DISPLAY_NAME!

the log file was corrpted

the value of date (START_TIME , END_TIME)

 

 

Could you  please review the script and fix the issues ?

 

thanks


Viewing all articles
Browse latest Browse all 251495

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>