cancel
Showing results for 
Search instead for 
Did you mean: 

Manual delete backup sets from disk

christoz
Level 2

NetBackup 6.0MP4 - Windows:

How could i manually delete backup images from disk storage units and catalog even when the backups are not expired?

 

1 ACCEPTED SOLUTION

Accepted Solutions

Rakesh_Khandelw
Level 6

You can use bpimagelist command to find the backup Id/image name or media id for a given backup id/image.

 

 

USAGE: bpimagelist [-media] [-l|-L|-U|-idonly]
           [-d mm/dd/yyyy HH:MM:SS] [-e mm/dd/yyyy HH:MM:SS] [-hoursago hours]
           [-keyword "keyword phrase"]
           [-client client_name] [-server server_name]
           [-backupid backup_id] [-option option_name]
           [-policy policy_name] [-pt policy_type]
           [-rl retention_level]
           [-sl sched_label] [-st sched_type]
           [-M master_server...] [-v]
 

View solution in original post

4 REPLIES 4

Rakesh_Khandelw
Level 6

Best way is to expire the images using bpexpdate command.

 


bpexpdate: -m <media id> -d <mm/dd/yyyy HH:MM:SS | 0 | infinity>
             [-host <name>] [-force] [-nodelete] [-notimmediate]
             [-M <master_server,...,master_server>]

bpexpdate: -backupid <backup id> -d <mm/dd/yyyy HH:MM:SS | 0 | infinity>
             [-client <name>] [-copy <number>] [-force] [-nodelete] [-notimmediate]
             [-M <master_server,...,master_server>]

 

 

 

Omar_Villa
Level 6
Employee

If you delete the images manualy you will create a missmatch DB between mediaDB, imageDB and volDB which in case of migration or catalog DR restore can result in a corruption, use bpexpdate always for this cases.

 

regards

christoz
Level 2

Thanks for your answers!

I know the bpexpdate command.

But how can i determine the media or backup ID of the images to be able to expire them using bpexpdate?

Rakesh_Khandelw
Level 6

You can use bpimagelist command to find the backup Id/image name or media id for a given backup id/image.

 

 

USAGE: bpimagelist [-media] [-l|-L|-U|-idonly]
           [-d mm/dd/yyyy HH:MM:SS] [-e mm/dd/yyyy HH:MM:SS] [-hoursago hours]
           [-keyword "keyword phrase"]
           [-client client_name] [-server server_name]
           [-backupid backup_id] [-option option_name]
           [-policy policy_name] [-pt policy_type]
           [-rl retention_level]
           [-sl sched_label] [-st sched_type]
           [-M master_server...] [-v]