Veritas-bu

[Veritas-bu] Moving tapes from one media server to another

2006-04-03 12:06:02
Subject: [Veritas-bu] Moving tapes from one media server to another
From: Mark.Donaldson AT cexp DOT com (Mark.Donaldson AT cexp DOT com)
Date: Mon, 3 Apr 2006 10:06:02 -0600
Script:

#!/bin/ksh

PATH=$PATH:/usr/openv/netbackup/bin/admincmd
if [ $# -ne 2 -o `echo "$1" | cut -c1` = "-" ]
then
  echo "Usage: `basename $0` from_host to_host"
else
  fromhost=$1
  tohost=$2
  for media in `bpmedialist -mlist -h $fromhost -l | awk '{print $1}'`
  do
    echo "## Moving $media... \c"
    bpmedia -movedb -m $media -oldserver $fromhost -newserver $tohost
    echo "RC=$?"
  done
fi


-----Original Message-----
From: veritas-bu-admin AT mailman.eng.auburn DOT edu [mailto:veritas-bu-admin 
AT mailman.eng.auburn DOT edu]On Behalf Of Hindle, Greg
Sent: Monday, April 03, 2006 7:12 AM
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: [Veritas-bu] Moving tapes from one media server to another


Nb5.0 mp6 Solaris 9 
Does anyone have a script that does this task easily? Also what is the best way 
to handle this? 


Greg 
>>> This e-mail and any attachments are confidential, may contain legal, 
>>> professional or other privileged information, and are intended solely for 
>>> the addressee.  If you are not the intended recipient, do not use the 
>>> information in this e-mail in any way, delete this e-mail and notify the 
>>> sender. CEG-IP1