Start a Conversation

Unsolved

This post is more than 5 years old

1017

April 20th, 2012 05:00

Would like to automate somewhat a test restore..

We have been adding lots and lots of clients.... [Avamar ver 6]

I would like to set up a method by which to test restores.....

Not from the gui.....  But from the command line.... 

[From the utility node]

Something simple....  Restore hosts file from it's original location to C:\temp

Any idea's?

Thanks....

Joe Despres

266 Posts

April 20th, 2012 05:00

Hi Joe,

> I would like to set up a method by which to test restores.....

> Not from the gui.....  But from the command line....

>  [From the utility node]

> Something simple....  Restore hosts file from it's original location to C:\temp

> Any idea's?

Maybe to involve  "mccli " on utility node or "avtar" on client side.

# mccli BACKUP

mccli client backup-target --domain= --name= --plugin= --target=       # start backup with mccli syntax on one client

# mccli RESTORE

mccli backup show --name=/XXXDomain/Windows2003   # list all the backups on the Avamar server for the client Windows2003

mccli backup restore --labelNum= --plugin= --name=/ / --dest-dir=<"DESTINATION_TARGET_NAME">   # restore the backup from specific client with specific LabelNum to the destination target name

# avtar BACKUP

avtar --create --id= --password=MCUser1 --path= --label=<"LABEL_NAME"> --verbose --debug --stats --comstats > C:\avtar_debug.txt  # client initiated backup using avtar

# avtar RESTORE

avtar --backups --verbose --list --id= --path=    # to list all backups

avtar --extract --label=<"Label_Name"> --id= --path= --target=<"DESTINATION_TARGET_NAME"> <"FILE_YOU_WANT_TO_RESTORE">

regards,

.r

176 Posts

April 20th, 2012 06:00

Good info!

Here's a high end vision on what I want to happen  ::--->

1::  Generate a client list...

2::  Create a "for loop" and generate a backup just of C:\windows\system32\drivers\etc\hosts for

all hosts in my client list.  get labelnum of the backup in this loop as well. Need to set retention to 1 day

for this backup...

3::  Create a "for loop"  to perform the test restore...

4::  Generate documented proof for both the backup and the restore...

Note ::--->  This is a bit ridiculous....  But it's management that wants it done!  I just want it to be as painless as possible... And take up less of my time....

Thanks...

Joe Despres

No Events found!

Top