From: Philippe A. <phi...@ci...> - 2005-12-07 15:43:48
|
Thanks David, I will try ... CU Philippe David Scott Coburn a =E9crit : >On Tuesday 06 December 2005 05:46, Philippe AMIOT wrote: > =20 > >>Hello >> >>I have a crash disk, I LOST ALL MY DATA >> >>and I try to recover it, bur I have some probl=E8mes, maybe you could h= elp=20 >>me please ! >> >>I want only recover /var/spool/mail ! >> =20 >> > >Philippe, > >I am not sure this will help, but when I want to do a restore this is >what I do: > >(My backups are stored on disk, not tapes, so you will have to modify th= is >somewhat...) > >root> cd /backups/x22c/images >root> flexbackup -c ../flexbackup.conf -list home.2.20021126.afio-gz | /= backups/restore/listdir.pl scott > fred > >The flexbackup.conf file is stored in the directory above the directory = where >my images are. The 'listdir.pl' perl script is just a simple script to = find >all of the files in the -list output which are in a particular subdirect= ory. I >use it so that I don't have to do so much hand editing of the -list outp= ut. >This is the perl script: > >#!/usr/bin/perl > ># extract list of files in a given subdirectory in the 'flexbackup -list= ' ># stream on sdtin. ># ># flexbackup -list afio-archive-name | listdir.pl subdirname > files ># > >use strict; > >my $dir; > >$dir =3D shift @ARGV; # get subdirectory name from command line > >while (<>) { > chomp; > if (/.*[\s]($dir\/.*)/) { > print "$1\n"; > } >} > >Once you have the file 'fred' with the list of files in the subdirectory >you can further edit it to leave only the particular files you want (or >not, so you can extract all of the files in the subdirectory). > >Then I do this: > >root> flexbackup -c ../flexbackup.conf -extract home.2.20021126.afio-gz = -flist fred > >This has always worked for me. > >Cheers, > >Scott > > =20 > |