djr011

updated

13 years ago

D

djr011

1 Rookie

39 Posts

0

8726

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!!

  • mradamk

    215 Posts

    3443

    0

    Posted November 15th, 2013 07:00

    Yes there is, please refer to the avtar option: --target=

  • ionthegeek

    2 Intern

    2049 Posts

    3443

    1

    Posted 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

    3443

    0

    Posted 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

    3443

    1

    Posted November 15th, 2013 10:00

    Thank you!!!!

  • ionthegeek

    2 Intern

    2049 Posts

    3443

    1

    Posted 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

    2184

    0

    Posted 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

    2184

    1

    Posted 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

    2049 Posts

    2184

    0

    Posted 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

    731

    0

    Posted 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

    731

    0

    Posted 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