LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-05-2003, 05:18 PM   #1
Tom Bozack
LQ Newbie
 
Registered: Dec 2000
Location: Ridgecrest, California
Posts: 25

Rep: Reputation: 15
Unhappy betrayed by tar


I've been using tar for years to back up my systems. For most of this time tar has been a good friend. But recently it let me down.

It all started when I accidentally deleted /etc (don't ask!). No problem, I thought, because I have a current tar backup. So I restored /etc from the backup, only to find out that all of the rc files were restored as empty files, not as symbolic links to the appropriate files in init.d. My old friend tar had betrayed me! When I did a tar tvf of the tar archive, it showed the rc files properly as symbolic links, but I couldn't find a way to restore them. I was also puzzled to discover that some other symbolic links were restored properly. Reading the gnutar manual didn't shed any light on the problem -- at least not that I could understand.

I finally ended up spending an all-nighter manually recreating the symbolic links. Arrrgggg!!!

Does anyone know what gives here? Why did tar let me down when I needed it the most. And what can I do to prevent this from happening again (other than not blowing away /etc).

Thanks,
Tom
 
Old 07-06-2003, 09:58 PM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Was this a newly created, appended, or updated file?

I've never heard of it before, but I use tar myself and wonder if I may have the same problem.
 
Old 07-07-2003, 01:21 PM   #3
Tom Bozack
LQ Newbie
 
Registered: Dec 2000
Location: Ridgecrest, California
Posts: 25

Original Poster
Rep: Reputation: 15
The tar archive file is nothing special. I tar my system about once a week. So the tar archive that I restored from was a plain vanilla file - not appended or updated.

????????

Tom
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 03:48 AM
tar tar cvf - . | (cd /root/; tar xvf -) ewt3y Linux - General 10 02-19-2014 11:55 AM
a tough question 4 u, problem in extracting tar & tar.gz files p_garg Linux - General 5 11-08-2010 12:02 PM
Microsoft's Google Earth. Do you feel betrayed? everal Linux - News 67 08-27-2007 08:36 PM
Diferance between rpm, tar, tar.gz, scr.tar, etc mobassir Linux - General 12 08-21-2003 07:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration