This script should help (for 6.5.*):

#!/bin/sh

usage() {
    echo "usage: `basename $0` storage_unit_path"
}

if [ $# -ne 1 ]
then
    usage
    exit 1
fi

cd $1
for BACKUP_ID in `ls -1 *.info *.img | sed -e 's/_C.*$//' | sort | uniq`; do
    copies=`bpimagelist -backupid $BACKUP_ID  2>/dev/null | awk '/^IMAGE/
{print $21}'`
    if [ -z "$copies" ]
    then
        echo $BACKUP_ID not found in catalog
    else
        if [ $copies -eq 1 ]
        then
            echo "$BACKUP_ID waiting (copies=$copies)"
        else
            echo "$BACKUP_ID destaged (copies=$copies)"
        fi
    fi
done


It's self-documenting :-)

   .../Ed

On Mon, Jan 26, 2009 at 3:24 PM, Matthew Stier <matthew.st...@us.fujitsu.com
> wrote:

> Background: Solaris 10 master/media server with several filesystems mounted
> from SAN to act as DSSU's.  Backups are done using cron initiated backup
> scripts, which call the applicable policy. Whe the policy is completed,
> another script dumps each DSSU to tape.
>
> Issue: Need to rebuild the filesystems hosting the DSSU's.  Since these
> tapes are already backed up to tape, what do I need to do to purge all the
> images?
>


Ed Wilts, RHCE, BCFP, BCSD, SCSP, SCSE
ewi...@ewilts.org
_______________________________________________
Veritas-bu maillist  -  Veritas-bu@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu

Reply via email to