Hacker News new | ask | show | jobs
by epmos 1923 days ago
tar was designed for tape, so you can specify a volume size for the output and it will break it's output into segments of that size. Using split isn't required.

The options in gnu tar are -L and -M for specifying tape length (in KB) and creating multi-volume archives.

The -L version is handy as it can prompt you to change the "tape". It has built-in tape handling as well, if you are using a real tape that can be controlled via mt.

Apparently (just checked info) it supports an arbitrary command to execute at the end of each archive. That would be handy for burning CDs, though I don't remember that feature from when I used floppies or QIC-40 to move files from one machine to another.

Around 1991-ish I would use these options to put archives onto stacks of floppy disks. The floppies didn't have a filesystem, just blocks of tar archive. In the days of 9600 bps modems, this was often the fastest way to move stuff to another machine. I had an often-reused stack of 3.5in HD floppies labeled with numbers for this purpose.