export
Export volumes from normal slots to import/export slots.
Synopsis
export [storage=<storage>] [srcslots=<srcslots>] [dstslots=<dstslots>]
[volume=<volume>[,...]] [scan] [drive=<drive>]
Words without brackets are required, [ ] marks optional parts, a | b alternatives, ... a repeatable argument and [,...] a comma separated list.
Description
Has an autochanger move volumes from normal slots into its import/export slots (mail slots) so the tapes can be removed, for example for offsite storage. The Director instructs the Storage Daemon, which moves the robot, and then records the new slots in the catalog. It works only with storages configured as autochangers.
A source is required: srcslots= with occupied normal slots or volume= with names separated by |; empty source slots are skipped silently. dstslots= gives empty import/export slots, by default free ones in order. scan reads the tapes in a drive instead of using barcodes. Onesimus deviation: without a source the Director refuses before contacting the Storage Daemon.
Arguments
| Argument | Type | Values / source | Default | Flags | Description |
|---|---|---|---|---|---|
storage= | resource | from .storages | Storage name. | ||
srcslots= | string | Source slots (list or ranges). | |||
dstslots= | string | Destination slots (list or ranges). | |||
volume= | resource | from .media | list | Volume names. | |
scan | keyword | Scan the volumes. | |||
drive= | integer | Drive number. |
Examples
Export the volumes in slots 1 to 3:
export storage=Autochanger srcslots=1-3
Export two volumes by name:
export storage=Autochanger volume=Full-0001|Full-0002