aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-05-06 10:10:22 +0200
committerDanilo M. <danix@danix.xyz>2026-05-06 10:10:22 +0200
commit6ccd7ca2245b1d49c9a0583604a1dc67fb4b620f (patch)
tree190c47438a0f991ecddde42b527b4f13f9cf653a
parent1958f7348c98b9df30662195114bc029aa164611 (diff)
downloaddots-backup-6ccd7ca2245b1d49c9a0583604a1dc67fb4b620f.tar.gz
dots-backup-6ccd7ca2245b1d49c9a0583604a1dc67fb4b620f.zip
Update CLAUDE.md to reflect auto-commit and config vars
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
-rw-r--r--CLAUDE.md6
1 files changed, 4 insertions, 2 deletions
diff --git a/CLAUDE.md b/CLAUDE.md
index c55bd86..e148276 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -20,7 +20,7 @@ No build step. No tests. No deps beyond bash + rsync + git.
1. **Setup** — ensures `$DEFAULT_OUTPUT_DIR` exists with `home/` and `system/` subdirs; initializes git if needed; writes `lastupdate` timestamp
2. **Copy loop** — iterates `DOTFILES` array; paths starting with `/` go to `system/`, all others go to `home/`; uses `rsync -a` for both files and directories
-3. **Stage** — `git add .` in `$DEFAULT_OUTPUT_DIR`; user must commit/push manually
+3. **Commit** — `git add .` + auto-commits with timestamp message in `$DEFAULT_OUTPUT_DIR`; optionally pushes with `--push`
## Key Variables
@@ -28,8 +28,10 @@ No build step. No tests. No deps beyond bash + rsync + git.
|---|---|---|
| `DEFAULT_OUTPUT_DIR` | `~/Programming/GIT/my-dotfiles` | Where backups land |
| `DOTFILES` | array in script | What gets backed up |
+| `GIT_REMOTE` | _(unset)_ | Remote URL; required for `--push` |
+| `GIT_BRANCH` | current branch | Branch to push to |
-To change backup destination, edit `DEFAULT_OUTPUT_DIR` at the top of the script. A commented-out `/tmp/` alternative is already there for testing.
+Set `GIT_REMOTE` and `GIT_BRANCH` in `~/.config/dot-backup/config`. To change backup destination, edit `DEFAULT_OUTPUT_DIR` at the top of the script.
## Adding Dotfiles