Forum Discussion

davei's avatar
davei
Level 4
6 years ago

BEMCLI adjust media expiration

Can anyone tell me if there is a way, in 2019, of using BEMCLI to adjust the media expiration date of some B2D media?

We are adjusting our retention strategy and I have literally thousands of B2D file stored on a DXi that need their expiration date adjusting prior to DLM process.

Obviously right-click method is not appropriate, when i can powershell through the lot.

Any tips?

Thanks.

7 Replies

  • There is no current method thru BEMCLI to change disk media expiration.

     

     

     

  • If you are concerned that some backup sets might get reclaimed before you can adjust their expiry then you can temporarily disable all DLM activity using the info in this article

    https://www.veritas.com/support/en_US/article.000021156

     

    Also inside the Backup Exec console you can multi-select the backup sets (using combinations of CTRL or SHIFT with mouse clicks) and then right click and choose Expiration to change the dates across multiple sets. This means you could select blocks of sets that you want to have the same expiration and set them all in one go. Note: You can sort the lists of backup sets by server name, dates of jobs etc should be possible to make it easier to select a lot in one go to have the same expiration.

     

     

     

    • davei's avatar
      davei
      Level 4

      Disappointing about the lack of automation\programmability.  Would think this kind of operation (single operation against thousands or tens of thousands of objects) would be prime for scripting.  On a basic level it's all just SQL in BEDB right?  The APIs are there as the console uses them?

      But thank you Colin i will pursue your suggestion of manipulating the console to reduce the pain a little.

      Thanks.

    • davei's avatar
      davei
      Level 4

      Unfortunately the Storage tab \ Backup Sets page does not show any details of the jobs that created the backup sets, so I am unable to identify which backup set belongs, for example, to a daily, weekly or monthly job.

      I can see server name, storage, Backup time, current expiration etc. - but without being able to identify which job created the media, I don't stand a chance.

      Any ideas or other ways of looking at this?

      Thanks.

       

      • Colin_Weaver's avatar
        Colin_Weaver
        Moderator

        Hmm I can't think of a way to get around needing to know which are weekly, month daily. You will have to base any changes  on the dates.

        Just for info though - if BEMCLI did provide a way to change the expiration date, then scripting exactly which sets to change would also be very difficult.