Redgate Clone

Data container revisions

Saving a new revision of your data container

To store changes you have made to a database you can perform a save operation on a data container:

rgclone save data-container dev-uchdwpkp

Saving container....
Data container 'dev-uchdwpkp' saved!
New revision is 'rev.1'

You can also verify that a new revision was created by running the following command:

rgclone get data-containers

NAME          CONTAINER ID  REVISION  STATUS  MESSAGE  ENGINE      CREATED
dev-uchdwpkp  10001         rev.1     2       Running  PostgreSQL  1 minute ago

In this case, the revision changed from rev.0 to rev.1.

Resetting your data container

After making additional changes you can discard them by resetting the data container to the latest revision:

rgclone reset data-container dev-uchdwpkp

Data container 'dev-uchdwpkp' reset!

Selecting a specific revision

You can choose a specific revision in the chain using the load command

rgclone load data-container uchdwpkp --revision=rev.0

Didn't find what you were looking for?