Unsolved

This post is more than 5 years old

61 Posts

2324

November 26th, 2013 11:00

Restore from Linux command line

Hello all,

  We are configuring Avamar for our environment and will be rolling the solution out next week. We are trying to understand how to preform a Linux restore from within the guest using the command line.

According to the documentation the syntax should be:

avtar -xv --label=NAME --before=DATE --after=DATE DIR1 [DIR2 ... ] --target=PATH --id=USER

We are able to log into the grid using the command and the user account that we created within the domain. However when we enter the command:

avtar -xv --label="test restore" --id=user@domain --target=/restore/ source_files/ -before="today's date"

Any advice?

Thank you kindly,

Steven

61 Posts

November 26th, 2013 11:00

Oh and I should add, yes we do have backups for this server, and we can restore to the server from the Avamar console.

61 Posts

November 26th, 2013 11:00

Sorry if I was unclear the error that we're getting is that there is no matching backup selected; however, at least in the documentation there doesn't seem a way to list backups to restore from. I'm just a bit confused on the process.

error.PNG.png

2 Intern

 • 

2K Posts

November 26th, 2013 11:00

The --path flag (or its alias --acnt) is required to run a restore. You have to tell the Avamar server which client account you want to restore from. This is normally something like:

--path=/clients/hostname.example.com

2 Intern

 • 

2K Posts

November 26th, 2013 11:00

Off the top of my head I see that there is only one dash in the --before flag where there should be two.

Other than that, could you please clarify the issue? There's no error message or description of the problem included in your post. I think you may have forgotten to finish your thought.

2 Intern

 • 

2K Posts

November 26th, 2013 11:00

at least in the documentation there doesn't seem a way to list backups to restore from

There is a --backups flag for avtar that will give you a list of backups.

61 Posts

November 26th, 2013 13:00

Is there a link to a better reference you know of? This is what the AvClients.pdf shows and it's not very clear at all.

Thanks you so much for your time,

Steven

instructions.PNG.png

2 Intern

 • 

2K Posts

November 26th, 2013 15:00

I actually started writing something up a few weeks ago because these avtar command line questions keep coming up but I got pulled away to work on other things. I finished writing it up and it's now posted on my blog:

https://community.emc.com/blogs/stickybytes/2013/11/26/information-gathering-with-avtar

It doesn't cover the --before or --after flags but I think those are fairly straightforward. Please let me know if you think it would be helpful for me to add some info about these flags as well and I can edit the entry.

Always happy to help!

61 Posts

November 27th, 2013 08:00

Thank you for the article, it's much appreciated.

No Events found!

Top