[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-developers] URGENT Restore a backup file!!!!



Hi there,


> Do you have an idea of how we can restore these files? Is there a way to
> extract from the .raq file some files manually?

Try the script from Jeff Bilicki. It works for me :)

/Bjarke




Date forwarded: Tue, 24 Aug 1999 10:47:45 -0700
From: Jeff Bilicki <jeffb@xxxxxxxxxxxxx>
To: cobalt-users@xxxxxxxxxxxxx
Subject: Re: [Qube2] Form of .qub backup files
Send reply to: cobalt-users@xxxxxxxxxxxxx



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;




--------------------------------------------------------------
             Cobalt Networks Inc. in Denmark

   [LIGA] ApS - Faelledvej 16D - DK 2200 Copenhagen N
      Tel: +45 35 36 95 05  -  - bjarke@xxxxxxxx
              http://cobalt.liga.dk
--------------------------------------------------------------








Sun Cobalt Support by Zeffie.com
A Sun Cobalt Support Specialist Since 1999
Sun Cobalt Support, Repairs, Development, and Maintenance.
Home of the Worlds Largest Collection of Sun Cobalt Updates!
Sun Cobalt Spam Filter, Security, Firewall, Anti Virus Products.
Voip 734-454-9117 At&t 734-454-0818 US Toll Free 800-231-4459 UK 0208-150-6860

Zeffie's Sun Cobalt User Forums
Zeffie's Sun Cobalt Restore CD's   Zeffie's Sun Cobalt Updates  
Sun Cobalt Users List   Sun Cobalt Security List   Sun Cobalt Developers List

Click here to buy me a drink at the local pub!
(includes tip and paypal fees)

Copyright 2009 by Electronic Consultants Inc.