View previous topic :: View next topic |
Author |
Message |
rev138 l33t
Joined: 19 Jun 2003 Posts: 848 Location: Vermont, USA
|
Posted: Tue Dec 20, 2005 12:59 pm Post subject: I can't untar my system backup. Help! |
|
|
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 |
|
|
neilhwatson l33t
Joined: 06 Feb 2003 Posts: 719 Location: Canada
|
Posted: Tue Dec 20, 2005 1:53 pm Post subject: |
|
|
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 |
|
|
rev138 l33t
Joined: 19 Jun 2003 Posts: 848 Location: Vermont, USA
|
Posted: Tue Dec 20, 2005 2:00 pm Post subject: |
|
|
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 |
|
|
MrUlterior Guru
Joined: 22 Mar 2005 Posts: 511 Location: Switzerland
|
Posted: Tue Dec 20, 2005 3:32 pm Post subject: |
|
|
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 |
|
|
|