Tapespec: Difference between revisions

From wiki.zmanda.com
Jump to navigation Jump to search
(Ah, quoting.)
(rename to tapespec)
Line 1: Line 1:
Lists of on-media parts are sometimes passed around in a "tapelist", implemented in <tt>common-src/tapelist.c</tt>.  This is not to be confused with the tapelist file (which, naturally enough, is implemented in <tt>server-src/tapefile.c</tt>).
Lists of on-media parts are sometimes passed around in a "tapespec", implemented in <tt>common-src/tapelist.c</tt> and <tt>perl/Amanda/Util.{swg,pod}</tt>.  Older code referred to this as a tapelist, which can be confused with the tapelist file (which, naturally enough, is implemented in <tt>server-src/tapefile.c</tt>).


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:
A tapespec 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
   Conf-001:1

Revision as of 03:56, 23 February 2010

Lists of on-media parts are sometimes passed around in a "tapespec", implemented in common-src/tapelist.c and perl/Amanda/Util.{swg,pod}. Older code referred to this as a tapelist, which can be confused with the tapelist file (which, naturally enough, is implemented in server-src/tapefile.c).

A tapespec 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