CLI reference/Server and administration/admin
clavis admin verify-backup
Check that a backup can be decrypted and read, without touching the live database
sh
clavis admin verify-backup FILE [flags]Check that a backup file can be decrypted with this server's root key and read. For SQLite it opens a temporary copy, runs SQLite's integrity check and counts organizations, projects, environments and secrets, so an empty, truncated or damaged backup is caught. For Postgres it checks that the dump is complete. The live database and the backup file are not changed.
Run it after each backup, or on a schedule, so you find out that a backup is unusable before you need it.
Examples
sh
clavis admin verify-backup clavis-backup.encIn a script
sh
clavis admin verify-backup clavis-backup.enc --jsonFlags
--config string- configuration file
Global flags
These work with every command.
--debug- enable debug logging
--env string- environment slug
--json- output machine-readable JSON
--org string- organization slug
--overlay string- tenant/region overlay slug
--path string- folder path (default /)
--project string- project slug
--server string- Clavis server URL (default: from .clavis.yaml or saved login)
-h, --help- help for any command