Hello,
I’m trying to restore (out of place) a file list from a vmware guest in python but i got a failed job. client is installed on the machine for restore only.
Here is my code :
from cvpysdk.commcell import Commcell
webconsole_hostname = "v-commserve-1.xxxxx"
commcell_username = "xxxxx"
commcell_password = "xxxxx"
client_name = "v-xxx-2"
destination = "/tmp"
overwrite = False
restore_data_and_acl = True
commcell = Commcell(webconsole_hostname, commcell_username,commcell_password)
client = commcell.clients.get(client_name)
agent = client.agents.get("Virtual Server")
instance = agent.instances.get("vminstance")
backupset = instance.backupsets.get("defaultbackupset")
subclient = backupset.subclients.get("backup_bronze")
paths = [
"/etc/hostname",
"/etc/mailname"
]
restore_time = "2024-01-15 00:00:01"
job = subclient.restore_out_of_place(
client=client,
destination_path=destination,
paths=paths,
overwrite=overwrite,
restore_data_and_acl=restore_data_and_acl,
from_time=restore_time
)
Where am i wrong ?
Thx a lot