Expand description
Backup creation under $DOTFILES/.yui/backup/.
Path scheme: mirror the absolute target path (drive colon stripped on Windows), then suffix the basename with a timestamp before the extension.
target C:\Users\u\.config\foo\bar.yml
backup $DOTFILES/.yui/backup/C/Users/u/.config/foo/bar_20260429_143022123.ymlFunctions§
- backup_
dir - Recursively copy
src(a directory tree) todest. Symlinks within the tree are skipped (we’d be copying their targets again redundantly, and link semantics don’t carry meaning in a backup). - backup_
file - Copy
src(a regular file) todest, creating parent dirs as needed. - backup_
path - current_
timestamp - Format the current local time using a
jiffstrtime pattern.