LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   betrayed by tar (https://www.linuxquestions.org/questions/linux-general-1/betrayed-by-tar-70340/)

Tom Bozack 07-05-2003 04:18 PM

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

DavidPhillips 07-06-2003 08:58 PM

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.

Tom Bozack 07-07-2003 12:21 PM

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.

????????:confused:

Tom


All times are GMT -5. The time now is 08:51 PM.