This post is more than 5 years old
1 Rookie
•
39 Posts
0
8634
November 15th, 2013 07:00
command line restore using avtar command
so I know this works for restoring files :
avtar --extract --id=SECRET --password=SECRET --path=/RedHat/mylinuxserver.secret.com /home/donaldduck/my_data
What I would like to know is if there is a way to send the restore data to another directory on the client, like to /tmp or /restore as an example
I know it will not overwrite unless you place the flag to overwrite, but we have a need some times to place the restored data in an alternate location.
Thanks!!
No Events found!
mradamk
215 Posts
0
November 15th, 2013 07:00
Yes there is, please refer to the avtar option: --target=
ionthegeek
2 Intern
•
2K Posts
1
November 15th, 2013 07:00
The flag you're looking for is --target. For example, to restore the data to the /tmp directory:
avtar --extract --id=SECRET --password=SECRET --path=/RedHat/mylinuxserver.secret.com --target=/tmp /home/donaldduck/my_data
Or to restore to the current working directory:
avtar --extract --id=SECRET --password=SECRET --path=/RedHat/mylinuxserver.secret.com --target=. /home/donaldduck/my_data
djr011
1 Rookie
•
39 Posts
0
November 15th, 2013 09:00
perfect!! thank you:
where is there information on all the avtar command had to offer (PDF)?
I am wondering about the --validate or --showlog .. not sure what they do
djr011
1 Rookie
•
39 Posts
1
November 15th, 2013 10:00
Thank you!!!!
ionthegeek
2 Intern
•
2K Posts
1
November 15th, 2013 10:00
I'm not sure there's a customer-facing document that covers all the avtar options.
The --validate flag essentially runs a restore of the data to /dev/null. This can serve as a test of the integrity of the backup on the server (though it only tests that the backup is consistent, not that it is correct -- if the data was corrupted on the client when we backed it up, Avamar has no way to detect this).
The --showlog flag will print out the avtar log for a specified backup (or the most recent backup if no backup is specified) up to the point where the backup was sealed on the server. This is useful if the client logs for a backup have rolled off the client itself (we purge backup logs periodically) but the backup is still on the server.
djr011
1 Rookie
•
39 Posts
0
November 15th, 2013 11:00
so is it true that you CANNOT restore data from a client from another system other than the client?
EG:
from cleintA do a restore of data from clientB but restore it to clientA.
mradamk
215 Posts
1
November 15th, 2013 12:00
Yes you can do this, here’s an example syntax restoring from the win2008 client and this avtar was issued from a Linux client
Include the source clients account info. in your syntax.
avtar -x --acnt=/ATO/win2008r2-ent.brsvlab.local --hfsaddr=ave-03 --encrypt=ssl:AES128-SHA --id=***** --password=***** --sequence=287 --quiet
ionthegeek
2 Intern
•
2K Posts
0
November 15th, 2013 12:00
Note that you have to be on the client where the files should be restored, not the client that created the backup you want to restore.
mradamk
215 Posts
0
November 15th, 2013 13:00
Forgot to mention, the hfsaddr needs to contain the name of your Avamar server.
From: Kirkpatrick, Adam
Sent: Friday, November 15, 2013 4:37 PM
To: 'jive-1497546335-kse-2-glxl@emc-ecn.hosted.jivesoftware.com'
Subject: RE: - command line restore using avtar command
Your source client owning the BU you want to restore.
So if you are on Client-A and you want to restore Client-B’s BU to Client-A, then Client-B would be the source client in this case
mradamk
215 Posts
0
November 15th, 2013 13:00
Your source client owning the BU you want to restore.
So if you are on Client-A and you want to restore Client-B’s BU to Client-A, then Client-B would be the source client in this case
djr011
1 Rookie
•
39 Posts
0
November 15th, 2013 13:00
OK so I got it to work but it works when I run this exact syntax:
the --acnt did not seem to make a difference: from what I can gather, this is a file located on for this example: client-A that has the name: client-B in it?
Sorry for the air head questions here..
root@client-A # avtar -x --hfsaddr=avamar-server.com --id=**** --password=**** --path=/mydomain/client-B --target=/tmp /etc/HOSTNAME
basically, I pulled the /etc/HOSTNAME file for client-B from client-A...
djr011
1 Rookie
•
39 Posts
0
November 15th, 2013 13:00
avtar -x --acnt=/ATO/win2008r2-ent.brsvlab.local --hfsaddr=ave-03
what is the --acnt? and what info is needed?
I assume the --hfsaddress is the other system you are getting the data from.
ionthegeek
2 Intern
•
2K Posts
0
November 15th, 2013 13:00
The --path and --acnt flags are synonyms. The --server and --hfsaddr flags are also synonyms.
djr011
1 Rookie
•
39 Posts
0
November 15th, 2013 14:00
thanks guys... you've made my life easier...
djr011
1 Rookie
•
39 Posts
0
November 15th, 2013 15:00
i read this on another post earlier when trying to scour for info...: -- so it wont do me any good since i'm just a normal customer.
Correct Answer 3. Re: Where is "Avamar Technical Addendum"?
You'll be able to see them if you have an EMC partner account but they won't be visible from a customer Powerlink account.