Yeah, it's possible to restore a vCenter backup using the CLI, but there's no predefined JSON template for it. You'll need to create your own JSON file. Basically, you just mount the vCenter installer ISO, go to the /vcsa-cli-installer
directory, and run the restore process from there.
Here's an example of a restore.json
you can use:
Once you've got the JSON ready, just run this command:
That'll trigger the restore process. Make sure the FTP server is reachable, and if your backup was encrypted, don't forget to include the password. If something goes wrong, check the logs for errors.
Original Message:
Sent: May 08, 2024 03:12 AM
From: sudhakar_548
Subject: How to automate vCenter restore
We have taken vCenter backup on FTP. We would like to know if there is a way to AUTOMATE the restore of vCenter Backup. The installer DVD has two option to restore the backup
- /vcsa-ui-installer vCenter Server Appliance GUI installer
2. /vcsa-cli-installer vCenter Server Appliance CLI installer
We can restore the backup manually from the UI installer but we would like to restore it from CLI. The CLI json templates are available for Install, Migrate and Upgrade but missing for restore. Please let us know if there is a way to restore vCenter through CLI.