cloneDatabase
Last updated: January 27, 2026
Creates a clone of an existing database in Snowflake with support for Time Travel, transient clones, and comprehensive configuration options.
Note: This change type does not support database inspection features (snapshot, diff, diff-changelog, and generate-changelog commands).
Available attributes
Attribute | Type | Description | Required |
|---|---|---|---|
| String | Name of the new cloned database | Yes |
| String | Name of the source database to clone | Yes |
| Boolean | Replace the database if it already exists using | No |
| Boolean | Only create the database if it doesn't exist using | No |
| Boolean | Create a transient cloned database | No |
| Integer | Days to retain data for Time Travel (0-90) | No |
| Integer | Maximum days Time Travel retention can be extended | No |
| String | Default collation for objects in the database | No |
| String | Storage format policy ( | No |
| String | External volume for Iceberg tables | No |
| String | Catalog integration for Iceberg tables | No |
| Boolean | Replace invalid UTF-8 characters in Iceberg tables | No |
| Boolean | Ignore tables with insufficient data retention for Time Travel | No |
| Boolean | Ignore hybrid tables during cloning | No |
| String | Comment describing the database | No |
| Nested | Time travel options for cloning from historical state | No |
| Nested | Key-value pairs mapping contact purposes to contact names | No |
* replaceIfExists and ifNotExists are mutually exclusive
timeTravelClause attributes
Attribute | Type | Description | Required |
|---|---|---|---|
| String | Type of Time Travel ( | Yes |
| String | Timestamp for AT/BEFORE clause (supports SQL expressions)* | No |
| String | Offset in seconds for Time Travel (e.g., | No |
| String | Query ID or statement reference for Time Travel* | No |
* Exactly one of timestamp, offset, or statement must be specified
contacts attributes
Attribute | Type | Description | Required |
|---|---|---|---|
| String | Contact purpose: | Yes |
| String | Name of existing contact object (simple, schema, or fully qualified) | Yes |