Intelligent Backup System for Developers
Automatically backup your important files while skipping node_modules, virtual environments, and other build artifacts.
📖 Full documentation: SmartBackup User Guide
Installation (pip / uv / dev), every CLI command and flag, incremental manifests, auto-detect watcher & background daemon, restore & recovery, configuration, and cross-platform troubleshooting — all in one place.
Ever tried to backup your Documents folder only to wait hours because of massive node_modules
folders or Python virtual environments?
SmartBackup solves this. It automatically detects and skips development artifacts, making your backups:
- ⚡ 10x faster — skip gigabytes of dependencies
- 💾 10x smaller — only back up what matters
- 🧠 Smart — incremental, manifest-based backups copy only changed files
- 💻 Multi-device — several machines share one drive safely (per-hostname folders)
- 🔌 Zero config — works out of the box on Windows, macOS, and Linux
| Feature | Description |
|---|---|
| 🚀 Cross-Platform | Works on Windows, macOS, and Linux |
| 🔍 Smart Filtering | Auto-skips node_modules, venv, .git, __pycache__, build outputs, caches |
| 📊 Incremental Backup | JSON or SQLite manifest (--manifest-format json|sqlite) with auto-detection & seamless migration |
| 🔐 SHA-256 Hashing | Optional tiered hashing (--hash ≤ 50 MB, --hash-all for everything) |
| 🔄 Restore Support | Conflict strategies (skip, overwrite, newer, rename), pattern filtering, --manifest-info, dry-run preview |
| 💻 Multi-Device | Per-device backup folders — multiple machines share one drive |
| 📦 Compression | zip / tar.gz — during backup or afterwards via compress |
| 🔌 Auto-Detection | Finds external drives; optional watcher daemon prompts on plug-in |
| ⚙️ Config CLI | Manage persistent settings & exclusions via smartbackup config (no manual JSON edits) |
| 🔔 Desktop Notifications | Opt-in completion alerts (--notify) via osascript, notify-send, or PowerShell |
| 🗓️ Scheduling Helper | Print OS-specific schtasks, launchd, cron, and systemd recipes via smartbackup schedule |
| 📝 Detailed Logging | Persistent single-bar Rich progress display + per-run log file on the backup drive |
| 🎯 Minimal Dependencies | Only rich + typer — everything else is stdlib |
Requirements: Python 3.9+ · Windows / macOS / Linux
git clone https://github.com/CodingWithMK/smartbackup_file-backup-automation.git
cd smartbackup_file-backup-automation
python main.py # backs up Documents → auto-detected external drivepip install .
smartbackupuv venv
source .venv/bin/activate # Windows: .venv\Scripts\Activate.ps1
uv pip install -e ".[dev]"
smartbackupThat's it! Connect a drive and run — SmartBackup finds it, skips build artifacts, and copies only what changed since the last run. If no drive is found, you'll be offered a local temporary backup instead.
smartbackup --version # verify: smartbackup 0.8.0
smartbackup --help # all commands and optionssmartbackup # backup Documents to the auto-detected drive
smartbackup --source ~/Projects # back up a custom folder
smartbackup --target /media/USB_DRIVE # back up to an explicit path
smartbackup --dry-run # simulate a backup (no copies, no manifest writes)
smartbackup --manifest-format sqlite # store manifest in SQLite (.smartbackup_manifest.db)
smartbackup --notify # send an OS desktop notification when done
smartbackup --list-drives # show available drives
smartbackup --hash # SHA-256 change detection (files ≤ 50 MB)
smartbackup --target /media/USB --verify # verify backup integrity against the manifest
smartbackup --compress zip # backup, then archive as zip
smartbackup restore --source /media/USB_DRIVE --list # inspect a backup
smartbackup restore --source /media/USB_DRIVE --manifest-info # show manifest summary
smartbackup restore --source /media/USB_DRIVE --conflict rename # keep both on conflict
smartbackup config list # inspect persistent configuration
smartbackup config set manifest_format sqlite # persist SQLite as default manifest format
smartbackup watch # foreground drive watcher
smartbackup daemon install # background watcher service (status/uninstall/clear-state)
smartbackup schedule --hours 24 # print OS-specific scheduled backup instructionsFull explanations, options, and recipes: User Guide →
What gets excluded by default?
node_modules, venv/.venv/.env, __pycache__, .git/.svn/.hg, dist/build,
target, bin/obj, .idea/.vscode, .next/.nuxt, .gradle/.m2, caches
(.cache, .pytest_cache, .mypy_cache, .sass-cache), temp files (*.tmp, *.log,
*.bak, ~*), binaries (*.pyc, *.exe, *.dll, *.so, *.dylib, …), OS junk
(.DS_Store, Thumbs.db, desktop.ini) — plus anything that looks like a Python
virtual environment.
Full list: User Guide → Appendix B
Contributions are welcome! Here's how:
- Fork the repository
- Create a branch:
git checkout -b feature/amazing-feature - Make your changes
- Run tests:
pytest· Lint:ruff check . - Commit:
git commit -m 'Add amazing feature' - Push:
git push origin feature/amazing-feature - Open a Pull Request
See CONTRIBUTING.md for details and CHANGELOG.md for release history.
This project is licensed under the MIT License - see the LICENSE file for details.
- Built with ❤️ for developers who are tired of backing up
node_modules - Inspired by the frustration of slow backups
If this tool saved you time, consider giving it a ⭐