Ask Experts Questions for FREE Help!
Ask    ||    Answer
 
  Advanced  
 

Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
Free Answers in 3 Easy Steps

Register Now
3 Steps

At Ask Me Help Desk you can ask questions in any topic and have them answered for free by our experts. To ask questions or participate in answering them you must register for a free account. By registering you will be able to:
  • Get free answers from experts in any of our 300+ topics.
  • Accept money for answers that you provide.
  • Communicate privately with other members (PM).
  • See fewer ads.

Home > Computers & Technology > Operating Systems > Other Operating Systems   »   How to restore backup in linux taken by TAR Command

 
Thread Tools Search this Thread Display Modes
Question
 
 
#1  
Old Jul 18, 2008, 11:18 PM
kharmale_anil
New Member
kharmale_anil is offline
 
Join Date: Jul 2008
Posts: 15
kharmale_anil See this member's comment history on his/her Profile page.
How to restore backup in linux taken by TAR Command

hiiiii
I m new in linux. In my office i have taken baukup of Oracle data using Tar files. Now my mangaer tell me to resotre one of the data from tape. so can you tell the command for restornig backup.

Usually for backup i use command
Tar -rvf /dev/st0 /Folder name

Reply With Quote
 
     

Answers
 
 
Old Aug 23, 2008, 07:13 PM   #2  
New Member
gctts is offline
 
Join Date: Aug 2008
Posts: 20
gctts See this member's comment history on his/her Profile page.
you can retrieve the files by mounting the CD and copying the files from CD to hard drive using the cp command

cp /dev/st0 (mine are on use dev/cdrom so use whatever device yours is called) new.location (for new.location, use whatever directory you want it in)

move to the directory you copied the tar files to:
cd whatever directory you put the tar file in
tar -xp filename.tar
  Reply With Quote
 
     
 
 
Old Aug 29, 2008, 04:19 PM   #3  
New Member
pauline896 is offline
 
Join Date: Aug 2008
Posts: 1
pauline896 See this member's comment history on his/her Profile page.
you can retrieve the files by mounting the CD and copying the files from CD to hard drive using the cp command

cp /dev/st0 (mine are on use dev/cdrom so use whatever device yours is called) new.location (for new.location, use whatever directory you want it in)

move to the directory you copied the tar files to:
cd whatever directory you put the tar file in
tar -xp filename.tar
================================================== =========
widecircles
pauline
  Reply With Quote
 
     
 
 
Old Sep 10, 2008, 11:28 PM   #4  
New Member
kharmale_anil is offline
 
Join Date: Jul 2008
Posts: 15
kharmale_anil See this member's comment history on his/her Profile page.
[
Hiiii
Thanks for the reply

Actulayy size of backup file which is on tape is more than 10GB. And this file was deleted from my syatem. And now i want to retrive that file from tape to Hard disk. So please tell me the command line so that i can easily restore the file form Tape to Nachine.

Thanks






QUOTE=pauline896]you can retrieve the files by mounting the CD and copying the files from CD to hard drive using the cp command

cp /dev/st0 (mine are on use dev/cdrom so use whatever device yours is called) new.location (for new.location, use whatever directory you want it in)

move to the directory you copied the tar files to:
cd whatever directory you put the tar file in
tar -xp filename.tar
================================================== =========
widecircles
pauline[/quote]
  Reply With Quote
 
     
 
 
Old Sep 14, 2008, 03:25 AM   #5  
Junior Member
derobert is offline
 
Join Date: Oct 2007
Posts: 33
derobert See this member's comment history on his/her Profile page.
You can use tar to read the tape if it was written by tar.

e.g., tar xf /dev/st0

I'd suggest setting the read-only tab on your tape if it has one.

Hopefully however you backed up the Oracle files, you did it correctly. Just taring up the Oracle data dir usually isn't the right way.
  Reply With Quote
 
     
 
 
Old Sep 15, 2008, 11:28 PM   #6  
New Member
kharmale_anil is offline
 
Join Date: Jul 2008
Posts: 15
kharmale_anil See this member's comment history on his/her Profile page.
Thanks for reply...
Its done. I have restore file succesfully using tar xf /dev/st0 this command, thanks very much.
Now i want help that can i delete unnecessary backup files from tape?? If so please give me the command line for the same?

Thanks
Anil




QUOTE=derobert]You can use tar to read the tape if it was written by tar.

e.g., tar xf /dev/st0

I'd suggest setting the read-only tab on your tape if it has one.

Hopefully however you backed up the Oracle files, you did it correctly. Just taring up the Oracle data dir usually isn't the right way.[/quote]
  Reply With Quote
 
     
 
 
Old Sep 16, 2008, 05:55 PM   #7  
Junior Member
derobert is offline
 
Join Date: Oct 2007
Posts: 33
derobert See this member's comment history on his/her Profile page.
Tape doesn't work like that. It isn't a file system. You can erase the tape, or just write over it, but you don't add and delete files like you do a file system.

If you want to write over it, just use your original tar command — that'll overwrite the tape. If you need to erase it (e.g., for security reasons), you can (depending on tape type) use either a bulk eraser or something like dd if=/dev/urandom of=/dev/st0 bs=32768 (and repeat as many times as your security needs require).

I strongly suggest learning more about how tape operates if you're going to rely on them. I don't know of a good reference off the top of my head, unfortunately. Also, as a backup strategy, tar is rather lacking in features; there are plenty of backup packages that'll make like much easier. Personally, I use Bacula, but that's an overkill for a single machine.

Edit: Also, no backup strategy should be trusted until you've done at least one restore!
  Reply With Quote
 
     

Your Answer
Email me when someone replies to my answer
Join Login





Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

 
Similar Sponsors


Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page

Similar Threads
command line is telling that "javac" is no internal or external command
(1 replies)
when i try to go back to restore point, my comuter doesnt go to restore.
(3 replies)
How can i use net send command?
(1 replies)
system restore wont restore
(5 replies)
system restore - unable to restore
(2 replies)

Search this Thread

Advanced Search

Bookmarks

Sponsors



Copyright ©2003 - 2009, Ask Me Help Desk.
All times are GMT -8. The time now is 03:26 AM.