diff options
| author | Danilo M. <danix@danix.xyz> | 2026-06-16 18:56:46 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-06-16 18:56:46 +0200 |
| commit | daa2571288e6f3680f2f14dc4f65815179d9641f (patch) | |
| tree | b0244bc3bc92ca36aad16a07e2dd488e58311896 /CLAUDE.md | |
| parent | d9a245ec8c2236e897771459467a8c7c753ce341 (diff) | |
| parent | cc576c42c2d81d6201658271541bc13fb4229615 (diff) | |
| download | dots-backup-daa2571288e6f3680f2f14dc4f65815179d9641f.tar.gz dots-backup-daa2571288e6f3680f2f14dc4f65815179d9641f.zip | |
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 | |
