how to change change retention on media existing
I have netbackup 7.7.2 running on solaris. I want to change retention on media existing. My question is how can I change the media existing from 2 weeks retention to 1 month retention. Anyone has script, please share it to me, thank you.
Tom
I keep these type of commands in a file, so I can find them again -
This find images for clients (x) in list, with backups from (d) to (e) with Schedule (sl), cuts the image and then uses these image values ($i) and recalculates copy 2 to retention 13
for x in `ls -1d /usr/openv/netbackup/db/images/client*`
do
for i in `bpimagelist -idonly -d '01/01/2017' -e '03/23/2017' -client $x -sl Weekly_Full_Backup | cut -d " " -f10`
do
echo "Changing Backup ID: "$i at `date +%Y%m%d.%H%M`
/usr/openv/netbackup/bin/admincmd/bpexpdate -recalculate -backupid $i -copy 2 -ret 13 -force
done
donep.s .I just realized, I did not update my dates in the last post - you cannot end date before start date, lol