documentation/Reference/Configuration/Environments Namespace/Environment Provisioner Setting/Redgate Clone Provisioner.md
{% include deprecation.html %}
Note: Redgate Clone has been removed from Flyway Desktop and is deprecated in Flyway Engine. This feature will be removed in a future version.
This provisioner allows for the provisioning and re-provisioning of databases using Redgate Clone.
Common use cases of the Redgate Clone provisioner are:
Prerequisites:
To configure this provisioner:
clone${clone.url}. This will derive the JDBC URL from Redgate Clone.
; so additional properties can be appended)url - (Required) The Redgate Clone server URLdataImage - (Required) The data image to use for creating the containerdataContainer - (Required) The data container to use for the database clone - this needs to be uniquedataContainerLifetime - (Required) The lifetime of the data container. This takes the form of a number optionally followed by a time unit, s, m, h, or d. If no time unit is specified, seconds are assumed. 0 can be used to set the lifetime to be unlimited.authenticationToken - (Required) The token required for authenticating with the Redgate Clone Server. It is recommended to store this as a secret and resolve it using an appropriate property resolver.operationTimeout - (Optional) The amount of time to wait for Redgate Clone operations to complete. This takes the form of a number optionally followed by a time unit, s, m, h, or d. If no time unit is specified, seconds are assumed. The default value is 5m.This can be used in the TOML configuration like this:
[environments.development]
url = "${clone.url}databaseName=my-database"
provisioner = "clone"
[environments.development.resolvers.clone]
url = "https://clone.red-gate.com:1234/cloning-api"
dataImage = "mssql-empty"
dataContainer = "MyContainer"
dataContainerLifetime = "1h"
authenticationToken = "${localSecret.RedgateCloneToken}"
If you want to manage the lifetime of the data containers, it is also possible to not set the provisioner parameter, and just use this [as a property resolver](Configuration/Environments Namespace/Environment Resolvers Namespace/Redgate Clone Resolver).