The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Accessing variables of one shell script in another shell script looza Shell Programming and Scripting 2 06-30-2008 04:13 PM
To call/execute a shell script from a shell script konark UNIX for Dummies Questions & Answers 1 10-26-2007 02:16 PM
How to pass a parameter from one Shell-script to another Shell-script subodhbansal Shell Programming and Scripting 2 09-22-2007 02:19 AM
Accessing variables of one shell script in another shell script rsendhilmani Shell Programming and Scripting 1 04-30-2007 05:43 AM
Have a shell script call another shell script and exit heprox Shell Programming and Scripting 2 11-20-2006 05:17 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 10-07-2008
Registered User
 

Join Date: Jul 2007
Posts: 91
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

Last edited by amitpansuria; 10-07-2008 at 02:45 AM. Reason: more clearance of problem statement
Reply With Quote
Forum Sponsor
  #2  
Old 10-07-2008
vbe vbe is offline
Moderator
 

Join Date: Sep 2005
Location: Switzerland
Posts: 748
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...
Reply With Quote
  #3  
Old 10-07-2008
Registered User
 

Join Date: Jul 2007
Posts: 91
Regarding backup

Quote:
Originally Posted by vbe View Post
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

Last edited by amitpansuria; 10-07-2008 at 11:50 PM. Reason: to give more input
Reply With Quote
  #4  
Old 10-08-2008
vbe vbe is offline
Moderator
 

Join Date: Sep 2005
Location: Switzerland
Posts: 748
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...
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:57 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0