Skip to content

dx_rewind_db

arunskurian edited this page Jan 28, 2021 · 1 revision

SYNOPSIS

  dx_rewind_vdb.py 	  (--vdb <name> [--timestamp_type <type>] \
					  [--timestamp <timepoint_semantic>])
					  [--bookmark <type> --engine <identifier>] \
					  [--poll <n> --config <path_to_file> --single_thread <bool>] \
					  [--logdir <path_to_file>]
  
  dx_refresh_vdb.py -h | --help | -v | --version 

DESCRIPTION

Rewinds / Rolls back a VDB to a specific timestamp or a snapshot

ARGUMENTS

  • --vdbRequired
    Name of the VDB to refresh

  • --timestamp_typeRequired if specifying a SNAPSHOT or TIME
    The type of timestamp you are specifying. Acceptable Values: TIME, SNAPSHOT. default: SNAPSHOT

  • --timestamp_Required if timestamp_type is used
    The Delphix semantic for the point in time on the source to which you want to rewind your VDB. Formats: latest point in time or snapshot: LATEST point in time: "YYYY-MM-DD HH24:MI:SS" snapshot name: "@YYYY-MM-DDTHH24:MI:SS.ZZZ" snapshot time from GUI: "YYYY-MM-DD HH24:MI" [default: LATEST]

COMMON ARGUMENTS

  • -engineOptional
    Specify name of the Delphix Engine from dxtools.conf file. To run on all engines, provide 'all' as engine name.

  • --config Optional
    Location of the configuration file.
    A config file search order is as follows:
    config parameter
    dxtools.conf inside /conf/ folder

  • --logdir Optional
    Location of the log file.
    A log file search order is as follows:
    Logdir parameter which includes the filename
    File with the same name as the script under /conf/ folder

  • --single_thread Optional
    Defines whether the operations on an engine is run synchronously or asynchronously.
    Default is False

  • --poll Optional
    Defines the # of seconds to sleep before polling for the status of a job.

EXAMPLES

Rewinds a vdb named "testdb" on the default engine to the latest snapshot

python3 dx_rewind_vdb.py --vdb testdb

Rewind a vdb named "testdb" on engine "mymask" to a speficic timestamp

python3 dx_rewind_vdb.py --vdb testdb --engine mymask --timestamp_type time  --timestamp 2016-11-15T11:30:17.857Z
Clone this wiki locally