8
2
I have a tar file that I want to split into multiple smaller tar files. This would be easy with split
, but I want the splitted files to be fully usable tar files themselves, which split
can't do as it will split at arbitrary points, not at file boundaries.
So how to split a tar file into smaller parts at file boundaries, so that no file ends up being half in one tar and half in the other tar?
Solutions that don't use tar and accomplish the task by other means would be welcome as well.
PS: Yes, there will be cases where this isn't possible (tar with files larger then the split size).
star has a promising option in
tsize=
, but I did not see anything like bsdtar ’s@archive
that might complete the task. – Chris Johnsen – 2010-09-17T11:58:00.893