Go to the first, previous, next, last section, table of contents.


Tape Files

@UNREVISED

To give the archive a name which will be recorded in it, use the --label=archive-label (-V archive-label) option. This will write a special block identifying volume-label as the name of the archive to the front of the archive which will be displayed when the archive is listed with --list (-t). If you are creating a multi-volume archive with --multi-volume (-M) (@FIXME-pxref{Using Multiple Tapes}), then the volume label will have `Volume nnn' appended to the name you give, where nnn is the number of the volume of the archive. (If you use the --label=archive-label (-V archive-label) option when reading an archive, it checks to make sure the label on the tape matches the one you give. See section Including a Label in the Archive.

When tar writes an archive to tape, it creates a single tape file. If multiple archives are written to the same tape, one after the other, they each get written as separate tape files. When extracting, it is necessary to position the tape at the right place before running tar. To do this, use the mt command. For more information on the mt command and on the organization of tapes into a sequence of tape files, see section The mt Utility.

People seem to often do:

--label="some-prefix `date +some-format`"

or such, for pushing a common date in all volumes or an archive set.


Go to the first, previous, next, last section, table of contents.