GitBack v0.5.2
This release improves unattended backup workflows and makes credential management more flexible while including internal cleanup and reliability improvements.
✨ Highlights
New run command
GitBack now includes a unified run command for unattended backups.
The command performs the complete backup workflow in a single invocation:
- Discover repositories and gists
- Synchronize mirrors
- Create a snapshot
The entire workflow executes under a single process lock, making it the recommended entry point for scheduled backups via cron or systemd while retaining the existing standalone commands for manual use and debugging.
GitHub token via environment variable
GitBack now supports reading the GitHub Personal Access Token from the GITBACK_TOKEN environment variable.
When set, the environment variable takes precedence over the stored token file, making it easy to integrate GitBack with:
- Systemd services
- CI/CD pipelines
- Secret management tools
Existing token file support remains unchanged for backwards compatibility.
🔧 Improvements
- Removed duplicate
healthcommand from help menu. - Updated initialization to use more restrictive file permissions for improved security.
- Refactored command execution into shared workflow helpers, reducing duplicated runtime initialization, locking, and logging logic.
Upgrade Notes
No configuration changes are required.
Users who wish to avoid storing credentials on disk can now provide their GitHub token through the GITBACK_TOKEN environment variable:
export GITBACK_TOKEN=ghp_your_token_here
gitback runFull Changelog
Full Changelog: v0.5.1...v0.5.2