import

Bareos

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

ArgumentTypeValues / sourceDefaultFlagsDescription
storage=resourcefrom .storagesStorage name.
srcslots=stringSource slots (list or ranges).
dstslots=stringDestination slots (list or ranges).
volume=resourcefrom .medialistVolume names.
scankeywordScan the volumes.
drive=integerDrive 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

See also

Command reference