| Age | Commit message (Collapse) | Author | Files | Lines |
|
Warn and skip system/ entries during restore if EUID != 0.
Dry-run shows what would be restored (with "needs root" note)
so user can decide whether to re-run as root.
|
|
`[[ false ]]` returns exit code 1; `set -euo pipefail` killed restore
loop on first skipped entry. Add `|| true` to suppress.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
- guard all cd calls with error messages
- check commit and push exit codes; fail loudly on hook rejection
- warn on missing system path entries (were silently skipped)
- clear only when stdout is a terminal
- simplify beginswith to single [[ ]] expression
- remove redundant touch before lastupdate write
- quote $NC in echo -e calls
|
|
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
- Quote $WORKDIR in all cd calls
- Quote ${HOME}/$i and $i in -f/-d test expressions
- Guard clear with QUIET check to avoid wiping terminal in scripted use
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
- Quote all $DEFAULT_OUTPUT_DIR references to handle paths with spaces
- Replace git rev-parse $(...) with exit-code check to avoid set -e trap
- Fix system file dst using $i instead of ${i#/} (double-slash bug)
- Quote $i in beginswith call
- Simplify push guard to check remote existence directly
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
- GIT_REMOTE in config auto-registers origin on every run (idempotent)
- GIT_BRANCH sets push target branch (defaults to current branch)
- -p/--push pushes after commit; errors if no remote available
- Updated config.example and README
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
Script now creates ~/.config/dot-backup/ and ~/.local/share/dot-backup/
on first run and prints a summary with next steps. README updated.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
- Add -n/--dry-run, -v/--verbose, -r/--restore, -q/--quiet flags
- Auto-commit after backup with timestamp message
- Load ~/.config/dot-backup/config for overriding defaults
- Load extra dotfiles from ~/.config/dot-backup/files.list
- Quiet mode redirects all output to ~/.local/share/dot-backup/backup.log
- Add config.example, CLAUDE.md, and updated README
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
|