Unsolved
This post is more than 5 years old
47 Posts
0
742
Automating a guest level backup
I have Avamar 7.4 with pre-configured domains, datasets, schedules and retentions....
I also have pre-configured backup groups....
A new VM will get deployed via vcenter, avamar agent gets installed then automatically registered with Avamar.
I want a command which will add the client into the named backup group relative to the domain that it belongs to...
What is the simpliest way of doing that so we can automate the client guest backup into the right backup group...
thanks!
mikelavery69
47 Posts
0
October 31st, 2017 05:00
I think the method is here.....via mccli.....
#! /bin/sh
#
# This script is to check for new guest clients and add to pre-configured backup groups
#
# Author: Mike Lavery
#
DOMAIN=$1 # get domain from first argument
for i in `mccli client show --domain=$DOMAIN |grep Guest|awk '{print $1}'`
do
mccli group add-client --client-domain=$DOMAIN --client-name=$i --name="$DOMAIN"/BACKUPGROUP
done