relabel
Relabel a tape.
Synopsis
relabel [storage=<storage>] [oldvolume=<oldvolume>] [volume=<volume>]
[pool=<pool>] [slot=<slot>] [drive=<drive>] [encrypt] [yes]
Words without brackets are required, [ ] marks optional parts, a | b alternatives, ... a repeatable argument and [,...] a comma separated list.
Description
Writes a new label onto a volume that is already in the catalog and gives it a new name. This works only for volumes with status Purged or Recycle, that is when no jobs refer to the volume any more. The Storage Daemon overwrites the medium, the old Media record is removed and a new one created. All data on the volume is lost.
oldvolume= names the existing volume and volume= the new name, which follows the same rules as for label; missing or unknown names are chosen in a dialogue. pool= restricts the selection of the old volume. yes is accepted, but relabel asks no yes/no question.
Arguments
| Argument | Type | Values / source | Default | Flags | Description |
|---|---|---|---|---|---|
storage= | resource | from .storages | Storage name. | ||
oldvolume= | resource | from .media | Current volume name. | ||
volume= | string | New volume name. | |||
pool= | resource | from .pools | Pool name. | ||
slot= | integer | Slot. | |||
drive= | integer | Drive number. | |||
encrypt | keyword | Encrypt the volume. | |||
yes | keyword | Do not ask. |
Examples
Relabel purged volume Full-0001 as Full-0101:
relabel storage=File oldvolume=Full-0001 volume=Full-0101