Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




9.6.2 Tape Files

To give the archive a name which will be recorded in it, use the --label=volume-label (-V volume-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. If you are creating a multi-volume archive with --multi-volume (see 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=volume-label) option when reading an archive, it checks to make sure the label on the tape matches the one you give. See label.

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 mt.

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.

  Published under the terms of the GNU General Public License Design by Interspire