aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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