knife-vsphere icon indicating copy to clipboard operation
knife-vsphere copied to clipboard

Restoring Files of the VM in vCenter Level

Open BhargaviAllada opened this issue 5 years ago • 2 comments

Versions:

  • Version of knife-vsphere: 2.0.1
  • Version of chef: 13.6.4

Platform Details

  • Version of vSphere: Version 6.5.0.10000 Build 7119157
  • Version of ESXi: 6.5.0

Scenario:

We have a requirement to Restore the backup files of the VM in vCenter level. Do let us know if we can automate/achieve this through chef commands. If yes, how could we achieve this?

Kindly find the below points of this process in GUI mode.

  1. Login to the VM and get the targetID of the required Hard disk drive of the VM.
  2. In vCenter, got to Configure section of the same VM --> HPE SImplivity Search Backups --> select the required BackupName based on the required Cluster --> Right click on the BackupName --> Select Restore Files.
  3. Now the Restore Files window will appear. Follow the step by step process by clicking next, selecting files to restore, selecting destination cluster and the VM to get restored and Click on Finish.
  4. Now login to the VM and get the restored files mounted as a drive.

Regards, Bhargavi.

BhargaviAllada avatar Oct 22 '18 11:10 BhargaviAllada

Hi,

Any update on this? Do we have any commands (for which I have mentioned above in the steps through GUI) to restore the files?

Regards, Bhargavi

BhargaviAllada avatar Oct 24 '18 06:10 BhargaviAllada

Hi, I doubt it. That sounds like your backup software is doing the work there. You can upload files to a datastore from local disk and the other way around with https://github.com/chef-partners/knife-vsphere/#knife-vsphere-datastore-file but that's the closest I can think of.

swalberg avatar Oct 24 '18 12:10 swalberg