add
Add media to a pool.
Synopsis
add [pool=<pool>] [storage=<storage>] [jobid=<jobid>] [volume=<volume>]
[slot=<slot>] [drive=<drive>]
Words without brackets are required, [ ] marks optional parts, a | b alternatives, ... a repeatable argument and [,...] a comma separated list.
Description
Creates Media records for volumes in the catalog without labelling the media. This is only needed in special cases, for example when tapes already carry a Bareos label or volumes should be listed in advance. The Storage Daemon is not contacted. Normally label is the right command, and the Director says so on every call.
pool= selects the pool (asked for if missing, automatic if the console may use only one pool); storage= determines Media Type and storage of the new volumes. Number, name, start number and, on autochangers, slot and InChanger are always asked in the dialogue: 0 creates one volume with a fixed name, a larger number a series with a four-digit suffix. jobid= is accepted but ignored.
Arguments
| Argument | Type | Values / source | Default | Flags | Description |
|---|---|---|---|---|---|
pool= | resource | from .pools | Pool name. | ||
storage= | resource | from .storages | Storage name. | ||
jobid= | integer | Storage of a job. | |||
volume= | string | Volume name. | |||
slot= | integer | Slot. | |||
drive= | integer | Drive number. |
Examples
Add volumes to pool Full for storage File:
add pool=Full storage=File