do-backup-smart
One self-contained binary that backs up your files, driven from your browser.
do-backup-smart is a cross-platform backup application: a single executable that
serves a local browser UI and copies files and directories to backup
destinations. It binds to 127.0.0.1 by default, so nothing is exposed to the
network until you explicitly opt in and authenticate. It is aimed at operators
and self-hosters who want a dependency-free, auditable backup tool they can run
anywhere their platform is supported.
Features
Backup and restore
- One-shot backup from the command line (
dobackup backup) with directory traversal, a size+mtime change heuristic or full SHA-256 comparison (--checksum), optional deletion of extraneous destination files (--delete), and a--dry-runplan mode. - Atomic file copies with SHA-256 integrity verification: a failed or cancelled copy never destroys the previous good destination file.
- Restore from an archive (
dobackup restore) with target-path confinement.
Browser UI and access control
- Local HTTP server with an embedded browser UI and JSON API (
go:embedassets); binds loopback by default, with non-loopback access gated behind an explicitAllowRemotesetting plus authentication. - Session-based login with CSRF protection; operator password set via the
set-passwordcommand and protected with argon2id.
Storage destinations
- Pluggable storage layer (
Storage/Source/Destinationinterfaces) with a local filesystem backend and an SFTP backend.
Packaging and deployment
- Single self-contained executable per platform, built with
CGO_ENABLED=0(pure-Go dependencies only); cross-compiles to linux/amd64, linux/arm64, linux/arm, and windows/amd64. - Zero external runtime: no Node.js, Python, Java, or separate web server to install.
Persistence, logging, and monitoring
- SQLite persistence (enforced WAL mode) with schema migrations and a backup-run
history exposed via the
/api/runsendpoint. - Structured logging with secret redaction, plus
/healthzand/versionendpoints.
Roadmap
- S3-compatible object-storage backend (interface defined, implementation not yet built).
- Chunked authenticated (AEAD) content encryption at rest (planned; package is currently a stub).
- Platform-specific filesystem metadata preservation behind build tags (planned; package is currently a stub).
- Bandwidth limiting, resumable transfer, and retry in the transfer engine (current transfers are a straight atomic copy).
- Scheduled and asynchronous jobs (cron / one-shot scheduling); backups today run synchronously as one-shot operations.
- Full web UI shell and pages (frontend phase).
- End-to-end wiring of the SFTP/S3 backends into the backup and restore flows (the one-shot backup currently runs local-to-local).