Veritas-bu

[Veritas-bu] Archive the unwanted policies

2005-12-15 10:09:21
Subject: [Veritas-bu] Archive the unwanted policies
From: ewilts AT ewilts DOT org (Ed Wilts)
Date: Thu, 15 Dec 2005 09:09:21 -0600
On Wed, Dec 14, 2005 at 10:03:44PM -0800, Chockalingam wrote:
> We are looking for a solution to do archiving of backup policies.
> 
> We have some policies configured and not used recently; we would like to
> clear all those unused policies.
> 
> But before deleting those policies, we would like to archive those (means
> taking backup of policies and delete them).
> 
> Is there any Netbackup command to do this?

Our approach is to run the following script on our Solaris master server daily:

#!/bin/sh

DEST=/usr/openv/snapshot
DATA=`date '+%Y-%m-%d'`.tar.gz
PATH=$PATH:/usr/local/bin

# Keep 30 days of data
find $DEST -name *[0-9].tar.gz -a -mtime +30 -exec rm -f {} \;

(cd /usr/openv/netbackup/db; tar cpf - class) | gzip > $DEST/class-$DATA

This gives us a 30-day online backup of all of our policies.  We can
then delete one if we need to do and not worry too much (we also log all
the policy changes to a separate text file).  Naturally, these snapshots
also get backed up so we can pretty much restore to any point in time
for as long as the retentions allow.

        .../Ed

-- 
Ed Wilts, Mounds View, MN, USA
mailto:ewilts AT ewilts DOT org

<Prev in Thread] Current Thread [Next in Thread>