Forum Discussion

christoz's avatar
christoz
Level 2
17 years ago
Solved

Manual delete backup sets from disk

NetBackup 6.0MP4 - Windows:

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

 

  • 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]
     

  • 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>]

     

     

     

  • 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

  • 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?

  • 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]