From: Philippe A. <phi...@ci...> - 2005-12-06 10:53:44
|
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 hel= p=20 me please ! I want only recover /var/spool/mail ! I'm in /tmp to recover ... When I try tar xzf /dev/st0 /var/spool/mail/ it said to me doesn't find in archive (french translation) When I try mt -f /dev/st0 rewind mt -f /dev/st0 fsf 0 flexbackup --extract It's extract only the backuped /etc ! Why ? If I want only recover the file 14 (/var/spool/mail see list under), can=20 I do : mt -f /dev/st0 rewind mt -f /dev/st0 fsf 14 flexbackup --extract Is it correct ? How do I only recover my var/spool/mail ... Thanks a lot in advance for your Help Philippe Flexbackup Version : # $Id: flexbackup.conf,v 1.74 2003/09/21 22:59:58 edwinh Exp $ # $Name: v1_2_1 $ I have flexbackup configured like this : $type =3D 'tar'; $set{'backup'} =3D "/home/valerie /home/valerie /home/fabien /home/didier= =20 /home/christophe/ /home/marilene /home/clarisse/ /home/david=20 /home/william /home/guillemette /home/samba /home/egroupware=20 /mnt/backup/diamant /mnt/backup/mysql /var/spool/mail /etc /var/www "; $prune{'/'} =3D "tmp proc"; $compress =3D 'gzip'; # one of false/gzip/bzip2/lzop/zip/compress/hardwar= e $compr_level =3D '9'; # compression level (1-9) (for gzip/bzip2/lzop/zip) $buffer =3D 'buffer'; # one of false/buffer/mbuffer $buffer_megs =3D '10'; # buffer memory size (in megabytes) $buffer_fill_pct =3D '75'; # start writing when buffer this percent fu= ll $buffer_pause_usec =3D '100'; # pause after write (tape devices only) $device =3D '/dev/st0'; $blksize =3D '10'; $mt_blksize =3D "0"; $pad_blocks =3D 'true'; $remoteshell =3D 'ssh'; # command for remote shell (rsh/ssh/ssh2) $remoteuser =3D ''; # if non-null, secondary username for remote shel= ls $label =3D 'true'; # somehow store identifying label in archive? $verbose =3D 'true'; # echo each file? $sparse =3D 'true'; # handle sparse files? $indexes =3D 'true'; # false to turn off all table-of-contents support $staticfiles =3D 'false'; $atime_preserve =3D 'false'; $traverse_fs =3D 'false'; $exclude_expr[0] =3D '.*/[Cc]ache/.*'; $exclude_expr[1] =3D '.*~$'; $erase_tape_set_level_zero =3D 'true'; ### by default $erase_rewind_only =3D 'FALSE'; $erase_rewind_only =3D 'true'; $logdir =3D '/var/log/flexbackup'; # directory for log files $comp_log =3D 'FALSE'; # By default GZIP - compress log?=20 false/gzip/bzip2/lzop/compress/zip $staticlogs =3D 'true'; # By default FALSE static log=20 filenames w/ no date stamp $prefix =3D ''; # log files will start with this pre= fix $tmpdir =3D '/tmp'; # used for temporary refdate files, = etc $stampdir =3D '/var/lib/flexbackup'; # directory for backup timestamps $index =3D '/var/lib/flexbackup/index'; # DB filename for tape indexes $keyfile =3D '00-index-key'; # filename for keyfile if archiving=20 to dir $sprefix =3D ''; # stamp files will start with this p= refix ... $tar_echo_record_num =3D 'false'; ... ------------------------------------------ And my backup seem to be ok : |----------------------------- | Doing level 0 backup of set all using tar | All sets =3D backup (1 tapes) | Retensioning tape... | Rewinding & erasing tape... | Creating index key 200512022116 | Backup set "backup" (/home/valerie /home/fabien /home/didier=20 /home/christophe/ /home/marilene /home/clarisse/ /home/david=20 /home/william /home/guillemette /home/samba /home/egroupware=20 /mnt/backup/diamant /mnt/backup/mysql /var/spool/mail /etc /var/www) | Tape #0 |------------------------------------------------------------ At block 0. |------------------------------------------------------------ | File number 1, tape index 200512022116 |----------------------------- | File number 1, tape index 200512022116 | Backup of: /home/valerie | Date of this level 0 backup: Fri Dec 02 21:17:11 2005 | Date of last level 0 backup: the epoch |------------------------------------------------------------ | cd "/home/valerie" && find . -depth -xdev ! -type s ! -regex \ | ".*/[Cc]ache/.*" ! -regex ".*~"$ -print0 | tar --create --null \ | --files-from=3D- --ignore-failed-read --same-permissions --no-recursi= on \ | --totals --label "level 0 /home/valerie Fri Dec 02 21:17:11 2005 \ | tar+gzip from opale" --sparse -b 20 --file - | gzip -9 | buffer -m 10= m \ | -p 75 -s 10k -t -u 100 -B -o "/dev/st0" |------------------------------------------------------------ Total bytes written: 5427200 (5,2MiB, 4,1MiB/s) Kilobytes Out 2680 |------------------------------------------------------------ | Backup start: Fri Dec 02 21:17:11 2005 | Backup end: Fri Dec 02 21:17:32 2005 |------------------------------------------------------------ At block 0. [...] | Rewinding... File Contents (tape index 200512022116) ------------------------------ 0 <tape index key> 1 level 0 /home/valerie Fri Dec 02 21:17:11 2005 tar+gzip from server 2 level 0 /home/fabien Fri Dec 02 21:17:42 2005 tar+gzip from server 3 level 0 /home/didier Fri Dec 02 21:18:07 2005 tar+gzip from server 4 level 0 /home/christophe Fri Dec 02 21:22:27 2005 tar+gzip from serv= er 5 level 0 /home/marilene Fri Dec 02 21:35:19 2005 tar+gzip from server 6 level 0 /home/clarisse Fri Dec 02 21:35:41 2005 tar+gzip from server 7 level 0 /home/david Fri Dec 02 21:36:07 2005 tar+gzip from server 8 level 0 /home/william Fri Dec 02 21:36:34 2005 tar+gzip from server 9 level 0 /home/guillemette Fri Dec 02 21:38:29 2005 tar+gzip from ser= ver 10 level 0 /home/samba Fri Dec 02 22:11:02 2005 tar+gzip from server 11 level 0 /home/egroupware Sat Dec 03 05:20:08 2005 tar+gzip from serv= er 12 level 0 /mnt/backup/diamant Sat Dec 03 05:20:46 2005 tar+gzip from=20 server 13 level 0 /mnt/backup/mysql Sat Dec 03 06:47:53 2005 tar+gzip from ser= ver 14 level 0 /var/spool/mail Sat Dec 03 06:48:36 2005 tar+gzip from serve= r 15 level 0 /etc Sat Dec 03 06:56:47 2005 tar+gzip from server 16 level 0 /var/www Sat Dec 03 06:58:01 2005 tar+gzip from server ------------------------------------------ My SCSI Card is a : 0000:02:0b.0 SCSI storage controller: Adaptec AIC-7892A U160/m (rev 02) My /dev/st0 is a : Sony DDS SDT 11000 (DAT) ------------------------------------------ mt -f /dev/st0 status : drive type =3D Generic SCSI-2 tape drive status =3D 637534720 sense key error =3D 0 residue count =3D 0 file number =3D 0 block number =3D 0 Tape block size 512 bytes. Density code 0x26 (unknown). Soft error count since last status=3D0 General status bits on (41010000): BOT ONLINE IM_REP_EN ---------------------------------------------------- Thanks a lot in advance for your Help Philippe |