What started as a simple safety net is now a deeply integrated DevOps CLI:
- Modular
- Self-documenting
- Format-aware
- Homebrew-packaged
Andāthanks to recent updatesāeven easier for everyone to use
ā”ļø Why This Tool Exists
I was tired of backup scripts that were either too basic, too fragile, or never quite āsafe.ā
- I wanted real dryrun support
- I wanted declarative config ā in HCL, YAML, or JSON
- I wanted proper summaries, Git tagging, and backups I could trust
So, I built a Bash CLI that covers all thisāand keeps evolving.
š Whatās New In This Release?
- Output Directory Control Specify exactly where your backups are stored with --output-dir:
repository_backup --target ./my_project --output-dir ./my_backups
No more rigid folder structureāuse any path, and organize backups however you like.
- Built-in Interactive Wizard Run the CLI without arguments to launch a context-aware wizard:
repository_backup
The wizard walks you through backup, restore, list, prune, and summary actionsāadapting prompts for clarity, so you canāt get lost.
š”ļø Quickstart
Install via Homebrew:
brew tap raymonepping/repository-backup-cli
brew install raymonepping/repository-backup-cli/repository-backup-cli
Create your first backup:
repository_backup --target ./your_project_folder
Or, for full guidance, just type:
repository_backup
Restore the latest backup (with dryrun safety):
repository_backup --target ./your_project_folder --restore-latest --dryrun
Edit what gets backed up:
The CLI auto-generates a .backup.hcl, .backup.yaml, or .backup.jsonābased on what you have installed (hclq, yq, etc). Just tweak it to your needs.
View summary logs:
Clean Markdown summaries are auto-written to
./backups/catalogs//backup_summary.md
š§ What Makes This CLI Different
Declarative config: HCL/YAML/JSONāfits your stack, not the other way around
Full dryrun support: see exactly what will happen, every time
Safe pruning: manage retention, keep your backup folders clean
Git-aware: tags every backup, supports emergency restores from latest tag
MD5 integrity checks: verifies your restoresāso youāre never guessing
š” Example Use Cases
Keep your projects (or your CLI scripts) safe, versioned, and recoverable
Back up and restore with confidenceāno more ārestore rouletteā
Use the wizard for foolproof operation, or stick to CLI flags for automation
š ļø Under the Hood
Modular design with smart bootstrapping: creates config/folders on the fly
Markdown summaries for every backup
One-liner DevOps workflows: backup, commit, and version in a single go
šŗ Production-Ready & Open
Install via Homebrew, or explore/fork/contribute on GitHub:
github.com/raymonepping/homebrew-repository-backup-cli
Backups shouldnāt be risky. With repository_backup, they arenāt. Try the wizard or CLI today and automate your peace of mind!
Top comments (0)