Backups from your terminal, proof in your pipeline
Back up before you deploy. Fail the deploy if the backup doesn't restore.
nrc backup covers data sources, policies, backups, restores and restore tests. With --wait, a backup or a restore test becomes a step your CI can trust.
- Status
- success
- Duration
- 1m12s
- Size
- 2.4 GiB
- Status
- Passed
- Duration
- 48.0s
- Restored
- 2.4 GiB
Everything in Backup, one command away
The same Backup API the dashboard uses, with your role and permissions. Leave out an id in a terminal and the CLI lets you pick.
Back up now
Runs a backup outside its schedule and, with --wait, exits when it finishes.
Restore tests as a CI gate
Restore-tests a backup and fails the pipeline unless it passes.
Restore where you need it
Into a new database, a new server or over the original, with a confirmation first.
Download any backup
Streams a backup straight from storage, or into pg_restore with --file -.
Data sources and policies
Add databases, create policies and attach them, pause and resume from the shell.
Restore health
Shows for every data source whether its backups actually restore.
Built for scripts, careful with your data
Secrets stay out of history
Connection strings are read from a file or standard input, never from the command line, so they never reach your shell history. They are stored encrypted and never shown again.
Restores ask first
A restore changes data, so the CLI asks before it starts. Scripts answer with --yes, and without a terminal --yes is required, so nothing restores by accident.
Made for pipelines
Every command takes -o json, yaml or text and --query for JMESPath. Results go to stdout, progress to stderr, and exit codes say what went wrong.
CI tokens with backup scopes
A pipeline gets an organization CI token with only the scopes it needs: backup.write to back up, backup.verify for restore tests. It always expires and you can revoke it any time.
Make "back up first" part of every deploy
Install the CLI, sign in once in the browser, and add a backup and a restore test to your pipeline.
- One binary
- Free plan
- Exit codes
- JSON output