Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I can't untar my system backup. Help!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
rev138
l33t
l33t


Joined: 19 Jun 2003
Posts: 848
Location: Vermont, USA

PostPosted: Tue Dec 20, 2005 12:59 pm    Post subject: I can't untar my system backup. Help! Reply with quote

I made a bzip'd tarball of my system, then repartitioned my hard drive. When I did this, I added several "--exclude=" switches to stop it from backing up various directories like /timp and /proc, but I forgot to exclude /sys.

Now, when I go to extract the tarball, it stops on '/sys/module/something/something', stalls for a long time, and then exits with an error. I've tried adding "--exclude=sys/*" to the command line, but it still freezes at the point where it should be extracting sys, and exits with an error.

This is a big problem for me. It's extracted everything but /var and /usr at that point, but those are slightly necessary.

Anyone know a fix for this?

Many thanks in advance.
Back to top
View user's profile Send private message
neilhwatson
l33t
l33t


Joined: 06 Feb 2003
Posts: 719
Location: Canada

PostPosted: Tue Dec 20, 2005 1:53 pm    Post subject: Reply with quote

Try restoring to a temp directory. Then copy just what you need. You could also restore just the parts you need.
Code:
tar -xzf backup.tgz usr/*

_________________
The true guru is a teacher.
Neil Watson
Back to top
View user's profile Send private message
rev138
l33t
l33t


Joined: 19 Jun 2003
Posts: 848
Location: Vermont, USA

PostPosted: Tue Dec 20, 2005 2:00 pm    Post subject: Reply with quote

neilhwatson wrote:
Try restoring to a temp directory. Then copy just what you need. You could also restore just the parts you need.
Code:
tar -xzf backup.tgz usr/*


I tried. Anything I try to extract that's after sys doesn't work. I think my tarball might have gotten corrupted.

Oh well. I guess I'll have to rebuild from scratch. At least I have /etc for all my configs.
Back to top
View user's profile Send private message
MrUlterior
Guru
Guru


Joined: 22 Mar 2005
Posts: 511
Location: Switzerland

PostPosted: Tue Dec 20, 2005 3:32 pm    Post subject: Reply with quote

What does "tar -tzf <archive>" report? Are the files there? If so, run:

Code:

tar -zxf --excude "sys" <archive>


As --exclude sys/* will be expanded by your shell to match the present contents of sys and NOT the contents of your archive...
_________________

Misanthropy 2.0 - enough hate to go around
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum