Delphix Products

Expand all | Collapse all

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

Jump to Best Answer
  • 1.  Is it possible to change the retention settings of a snapshot to "forever" from the CLI?

    Posted 10-27-2016 06:46:00 PM
    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


  • 2.  RE: Is it possible to change the retention settings of a snapshot to "forever" from the CLI?
    Best Answer

    Posted 10-27-2016 07:12:00 PM
    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