regarding shell script

helo I m porting my code from HP ux to linux RHEL 4

In one of my shell script for taking backup and to List archive volume information

I m using folliowing code

if [ "$MODE" != "DVD" ]
then
/etc/frecover -V $BKPINCLUDE -v -f $DEVICE

  else
     $DD if=$DEVICE bs=16k | $GUNZIP | \\
     /etc/frecover -V $BKPINCLUDE -v -f \-
     

     umount_dvd

where

MODE=TPH
DEVICE=/tmp/amit/pudslx04.sb.10-07-08.1934PDT.gz
BKPINCLUDE=/tmp/bkp_include.vi

now can u tell me in linux what i use instread of frecover.

Amit

tar, cpio, dsm if you have it(IBM Tivoli TSM...), or pax...
Is it a server you are talking of? in which case you should have a true backup software you can rely on...

Hello,
Thanks for your reply.

Now I want to list volume information using ( Display the creation information of the backup media) using tar

In my HP ux system when I say Display List voulme information using frecover it give me following information

Listing tape volume information on /dev/rmt/0m

Magic Field:FBACKUP_LABEL
Machine Identification:9000/785
System Identification:HP-UX
Release Identification:B.11.11
Node Identification:c8004
User Identification:root
Record size:16384
Time:Wed oct 8 12:11:21 2008
Media Used: 0
volume Number: 1
Checkpoint frequency:256
Fast Search mark Frequency:200
Index Size:423764
Backup Identification Tag: 7160 1223493081
Language:

Now I want to display same above information in Linux(RHEL 4). How do I do it.?
or in linux is there any utility like frecover?

Regards,
Amit

Thats why I mentionned the usage of a true backup software...
fbackup/frecover included with HPUX has no equivalent command under unix excep perhaps AIX's mksysb...
fbackup creates a header on each tape for this information, includung how many times the tape has been used... and also a catalogue... and has include/exclude option file etc...

You would have to write a script to put the info you want in a file with the catalogue of what you are going to archive then you have the choice of saving the lot to tape, or to save the first part to tape using a norewind device and append the backup after...