1AMLABEL(8)              System Administration Commands              AMLABEL(8)
2
3
4

NAME

6       amlabel - label an Amanda tape
7

SYNOPSIS

9       amlabel [--barcode barcode] [--meta meta-label] [--pool pool]
10               [--storage storage] [--assign] [-f] [--version]
11               [-o configoption...] config [label] [slot slot]
12

DESCRIPTION

14       This command applies a label to an Amanda volume, erasing the volume in
15       the process.
16
17       Amanda uses labels to identify volumes: amdump(8) and amflush(8) verify
18       the label before writing to make sure the proper volume is loaded, and
19       the recovery programs use the label to ensure they are reading the data
20       they expect.
21
22       If no [slot] and no [barcode] is given, then amlabel labels the tape in
23       the current slot of the default changer. If a slot is given, it labels
24       the volume in that slot. If a barcode is given, it labels the volume
25       with that barcode.  Label may be any string that does not contain
26       whitespace and that matches the labelstr (see amanda.conf(5)).
27
28       If [label] is not given, an autolabel is generated, see autolabel in
29       amanda.conf(5).
30
31       If [--assign] is given, the label is interpretad as an expression and
32       the barcode, meta-label, pool, storage and config are assigned to all
33       labels matching the expression, the volumes are not labelled. The
34       labels must already be in the tapelist file.
35
36       This command also appends the new volume to the tapelist(5) file, so
37       that they will be used in the order they are labeled (depending on the
38       taperscan in use — see amanda-taperscan(7)).
39
40       As a precaution, amlabel will not write a label if the volume already
41       contains an active label or if the label specified is on an active
42       tape. The [-f] (force) flag bypasses these verifications.
43

OPTIONS

45       --barcode barcode
46           With [--assign], assign the barcode to the label. Without
47           [--assign], label the volume with that barcode.
48
49       --meta meta-label
50           Assign the meta label to the label after labeling the volume.
51
52       --pool pool
53           Assign the pool to the label after labeling the volume.
54
55       --storage storage
56           Assign the storage to the label, it can only be used with --assign,
57           you can't assign a storage to a new labelled volume.
58
59       --assign
60           Assign the barcode or meta-label to the label without labeling the
61           volume. The label must already be in the tapelist file.
62
63       -f
64           Force the label operation; see above
65
66       --version
67           Output version information
68
69       -o configoption
70           See the "CONFIGURATION OVERRIDE" section in amanda(8).
71

EXAMPLE

73       Write an Amanda label with the string "DMP000" on the current volume:
74       % amlabel daily DMP000
75
76       Label the tape in slot 3 of the changer with the label "DMP003":
77       % amlabel daily DMP003 slot 3
78

MESSAGES

80       Label 'label' doesn't match labelstr 'labelstr'
81           The given label does not match the configured labelstr. Even with
82           -f, this is an error.
83
84       Label 'label' already on a volume
85           The given label is already on another volume in the tapelist, and
86           Amanda will not write it to this volume unless forced.
87
88       Found label 'label', but it is not from configuration config.
89           The label amlabel found on the volume does not match this
90           configuration's labelstr, so it is probably part of a different
91           Amanda configuration. Amanda will not overwrite the label unless it
92           is forced.
93
94       Volume with label 'label' contains data from this configuration.
95           The label amlabel found on the volume still has valid data on it
96           and Amanda will not overwrite it unless forced. Note that this does
97           not distinguish between active and inactive volumes.
98

SEE ALSO

100       amanda(8), amanda.conf(5), tapelist(5), amanda-taperscan(7), amdump(8),
101       amflush(8)
102
103       The Amanda Wiki: : http://wiki.zmanda.com/
104

AUTHORS

106       James da Silva <jds@amanda.org>
107
108       Stefan G. Weichinger <sgw@amanda.org>
109
110       Dustin J. Mitchell <dustin@zmanda.com>
111           Zmanda, Inc. (http://www.zmanda.com)
112
113
114
115Amanda 3.5.1                      12/01/2017                        AMLABEL(8)
Impressum