multi-volume archives

Polytropon freebsd at
Sat Sep 21 14:45:51 UTC 2019

On Sat, 21 Sep 2019 13:30:03 +0700, Victor Sudakov wrote:
> Dear Colleagues,
> Which is now the most convenient way to create multi-volume archives? To
> fit an archive on a FAT32 flash drive, a volume size should not exceed 4g. 
> I have traditionally used "tar | split" to pack, then "cat | tar" to
> unpack. But split is very slow, and generally this way is clumsy.

Same here, except it was decades ago and involved floppies,
so "flop <files>" and "unflop" were the commands I created
around split, cat, and tar. :-)

> I don't want to use "zip -s" either, because I think zip does not
> preserve symlinks, hardlinks, permissions... to cut a long story short,
> I don't believe in zip as a Unix archiver.
> Any more ideas?

I immediately remember pax - it has multi-volume support. However,
I'm not sure if it preserves everything you're interested in. Of
course you could use "tar c | pax -B" and "cat | tar x" to get
rid of split. If you need compression, pax supports that, too.

Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

More information about the freebsd-questions mailing list