[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-developers] Unpacking the backup files?
- Subject: Re: [cobalt-developers] Unpacking the backup files?
- From: "Rob Evans" <robe@xxxxxxxxxxxxxxxxxxx>
- Date: Wed Mar 15 17:52:35 2000
- Organization: Fujitsu Australia Software Technology
----- Original Message -----
From: "John Coonrod" <jc@xxxxxxx>
To: <cobalt-developers@xxxxxxxxxxxxxxx>
Sent: Thursday, 16 March 2000 10:44
Subject: [cobalt-developers] Unpacking the backup files?
> My Qube has died, and I now want to get to some of the backup files from a
> Windows computer.
> Can it be done? If so, how?
>
If your Qube is a 2700 then you can get inside the backup file by changing
it .qub suffix to .tar.gz and opening it with WinZip. This will say that
the "Archive contains one file: backupfile.tar Should WinZip decompress it
to a temporary folder and open it?" - reply "Yes". All the individual files
will be listed and you can extract whatever you want.
Unfortunately, the Qube2 backup file has some extra material inserted and
so, the above technique does not work directly. Jeff Bilicki supplied the
following perl script for overcoming this difficulty - I haven't used it
myself.
Rob E.
Extract from Jeff Bilicki's response (25 August 1999) to my query follows:
If you run the following perl script against the tar it will strip out
the Cobalt specific headers and leave just the tar ball. I tried this
on a couple of backup files, it seem to work ok even though tar gave
errors on exit.
Jeff-
#!/usr/bin/perl
# Jeff Bilicki <jeffb@xxxxxxxxxxxxx>
# removes the header out of a Qube 2 and RaQ 2 backup file
use strict;
my ($infile);
my ($outfile) = "out.tar.gz";
my ($end) = "\%\%END_INDEX";
my ($begin) = "\%\%BACKUP_HEADER";
if (@ARGV) {
$infile = $ARGV[0];
} else {
print "usage: stripheader.pl <file name>\n";
exit 1;
}
open (INFILE, $infile) or die "Can't open: $!\n";
open (OUTFILE, ">$outfile") or die "Can't open $!\n";
while (<INFILE>) {
if ( /^$begin/ ... /^$end/ ) {
next;
} else {
print OUTFILE $_;
}
}
close(INFILE);
close(OUTFILE);
exit 0;