• Task
  • Version · 5.2
  • User guide

Manually create a snapshot and run checks

Last updated: September 29, 2026

Manually take a snapshot of your database and run checks against an offline database URL.

Note: This snapshot is not permanently retained.

Before you begin

  • A database you can take a snapshot of.

  • A Liquibase Secure license.

  • At least one database-scoped check enabled in your checks settings file.

Procedure

1

Create a snapshot

Replace your_snapshot.json with your snapshot file name, and set --snapshot-format to the format you want.
liquibase --output-file=your_snapshot.json snapshot --snapshot-format=json
2

Add the offline snapshot URL to liquibase.properties

Replace your_db_shortname with your database's short name, for example oracle, postgresql, or h2. Also replace your_snapshot.json with your snapshot file's name.
liquibase.command.url: offline:your_db_shortname?snapshot=your_snapshot.json

The type of database is determined from the url property if at least one database-scoped check is enabled. If the database cannot be determined, Liquibase automatically generates SQL to check against using H2.

3

Run the checks run command

liquibase checks run --checks-scope=database

checks run with an offline snapshot URL: example output

Executing Policy Checks against database offline:h2?snapshot=your_snapshot.json Executing all database checks because a valid license key was found! Database objects Validated: Catalog : 1 Schema : 1 To increase details set the --verbose property Checks run against database offline:h2?snapshot=your_snapshot.json: Check Table Column Count (Short names: TableColumnLimit) Table must have an index (Short names: CheckTablesForIndex) Liquibase command 'checks run' was executed successfully.