cancel
Showing results for 
Search instead for 
Did you mean: 

How to expire MSDP backup images

billvel
Level 3

Hi Guys,
Good Day.

I am working on Veritas Netbackup 7.7.3.
How to expire MSDP backup images: Policy type: "VMware" and enabled "Use Accelerator" feature Schedule Type "Everyday full backup"
scenario: when some of HOST MSDP backup images were no longer required for certain dates

1. Command or GUI to Display backup images available for this disk (Ex: Media ID "@aaaab")
2. Command or GUI to Display date expiration on a disk image (Ex: Media ID "@aaaab")
3. Command or GUI to expire particular client_name in the Media ID (Ex: Media ID "@aaaab"

Thank you for your assistance in this matter.

Regards,
Billvel.

5 REPLIES 5

quebek
Moderator
Moderator
   VIP    Certified

Hello

Did you try bpexpdate - the normal command used to expire backup images...?? as it does not really matter from what media you do expire backup image - expiration is expiration thats all...

Please read from Admin guide for NBU commands about this one: NetBackup Commands Reference Guide 

http://www.veritas.com/docs/000108088

all available here https://sort.veritas.com/documents/doc_details/nbu/7.7.3/Windows%20and%20UNIX/ProductGuides/

Nicolai
Moderator
Moderator
Partner    VIP   

The command you are looking for is bpimmedia.

With the right combo of -policy -sl , -t & -dp you should be able to specify both disk pool , vmware policy type and schedule used. 

Sorry - No way to specify if "use accelerator" is check marked in the policy or not using bpimmedia

Hi,

Thanks for your update. i triyed bpexpdate it desen't hep, could you please share me the exact syntax for the follwoing:

1. Command or to Display backup images available for this disk (Ex: Media ID "@aaaab")
2. Command or to Display date expiration on a disk image (Ex: Media ID "@aaaab")
3. Command or to expire particular client_name in the Media ID (Ex: Media ID "@aaaab"

Regards,
Billvel.

 

Systems_Team
Moderator
Moderator
   VIP   

Hi Billvel,

The commands that Quebek and Nicolai gave will help you do what you want, but if you are having trouble with those (Note: Sometimes it can can a bit of trial and error to get the parameters and switches correct), have you tried using the Catlog from within the GUI?

  1. You can sort by the Media ID column (or search by Media ID) which will give you the images available for the "@aaaab" ID of your MSDP pool.  You'll also see it has a column for Policy and Schedule.
  2. Although through the Catlog view in the GUI you do not see the Expiration Date, if you don't have too many to do you can run the Images On Disk Report (From the GUI: Master Server->NetBackup Management->Reports-Disk Reports->Images on Disk).  There is a column that will show you the Expiration Date.
  3. Once you have found the images you want to expire, it is simple as highlighting them and then right-click and select "Expire".

Hope this helps,

Steve

Marianne
Level 6
Partner    VIP    Accredited Certified

We are trying to give you the base commands so that you can look them up and figure out for yourself which options to use in order to accomplish what you need. 
bpimmedia command usage: https://www.veritas.com/support/en_US/article.000118598

1. There is no way to list images for disk-type media-id (e.g. "@aaaab"). 
For MSDP, you can list images for the disk type (-dt disk_type)  or disk pool name (-dp disk_pool_name
Herewith a forum discussion where you can see what the output looks like. You will notice that image-id's as well as expiration dates can be seen:
https://vox.veritas.com/t5/NetBackup/bpimmedia-output/td-p/300207

2. See above.

3. You cannot expire images based on client-name. You need to extract image-id's from bpimmedia and then expire the image-id's. 

If all images for specific client need to be expired, easiest is to list images for specific client with bpimagelist (with start and end dates to catch all images).