Koozali.org: home of the SME Server

Restoring individual files from tape [again] RESOLVED

Offline gbentley

  • *****
  • 482
  • +0/-0
  • Forum Lurker
    • Earth
Restoring individual files from tape [again] RESOLVED
« on: March 21, 2008, 11:36:32 AM »
Hi All,

I have a desperate request to restore about 100 files from a tape.

My tape restore 'restore_list' is in this format ;

home/e-smith/files/ibays/data/files/07/096/Emails/Emails Received/HG 2008-01-03 to Sealy M&E  tender documents.eml

(ie no leading ./ )

I am restoring using flexbackup using ;

# /usr/bin/flexbackup -extract -flist /home/e-smith/files/ibays/data/files/IT/Restore/restore_list

I am firstly rewinding and positioning the tape with ;

# /bin/mt -f /dev/st0 rewind
# /bin/mt -f /dev/st0 fsf 1

The start of the job looks like this ;

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

root@server Restore]# ./restore_now

flexbackup version 1.2.1 (http://flexbackup.sourceforge.net)
/etc/flexbackup.conf syntax OK

 $keyfile not found in config: default=00-index-key
 $buffer_fill_pct not found in config: default=75
 $buffer_pause_usec not found in config: default=100
|------------------------------------------------------------
| Checking 'buffer' on this machine... Ok
| Checking /bin/sh on this machine... bash1
|------------------------------------------------------------
| Logging output to "flexbackup.extract.200803211027.log"
| Reading from CURRENT TAPE POSITION
|------------------------------------------------------------
SCSI 2 tape drive:
File number=1, block number=0, partition=0.
Tape block size 0 bytes. Density code 0x42 (no translation).
Soft error count since last status=0
General status bits on (81010000):
 EOF ONLINE IM_REP_EN
|------------------------------------------------------------
| Extracting files listed in /home/e-smith/files/ibays/data/files/IT/Restore/restore_list
| buffer -m 20m -p 75 -s 32k -t -u 100 -i "/dev/nst0" | gzip -dq | tar \
|   --extract --files-from /tmp/extract.5298 --totals --same-permissions  \
|   --sparse  -b 64 -B --file -
|------------------------------------------------------------
tar: Skipping to next header
tar: Skipping to next header
tar: Skipping to next header
tar: Skipping to next header
tar: Skipping to next header

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

What happnes is I get one file restored .... then after quite some time an awfull lot of these lines ;

tar: ./home/e-smith/files/ibays/data/files/07/096/Emails/Emails Sent/Sealy 2008-03-11 Comments on M & E Drawings - Photographs.eml: Not found in archive
tar: Error exit delayed from previous errors

I admit its been a while since I did this and might have forgotten something crucial.

Anyone got any tips / advice / flames :)

Thanks !


EDIT: It seems you do actually need the leading ./ in the file list ....

home/e-smith/files/ibays/data/files/07/096/Emails/Emails Received/HG 2008-01-03 to Sealy M&E  tender documents.eml

should be ;

./home/e-smith/files/ibays/data/files/07/096/Emails/Emails Received/HG 2008-01-03 to Sealy M&E  tender documents.eml

Odd, I seem to remember last time I did this it definitley _didnt_ work with it in place!?

Heres my commands for creating a list of files on a tape with the previous days backup on ;

--- snip ---

#!/bin/sh
# Creation Date: 07/09/06 Author: G Bentley
# Purpose: Create a list of files that exist within a previous tape archive

# Remove old list first if one exists
rm -f /home/e-smith/files/ibays/data/files/IT/Restore/tape_list.gz
# Rewind tape
/bin/mt -f /dev/st0 rewind
# Position tape
/bin/mt -f /dev/st0 fsf 1
# Ask Flexbackup for a full list of files in archive
/usr/bin/flexbackup -list > /home/e-smith/files/ibays/data/files/IT/Restore/tape_list
# Compress the file list for easier handling
gzip -q /home/e-smith/files/ibays/data/files/IT/Restore/tape_list
# Rewind the tape again
/bin/mt -f /dev/st0 rewind

--- snip ---




« Last Edit: March 21, 2008, 02:48:20 PM by gbentley »
"If you don't know what you want, you end up with a lot you don't."