Veritas-bu

Re: [Veritas-bu] Changing backup retention periods

2010-04-27 11:43:21
Subject: Re: [Veritas-bu] Changing backup retention periods
From: "Ron Jack (Systems Network)" <rjack AT nando DOT com>
To: Mark Glazerman <Mark.Glazerman AT spartech DOT com>
Date: Tue, 27 Apr 2010 11:43:12 -0400
Mark Glazerman wrote:
> We’ve had a request to extend the retention period on backups from one
> of our hosts so that data needed for some troubleshooting won’t expire
> before it can be used.
> 
> Currently the retention period for this data is 1 week.  If I change the
> retention period in the policy that backed up this data to 2 weeks, will
> this change be applied to both future and past backups handled by this
> policy ?
> 
> Essentially I’m trying to work out if this change will be applied
> retro-actively to existing backup images ?
> 

I see others have already mentioned bpexpdate.

An example of one way:

Netbackup - modify retention level on the two most recent weekly full
backups.

#
# find dates of last two fulls. (actually, change already made here.)
#
# bpimagelist -U -client prism -st Full -d 04/01/09 -e 05/15/09 | more
Backed Up         Expires       Files       KB  C  Sched Type   Policy
----------------  ---------- -------- --------  -  ------------ ------------
05/04/2009 20:25  INFINITY    53176 29575993  N  Full Backup  Windows_NT
05/04/2009 20:25  INFINITY          7       19  N  Full Backup Windows_NT
05/04/2009 20:20  INFINITY         11  1351598  N  Full Backup  Windows_NT
05/04/2009 20:15  INFINITY         10  3096215  N  Full Backup  Windows_NT
05/04/2009 20:15  INFINITY       2753   308894  N  Full Backup  Windows_NT
05/04/2009 20:13  INFINITY       9154   900095  N  Full Backup  Windows_NT
04/27/2009 20:11  INFINITY      52294 29103832  N  Full Backup  Windows_NT
04/27/2009 20:11  INFINITY        7       19  N  Full Backup  Windows_NT
04/27/2009 20:11  INFINITY         11  1351598  N  Full Backup  Windows_NT
04/27/2009 20:10  INFINITY         10  3096215  N  Full Backup  Windows_NT
04/27/2009 20:08  INFINITY       2752   308534  N  Full Backup  Windows_NT
04/27/2009 20:00  INFINITY       9154   899992  N  Full Backup  Windows_NT
<snip>

#
# find Weekly_Full images for a day
#
# bpimagelist -policy Windows_NT -d 05/04/09 -e 05/04/09 | grep -i prism
| grep Weekly_Full | awk '{ print $6 }' | more
prism_1241483118
prism_1241483100
prism_1241482818
prism_1241482532
prism_1241482519
prism_1241482420

#
# did any backups spill over to the next day? no.
#
# bpimagelist -policy Windows_NT -d 05/05/09  -e 05/05/09 | grep -i
prism | grep Weekly_Full | awk '{ print $6 }'
#


#
# for each image, change the retention level to infinity (9)
#
# bpexpdate -recalculate -backupid  prism_1241483118 -ret 9
Are you SURE you want to recalculate expiration dates on all images
that meet the following criteria:
  backupid         prism_1241483118
  retention will be changed to 9(infinity)

Continue?(y/n)y


#
# did any incrementals run on this day? no.
#
# bpimagelist -policy Windows_NT -d 05/04/09 -e 05/04/09 | grep -i prism
| grep  Daily_Incr | more
#


#
# list tapes used for that day. we know they are fulls.
#
# bpimmedia -client prism -d 05/04/09 -e 05/04/09 | cut -d" " -f9 |
sort -nr | uniq | /usr/xpg4/bin/grep -E [A-Z]+
QXX888
QXX878
QXX857
_______________________________________________
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu