release

Bareos

Release storage.

Synopsis

release [storage=<storage>] [sd=<sd>] [<storage-name>] [drive=<drive>]
        [device=<device>] [alldrives] [jobid=<jobid>] [job=<job>]
        [ujobid=<ujobid>]

Words without brackets are required, [ ] marks optional parts, a | b alternatives, ... a repeatable argument and [,...] a comma separated list.

Description

Asks the Storage Daemon to release the volume in a device without unmounting the device. On tape drives the tape is rewound; the next job reads the label again and may request another volume. It changes the device state in the Storage Daemon, not the catalog.

The storage is given as storage=, sd= or by its bare name; without it a selection list appears. drive= picks one drive, alldrives releases every drive of the storage. jobid=, job= or ujobid= use the storage of a running job.

Arguments

ArgumentTypeValues / sourceDefaultFlagsDescription
storage=resourcefrom .storagesStorage name.
sd=resourcefrom .storagesStorage name (as storage=).
<storage-name>resourcefrom .storagespositionalStorage name without key.
drive=integerDrive number.
device=stringDevice name.
alldriveskeywordEvery drive of the autochanger.
jobid=integerStorage of a job.
job=resourcefrom .jobsStorage of a job.
ujobid=stringStorage of a job.

Examples

Release the volume of the File storage:

release storage=File

Release every drive of the autochanger:

release storage=Autochanger alldrives

See also

Command reference