diff options
| author | Danilo M. <danix@danix.xyz> | 2026-06-16 18:50:56 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-06-16 18:50:56 +0200 |
| commit | db404714f29ca0230e1a2ba48f7fdc23ff511dbb (patch) | |
| tree | baf5ee5ebcea72ef266894c35263fd5f3d6ae329 /CLAUDE.md | |
| parent | f90d7f606aca51235fdb2a22fdf2263218138331 (diff) | |
| download | dots-backup-db404714f29ca0230e1a2ba48f7fdc23ff511dbb.tar.gz dots-backup-db404714f29ca0230e1a2ba48f7fdc23ff511dbb.zip | |
docs: document --suggest flag and SUGGEST_IGNORE
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'CLAUDE.md')
| -rw-r--r-- | CLAUDE.md | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 | |
