Forum Discussion

DPO's avatar
DPO
Level 6
13 years ago
Solved

media id's and backup id's of a specific client are needed

Hi,

I had to extend the expiry date of old backups. Backup happens to a disk. Can someone give me a full command (with syntax) to display the backup id's and media id's of a given client. I use disk storage. It seems bpmedialist won't show disk storage unit media id's

 

  • You only need the backup ID, not the media ID.  To extend the expiration date of a backup image on disk, use the "bpexpdate" command in this format:

    bpexpdate -backupid backup_id -d date

    So long as the images have not been deleted by the Image Cleanup job, the data should remain cataloged and remain on the disk until the date you specify above.

  • You need to add some date / times in - it default (I believe to the last 24 hours) so try:

    bpimagelist -client <client_name> -hoursago 9999999

    Similar with the bpimmedia ... add the -d and -e for start / end dates as covered earlier in the thread

  • Have you tried to look into your catalog, i.e

    from your admin console click on catalog, on right hand side you will have options to search criteria for specific client , policies etc  this will help you to get list of backup ids and the media IDs

     

     

  • Thanks Mark and Venkatesh k.

    I was aware of the GUI output, but was thinking if I can get it in command line.

     

    Regards,

    RAJ

  • Are you able to run any other commands like bppllist, bpplclient etc  for that client ?  

    Makesure the client name you are using in the command is same as it is configured in netbackup.

    it happens many times that we miss type the client name as many a times clients name starts with similar names :)

     

    use bpplclient command to get list of all the clients (ref comand guide for exaclt syntax :) )

     

     

  • Hi Raj,

    Make sure you type the name as you have specified in the policy, if you have added the client as FQDN and trying just the short name it won't work. Below is the example, here I tried just with the hostname and it didn't work but with the FQDN it works fine because in my environment it is added that way.

    C:\Users\sdas>bpimmedia -disk -client linux
    no entity was found

    C:\Users\sdas>bpimmedia -disk -client linux.eur.xl
    IMAGE Linux.eur.xl .............................

    For the other command bpimagelist -client <client_name>

    You have to specify the time frame and make sure to use the right client name the way it is added in NBU. Examples below:

    C:\Users\TEMP>bpimagelist -client linux.eur.xl
    no entity was found

    C:\Users\TEMP>bpimagelist -client linux.eur.xl -d 09/10/2012 -e 09/12/2012
    IMAGE linux.eur.xl 0 0 8 linux.eur.xl_1347415291 ....................

     

  • Shouldn't be an issue using the command line but, as i said, make sure you add the date range or hoursago switches