Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Backups !! - Scripting Query

Status
Not open for further replies.

Roomer

Technical User
Oct 1, 2001
100
GB
I have scripted some backups which run a 'savevg' command for a specified volume group. These are working fine.

I now want to perform the same script on an alternative system, but unlike my others, this has three volume groups other than rootvg.

Can anybody advise me how to script three different savevg's saving to the same tape one after the other.....

(I apologise if this is a really simple answer !)

Doh !
 
you could do something like this

for vg in firstvg secondvg thirdvg
do
/usr/bin/savevg -f'/dev/rmt0' '-i' $vg
done

You should select the norewind rmt device. see below

Tape Drive Special File Characteristics

Special File Name Rewind-on-Close Retension-on-Open Bytes per Inch
/dev/rmt* Yes No Density setting #1
/dev/rmt*.1 No No Density setting #1
/dev/rmt*.2 Yes Yes Density setting #1
/dev/rmt*.3 No Yes Density setting #1
/dev/rmt*.4 Yes No Density setting #2
/dev/rmt*.5 No No Density setting #2
/dev/rmt*.6 Yes Yes Density setting #2
/dev/rmt*.7 No Yes Density setting #2

hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top