knife-vsphere
knife-vsphere copied to clipboard
Restoring Files of the VM in vCenter Level
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.
- Login to the VM and get the targetID of the required Hard disk drive of the VM.
- 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.
- 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.
- Now login to the VM and get the restored files mounted as a drive.
Regards, Bhargavi.
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
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.