The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 and shell scripting languages 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 rsendhilmani Shell Programming and Scripting 2 03-17-2009 01:17 AM
Accessing variables of one shell script in another shell script looza Shell Programming and Scripting 2 06-30-2008 07:13 PM
To call/execute a shell script from a shell script konark UNIX for Dummies Questions & Answers 1 10-26-2007 05:16 PM
How to pass a parameter from one Shell-script to another Shell-script subodhbansal Shell Programming and Scripting 2 09-22-2007 05:19 AM
Have a shell script call another shell script and exit heprox Shell Programming and Scripting 2 11-20-2006 08:17 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-07-2008
amitpansuria amitpansuria is offline
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 05:45 AM.. Reason: more clearance of problem statement
  #2 (permalink)  
Old 10-07-2008
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2005
Location: Switzerland - GE
Posts: 1,568
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...
  #3 (permalink)  
Old 10-08-2008
amitpansuria amitpansuria is offline
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-08-2008 at 02:50 AM.. Reason: to give more input
  #4 (permalink)  
Old 10-08-2008
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2005
Location: Switzerland - GE
Posts: 1,568
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...
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:29 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0