How to Restore ESX 4 VM


Requirement:Backup script has been run against the target server before
The restore script is located below in this post.
  1. Login to target vmware server using putty
  2. Go to “/vmfs/volumes/VSBASE-SAN-BK-9/vmbackup” directory
a) Note: path may vary depending on the host names
  1. Open “restore_list” file
  2. It should contain "<DIRECTORY or .TGZ>;<DATASTORE_TO_RESTORE_TO>;<DISK_FORMAT_TO_RESTORE>”
  3. Add the line for VM to be restored. For example, if the VM’s name is test1: "/vmfs/volumes/VSBASE-SAN-BK-9/vmbackup/test1/test1-2010-04-13--1;/vmfs/volumes/Storage1-9;1"
 clip_image003
  1. Save the restore_list file
  2. Run the command “./ghettoVCB-restore.sh -c restore_list”
clip_image006
  1. When the restore finishes, it shows:
################## Completed restore for test1! #####################
Start time: Tue Apr 13 14:36:43 EDT 2010
End time: Tue Apr 13 14:38:48 EDT 2010
Duration : 2.08 Minutes:
  1. The test1 will show up in VI client automatically. 


ghettoVCB-restore.sh 
  
restore_list

Post a Comment

Previous Post Next Post