@restoreverify/cli
v0.2.4
Published
Verify every backup. Recover with confidence. Enterprise-grade database point-in-time recovery (PITR) and verification.
Downloads
814
Maintainers
Readme
@restoreverify/cli
Command Line Interface for RestoreVerify.
RestoreVerify is an enterprise-grade, open source database point-in-time recovery (PITR) and verification tool.
This package provides the rv CLI tool to orchestrate backups, restores, and verification drills across PostgreSQL, MySQL, MariaDB, and SQLite from your terminal.
Installation
npm install -g @restoreverify/cli(Alternatively, you can install the unified restoreverify package which includes the CLI and all adapters).
CLI Commands
The RestoreVerify CLI (rv) exposes the following commands:
rv backup
Creates a new base backup.
export DATABASE_URL="mysql://user:pass@localhost:3306/db"
rv backup -d mysql --docker my-mysql-containerrv restore
Restores a database to a specific point in time (for databases that support true PITR).
rv restore -d postgresql -t "2024-01-01T12:00:00Z"rv verify
Runs a restore drill to verify backup integrity by spinning up a sandbox and running queries.
rv verify -d sqlite -q "SELECT count(*) FROM users;"rv validate-backup
Verifies the integrity of backup files and metadata on disk without actually restoring them.
rv validate-backup -d mariadbrv doctor
Verifies environment readiness and dependencies (e.g., checking if pg_basebackup or mysqldump is installed).
rv doctorAuthor
Avisekh Kumar Tewari
GitHub: https://github.com/Avisekh02
