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

Re: [cobalt-users] help need to RESTORE BACKUP



Hi Steven,

I found the script. I don't know either where it's on the ftp-page, but I found
a mailing-list-post from August 1999 containing the script.

Hope it helps!

Bye,

Niko


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;

Steven Glogger wrote:

> I cannot find the perl script...do you know where it is?
>
> -Steven
>
> > -----Original Message-----
> > From: cobalt-users-admin@xxxxxxxxxxxxxxx
> > [mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of Nikolas Samios
> > Sent: Donnerstag, 20. Januar 2000 14:58
> > To: cobalt-users@xxxxxxxxxxxxxxx
> > Subject: Re: [cobalt-users] help need to RESTORE BACKUP
> >
> >
> > Hi Steven,
> >
> > there's a perl-script somewhere on the cobalt.net ftp-site that
> > removes the
> > headers from the backup-files so you get a naked tar-file. See
> > the tar help for
> > exact options.
> >
> > Bye,
> >
> > Niko
> >
> > Steven Glogger wrote:
> >
> > > hehe..thx
> > >
> > > more than more i love that raq....
> > > i'm currently programming a completly new administration for
> > the whole raq
> > > and i include a complete customer managament, interface to
> > networksolutions
> > > (to register domains automatic), a new backup interface, and more....
> > >
> > > but now i have to restore this f***ing damn web.....it's not a
> > customer web
> > > :-)
> > >
> > > -steven
> > >
> > > > -----Original Message-----
> > > > From: cobalt-users-admin@xxxxxxxxxxxxxxx
> > > > [mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of Julian Carter
> > > > Sent: Donnerstag, 20. Januar 2000 12:59
> > > > To: cobalt-users@xxxxxxxxxxxxxxx
> > > > Subject: Re: [cobalt-users] help need to RESTORE BACKUP
> > > >
> > > >
> > > > hehehehehehe   ,,, have fun :-)
> > > >
> > > > We urge all our customers to back up their individual sites
> > themselves, as
> > > > if we ever do have to do a restore it will be the whole damn server !
> > > >
> > > > Julian
> > > >
> > > >
> > > > ----- Original Message -----
> > > > From: Steven Glogger <list@xxxxxxxxxx>
> > > > To: <cobalt-users@xxxxxxxxxxxxxxx>
> > > > Sent: Thursday, January 20, 2000 10:19 PM
> > > > Subject: [cobalt-users] help need to RESTORE BACKUP
> > > >
> > > >
> > > > > hi there...
> > > > >
> > > > > i've got to restore a backup (made with cobalt backup-system)
> > > > on my raq2.
> > > > > i alway do daily whole backups....
> > > > > but i need only one site...and the way to upload a 350meg file
> > > > via browser
> > > > > is bad...
> > > > > so i uploaded it via ftp....
> > > > > but when i whant to restore the backuparchive on the webinterface
> > > > > ('selective restore' sounds interessting) it doesn't work...
> > > > >
> > > > > how can i uppack only the one file...
> > > > >
> > > > > thx
> > > > >
> > > > >
> > > > > steven
> > > > >
> > > > >
> > > > > _______________________________________________
> > > > > cobalt-users mailing list
> > > > > cobalt-users@xxxxxxxxxxxxxxx
> > > > > http://list.cobalt.com/mailman/listinfo/cobalt-users
> > > > >
> > > >
> > > >
> > > > _______________________________________________
> > > > cobalt-users mailing list
> > > > cobalt-users@xxxxxxxxxxxxxxx
> > > > http://list.cobalt.com/mailman/listinfo/cobalt-users
> > > >
> > >
> > > _______________________________________________
> > > cobalt-users mailing list
> > > cobalt-users@xxxxxxxxxxxxxxx
> > > http://list.cobalt.com/mailman/listinfo/cobalt-users
> >
> > --
> > _____________________________
> > Nikolas Samios
> > CTO/Geschäftsführer
> >
> > [!] m e d i a p h i l
> >
> > digital media
> > Dompfaffweg 10
> > D-81827 Munich
> > Germany
> >
> > Tel: +49.89.431.908.0
> > Fax: +49.89.431.908.80
> > eMail: ns@xxxxxxxxxxxx
> > http://www.mediaphil.de
> > _____________________________
> >
> >
> >
> > _______________________________________________
> > cobalt-users mailing list
> > cobalt-users@xxxxxxxxxxxxxxx
> > http://list.cobalt.com/mailman/listinfo/cobalt-users
> >
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> http://list.cobalt.com/mailman/listinfo/cobalt-users

--
_____________________________
Nikolas Samios
CTO/Geschäftsführer

[!] m e d i a p h i l

digital media
Dompfaffweg 10
D-81827 Munich
Germany

Tel: +49.89.431.908.0
Fax: +49.89.431.908.80
eMail: ns@xxxxxxxxxxxx
http://www.mediaphil.de
_____________________________