Automatically back up any local Git repository (Obsidian vaults, Jupyter projects, code folders, notes, etc.) to GitHub by running:
git add -Agit commit -m "auto backup: <timestamp>"(only if changes exist)git push
Designed to run reliably from Windows Task Scheduler and writes logs for debugging.
- Works with any folder that is already a Git repo
- Safe for public use: your personal paths live in
config/repos.json(ignored by git) - Supports backing up multiple repositories on a schedule
- Detailed logging:
logs/
- Windows 10/11
- Git for Windows installed
- Your target folders must already be Git repositories:
- contain a
.git/folder - have a configured remote (e.g.,
origin) - can successfully
git pushmanually at least once
- contain a
Option A: clone
git clone <THIS_REPO_URL>
cd github-auto-backup-windows