Tapespec: Difference between revisions

From wiki.zmanda.com
Jump to navigation Jump to search
(simple spec)
 
(Ah, quoting.)
Line 6: Line 6:
or
or
   Conf-001:3,4,5,9,11;Conf-002:1,2,3
   Conf-001:3,4,5,9,11;Conf-002:1,2,3
All of these metacharacters are quoted with a backslash if they appear in the label.
Sometimes the specification is abused by putting things that aren't labels in it:
/A/p/hold\:ing/20100205181319/euclid._A_p_etc.1:0

Revision as of 00:20, 6 February 2010

Lists of on-media parts are sometimes passed around in a "tapelist", implemented in common-src/tapelist.c. This is not to be confused with the tapelist file (which, naturally enough, is implemented in server-src/tapefile.c).

A tapelist is a semicolon-separated list of volumes, where each volume is specified as a label, a colon, and a comma-separated list of file numbers on that volume. For example:

 Conf-001:1

or

 Conf-001:3,4,5,9,11;Conf-002:1,2,3

All of these metacharacters are quoted with a backslash if they appear in the label.

Sometimes the specification is abused by putting things that aren't labels in it:

/A/p/hold\:ing/20100205181319/euclid._A_p_etc.1:0