|
|
|
|
|
by mannschott
2131 days ago
|
|
Yea, I used to do this with a little script. The strategy I used, which worked well when I was compressing and archiving workspaces (which might often contain checkouts of different branches of the same project) was essentially this: find * -print | rev | sort | rev |
tar --create --no-recursion --files-from - |
gzip
This clusters file types together and within file types and within that files with the same base name close together.This worked surprisingly well for my use cases, though you can imagine that packing and unpacking times were impacted by the additional head seeks caused by the rather arbitrary order in which this accesses files. |
|