Unsolved
This post is more than 5 years old
1 Rookie
•
82 Posts
0
3611
June 7th, 2016 21:00
Need a command to run a backup in cmd line.
Hello All,
Looking for the command to run the backup manually for a particular VM through cmd line. I achieved this for the guest backup. Getting error while using the same for the image backup.
REgards,
Dileep M
No Events found!


dileep451
1 Rookie
•
82 Posts
0
June 9th, 2016 02:00
Thank you Raghav. Version is 7.2
Error is :
mccli client backup backup-group-dataset --domain=/Vcentername/ContainerClients --group-domain=/Vcenter/Cluster --group-name=Linux --name=VMname
1,22241,Client is not a member of group.
Forgot to mention , this is a container client. I am looking to run the backup with the properties of particular group has.
raghav.viswanathan
39 Posts
0
June 9th, 2016 02:00
Hi,
Can you provide further information like avamar version, the command you used and the error you got?.
For 7.2 you can try this
mccli client backup-target --name=String --target=String [--contained-vm-name=String]
[--domain=String(/)] [--plugin=Integer] [--wait[=min]]
If backing up a virtual machine, individual disks can be backed up by specifying the
corresponding base VMDK file. Multiple virtual disks can be backed up with
additional --target arguments.
HTH
Regards
Raghav
raghav.viswanathan
39 Posts
1
June 9th, 2016 04:00
Hi ,
Try using the below syntax it worked for me in lab (not a container client though)
mccli client backup-group-dataset --name=wguest01 --group-name=c-Gold --domain=/vcenterfqdn/VirtualMachines --group-domain= /vcenterfqdn/VirtualMachines
if any doubt as to group and/or domain
run the below
mccli group show --recursive
this shld give group name and the group domain
mccli client show --recursive
this shld give the vm name and the domain.
Will try setting up a container client in my lab but not sure.
Let me know if this helps.
Regards
Raghav
umichklewis
4 Apprentice
•
1.2K Posts
0
June 9th, 2016 06:00
Thanks for the tip! The show --recursive flag is very useful to get more information!
Karl
dileep451
1 Rookie
•
82 Posts
0
June 10th, 2016 04:00
Used the same parameters , getting same error.
dileep451
1 Rookie
•
82 Posts
0
June 14th, 2016 01:00
problem is group. If we go and edit the group, in the clients section we will see only container name. No clients will be listing there. thats the reason we are getting client not in the group. Any comments?...
raghav.viswanathan
39 Posts
0
June 14th, 2016 02:00
for container clients try the below
mccli backup client-target --name=complete path to vm --contained-vm-name=name of container
--plugin=3016 --target=ALL
plugin id 3016 is for windows
dynamox
11 Legend
•
20.4K Posts
•
87.4K Points
0
July 11th, 2016 11:00
i don't see "mccli backup client-target" as an option, i am on 7.2.1-32.
dynamox
11 Legend
•
20.4K Posts
•
87.4K Points
0
July 11th, 2016 13:00
ok, this seems to work.
mccli client backup-dataset --contained-vm-name=oracle-dev --dataset=my_vmdataset --name="/vc-mycompany.com/prod-vms"
oracle-dev is the actual VM name
prod-vms is the "folder" name in vCenter where oracle-dev VM resides.