- Reference
- Version ยท 6.0.2
- Change Automation Reference
should-snapshot-data
Last updated: November 23, 2026
should-snapshot-data makes table data one of the object types Liquibase includes by default when it takes a snapshot, generates a changelog or compares databases.
Uses
With should-snapshot-data set to true, snapshot, generate-changelog and diff include table data whenever you do not name the object types yourself. Naming them with snapshot-types or diff-types overrides it: --diff-types=data includes data whatever this setting is.
Default: false
To write the data as CSV files instead of inline insert statements, use data-output-directory.
Example: should-snapshot-data
liquibase --should-snapshot-data=true generate-changelog --changelog-file=dbchangelog.xml
Syntax
You can set this parameter in the following ways:
Option | Syntax |
Liquibase properties file (defaults file) |
|
Global flow file argument |
|
Global CLI parameter |
|
JVM system property (JAVA_OPTS environment variable) |
|
Liquibase environment variable |
|