aboutsummaryrefslogtreecommitdiffstats
path: root/CLAUDE.md
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-06-16 18:56:46 +0200
committerDanilo M. <danix@danix.xyz>2026-06-16 18:56:46 +0200
commitdaa2571288e6f3680f2f14dc4f65815179d9641f (patch)
treeb0244bc3bc92ca36aad16a07e2dd488e58311896 /CLAUDE.md
parentd9a245ec8c2236e897771459467a8c7c753ce341 (diff)
parentcc576c42c2d81d6201658271541bc13fb4229615 (diff)
downloaddots-backup-daa2571288e6f3680f2f14dc4f65815179d9641f.tar.gz
dots-backup-daa2571288e6f3680f2f14dc4f65815179d9641f.zip
Merge feat/suggest-flag: add --suggest flagHEADmaster
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'CLAUDE.md')
-rw-r--r--CLAUDE.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/CLAUDE.md b/CLAUDE.md
index d5c7650..1a4aed5 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -18,10 +18,12 @@ No build step. No tests. No deps beyond bash + rsync + git.
`dot-backup.sh` does three things in sequence:
-1. **Setup** — ensures `$DEFAULT_OUTPUT_DIR` exists with `home/` and `system/` subdirs; initializes git if needed; writes `lastupdate` timestamp
+1. **Setup** — ensures `$DEFAULT_OUTPUT_DIR` exists with `home/` and `system/` subdirs; initializes git if needed; writes `lastupdate` timestamp and `lastupdate.epoch` (epoch seconds, machine-readable)
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. **Commit** — `git add .` + auto-commits with timestamp message in `$DEFAULT_OUTPUT_DIR`; optionally pushes with `--push`
+`--suggest` is a read-only shortcut: it reads `lastupdate.epoch`, scans `~/.config` children and top-level hidden dirs/files in `$HOME`, and prints any that are newer than the last backup and not already tracked, formatted as a paste-ready block for `files.list`. Prints and exits — never copies or commits. Basenames to skip are controlled by `SUGGEST_IGNORE` (baked-in default; override in config).
+
## Key Variables
| Variable | Default | Purpose |