I am planning to take snapshot of database using snapshot command.
Following are the sample maven project details:
Liquibase.Properties:
driver:org.postgresql.Driver
changeLogFile:db.changelog.xml
url: jdbc:postgresql://localhost:***/postgres
username: postgres
password: ***
POM.XML
4.0.0
liquibasepoc
dbcon
0.0.1-SNAPSHOT
org.liquibase
liquibase-maven-plugin
4.3.2
liquibase.properties
false
update
org.postgresql
postgresql
9.4-1202-jdbc41
<dependency><groupId>org.postgresql</groupId><artifactId>postgresql</artifactId><version>42.2.24</version></dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.12</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</pluginManagement>
Maven command
liquibase snapshot --snapshotFormat=json --outputFile=test_snapshot.json
error:
Errors:
Unexpected value snapshot: parameters must start with a ‘–’