import
Import volumes from import/export slots to normal slots.
Synopsis
import [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 its import/export slots (mail slots) into free normal slots. The Director instructs the Storage Daemon, which moves the robot, and then records the slots in the catalog. It works only with storages configured as autochangers; the counterpart is export.
srcslots= lists occupied import/export slots (default: all occupied ones), dstslots= empty normal slots (default: free slots in order); slot lists use numbers from 1, ranges with - and commas. volume= restricts the import to names separated by |. scan reads the tapes in a drive instead of using barcodes and asks for the drive. Onesimus deviation: on a storage without autochanger the command is sent to the Storage Daemon, which rejects it.
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
Import every volume from the mail slots:
import storage=Autochanger
Move mail slots 41 and 42 into slots 10 and 11:
import storage=Autochanger srcslots=41-42 dstslots=10-11