unmount

Bareos

Unmount storage.

Aliases: umount

Synopsis

unmount [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 stop using a device and release its volume, so a tape can be removed or the device serviced. While a device is unmounted no job writes to it; mount brings it back. It changes the device state in the Storage Daemon, not the catalog. umount is another name for the same command.

The storage is given as storage=, sd= or by its bare name; without it a selection list appears. drive= picks one drive, alldrives unmounts every drive of the autochanger one after another. 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

Unmount drive 1 of the autochanger:

unmount storage=Autochanger drive=1

Unmount every drive of the autochanger:

unmount storage=Autochanger alldrives

See also

Command reference