CLI cookbook: how to refresh a VDB from a specific snapshot
These steps will allow you to refresh a VDB from any specific snapshot, not just the most recent one.
Identify the VDB and snapshot that you want to use.
CODEssh admin@<yourengine>delphix > database lsdelphix database > /snapshotdelphix snapshot > list database=<SOURCEOFSNAPSHOT>
Go to the
database
andrefresh.
CODEdelphix > /databasedelphix database > refresh
Now set what type of refresh you are going to do.
CODEdelphix database 'VDB' refresh *> set timeflowPointParameters.type=TimeflowPointSnapshot
Set the snapshot
CODEdelphix database 'VDB' refresh *> set timeflowPointParameters.snapshot=@XXXX-XX-XXTXX:XX:XX.XXXZ
Commit the action.
CODEdelphix database 'VDB' refresh *> commit
You can use tab to complete most actions in the CLI in addition to listing the possibilities that are available when setting parameters.