Link to home
Start Free TrialLog in
Avatar of CT2000
CT2000

asked on

Sun Solaris "Tar" command

Hi,
  I am trying to run restore using tar command. I backup my data using "tar cv ./raid5". When I try to restore on this folder /temp I type "tar xvf /dev/rmt/0 ./raid5/test.txt". I don't see any files got restore up (where test.txt is in the folder /raid5).
Where would my files located? Will it be /temp/raid5/test.txt.

    Please advise.
    Thanks in advance.
    CT2000
   
ASKER CERTIFIED SOLUTION
Avatar of argo
argo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CT2000
CT2000

ASKER

Hi,
  I manage to solve the problem myself. The correct command should be /temp/ type tar xvf /dev/rmt/0 ./raid5/test.txt

  CT2000
Avatar of CT2000

ASKER

Since I solve the problem myself, I take back my points
Avatar of CT2000

ASKER

Since I solve the problem myself, I take back my points
Excuse me, CT2000 --->>>  Please explain how you solved the problem yourself, when this was posted for you prior to your comment and I quote:

From: argo  Date: 09/25/2001 02:41AM PST  
tar xvf /dev/rmt/0 ./raid5/test.txt

in this, the last argument specifies what you want restored.

Try this

cd /<wherever it is>/raid5
tar -xvf /dev/rmt0 test.txt  

---------->>>>  argo, am I missing something here?

Requesting second opinion.

Thanks,

Moondancer
Community Support Moderator @ Experts Exchange
Second opinion confirmed this to be valid award, thus finalized by:
Moondancer
Community Support Moderator @ Experts Exchange
Thanks
I was actually slightly irritated...

Feel better now :)
It is very disheartening, indeed, to see that questions are asked, help is offered and then ......

Well, fortunately, this site is about Collaboration and doing what is right.  This has been done.  Asker chose not to return and update the "other" solution so I could only assume this served well.

I can certainly understand how and why you felt that way.  Hopefully, as this site continues to improve, there will be less of this to contend with.  The New Management and processes have been significantly better, and more improvements on the way.  Check What's New if you haven't yet.  I've always felt this site was the best on the net and do so still, otherwise I wouldn't spend 70 hours/week cleaning up old questions (for free).

Take care,
Moondancer
Community Support Moderator @ Experts Exchange