Forum Discussion

sugarboy's avatar
sugarboy
Level 4
13 years ago

What is the different between Image expiry and delete?

Hi All,

In Netbackup what is the difference between Image expiry and Image delete?

i.e. bpexpdate and nbdelete?

Is there a chance that even after expiry of image it still exists in the database and we should delete it from database using nbdelete?

 

Thanks,

Sagar

  • From the man pages:

    bpexpdate - change expiration date of backups in image catalog and media in media catalog

    nbdelete - remove deleted fragments from disk volumes

    It transpires that bpexpdate actually calls nbdelete:

    Deleting backup images
    http://www.symantec.com/business/support/index?page=content&id=HOWTO36342

    - which states that you can use the -notimmediate option to "prevent[s] bpexpdate from calling the nbdelete command, which deletes the image."

    So, following that through, the bpexpdate commmand sets the expiration of the images & nbdelete does the deletion.

2 Replies

Replies have been turned off for this discussion
  • From the man pages:

    bpexpdate - change expiration date of backups in image catalog and media in media catalog

    nbdelete - remove deleted fragments from disk volumes

    It transpires that bpexpdate actually calls nbdelete:

    Deleting backup images
    http://www.symantec.com/business/support/index?page=content&id=HOWTO36342

    - which states that you can use the -notimmediate option to "prevent[s] bpexpdate from calling the nbdelete command, which deletes the image."

    So, following that through, the bpexpdate commmand sets the expiration of the images & nbdelete does the deletion.

  • bpexpdate with a -d 0 will expire the image and remove it from the catalog immediately (and delete it if it was on disk)

    When it naturally expires it will be removed from the catalog (and disk) during the twice daily cleanup runs

    nbdelete will accelerate the cleanup of images - this is effectively what runs twoce daily

    There are slightly different commands depending on whether the image is on tape or disk but the principle is the same