Forum Discussion

Anil_B's avatar
Anil_B
Level 4
10 years ago

Importing

A simple query!!

We can't import the expired images if the media is overwrited, If yes let me know how to check(Cmnd line & GUI) the media is overwrite or not.

thanks

  • vmquery -m <media-id>

    Check the Assign Time field.
    If this date/time is newer than the backup that you want to import, the tape is overwritten.
    If this field is empty, the tape is not yet overwritten.

    More info can be seen with this command:

    nbemmcmd -listmedia -mediaid <media-id>

4 Replies

  • vmquery -m <media-id>

    Check the Assign Time field.
    If this date/time is newer than the backup that you want to import, the tape is overwritten.
    If this field is empty, the tape is not yet overwritten.

    More info can be seen with this command:

    nbemmcmd -listmedia -mediaid <media-id>

  • The last write might be a clue but even that's not foolproof as it might have been an append and not a overwrite.

    Ah, assigned is a better field to check.  Point to Marianne.

  • Half a point ... ;0)

    There is a possibilty, though unlikely, that a tape is given a new assign time (selected for a backup or duplication) but that job failed without anything being written, in which case the 'old' data would still be there.

    The only way to tell, is to read the tape back - though I agree that Mariannes suggestion is 99% likely to be accurate.