Is it possible to change the retention settings of a snapshot to "forever" from the CLI?

  • 0
  • 1
  • Question
  • Updated 2 years ago
  • Answered
Hi,

Is it possible to change the retention settings of a snapshot to "forever" from the CLI? If so, can you please provide an example. It's hard to update within the Capacity Management UI as the screen continuously refreshes.

Thanks,
Meagan
Photo of Meagan Howe

Meagan Howe

  • 220 Points 100 badge 2x thumb

Posted 2 years ago

  • 0
  • 1
Photo of Neal Stack

Neal Stack, Official Rep

  • 2,592 Points 2k badge 2x thumb
Official Response
Hi Meagan,

I think the following might work for you:

$ ssh delphix_admin@nstack503.dcenter.acme.com
nstack503.dcenter > snapshot
nstack503.dcenter snapshot> list display=name,container,latestChangePoint.timestamp database=Vdb1_084NAME                                                           CONTAINER  LATESTCHANGEPOINT.TIMESTAMP
'DB_PROVISION@2016-10-14T08:35:33'/'@2016-10-21T10:30:06.986'  Vdb1_084   2016-10-21T17:30:06.986Z
'DB_PROVISION@2016-10-14T08:35:33'/'@2016-10-22T10:30:01.480'  Vdb1_084   2016-10-22T17:30:01.480Z
'@2016-10-23T10:30:01.230'                                     Vdb1_084   2016-10-23T17:30:01.230Z
'DB_PROVISION@2016-10-14T08:35:33'/'@2016-10-24T10:30:01.286'  Vdb1_084   2016-10-24T17:30:01.286Z
'@2016-10-25T10:30:01.363'                                     Vdb1_084   2016-10-25T17:30:01.363Z
'@2016-10-26T10:30:00.996'                                     Vdb1_084   2016-10-26T17:30:00.996Z
nstack503.dcenter snapshot> select '@2016-10-26T10:30:00.996'
nstack503.dcenter snapshot ''@2016-10-26T10:30:00.996''> update
nstack503.dcenter snapshot ''@2016-10-26T10:30:00.996'' update *> set retention=-1
nstack503.dcenter snapshot ''@2016-10-26T10:30:00.996'' update *> commit

You can use the "display" option to alter the columns displayed and the "database" option to filter the output to a specific database.

If you refresh the capacity screen from the GUI after making this change, you should see the "Forever" box checked.

Thanks,
  Neal