No description
- Add Go implementation with modular architecture - Support --name flag for exact filename matching - Support --match flag for directory glob pattern matching - Create tar.gz and zip archives preserving directory structure - Handle errors with appropriate exit codes - Skip files with permission errors gracefully - Add comprehensive test suite with 11 test cases |
||
---|---|---|
archiver | ||
collector | ||
go.mod | ||
main.go | ||
plan.md | ||
README.md | ||
test.sh |
collect
CLI tool that collects files recursively matching specific names, maintains their file structure, and adds them to an archive for backup.
Examples
Finds all files named .mise.toml
collect --name .mise.toml ./ backup.tgz
Finds all files nested in a directory that glob matches aet-* (ie. aet-bin)
collect --match aet-*/ ./ backup.zip