export

Bareos

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

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

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

See also

Command reference