update
Update volume, pool, slots, job or statistics.
Synopsis
update
update volume[=<volume>] [volstatus=<volstatus>] [volretention=<volretention>]
[voluse=<voluse>] [maxvoljobs=<maxvoljobs>]
[maxvolfiles=<maxvolfiles>]
[maxvolbytes=<maxvolbytes>] [recycle=<yes|no>]
[inchanger=<yes|no>] [slot=<slot>] [pool=<pool>]
[recyclepool=<recyclepool>] [fromallpools]
[allfrompool=<allfrompool>] [enabled=<yes|no>]
[actiononpurge=<Truncate|None>] [storage=<storage>]
[encrypt=<yes|no|rotate>]
update pool[=<pool>] [maxvolbytes=<maxvolbytes>] [maxvolfiles=<maxvolfiles>]
[maxvoljobs=<maxvoljobs>] [enabled=<yes|no>]
[recyclepool=<recyclepool>]
[actiononpurge=<actiononpurge>]
update slots[=<slots>] [storage=<storage>] [sd=<sd>] [<storage-name>] [scan]
[drive=<drive>] [enabled=<yes|no>]
update jobid=<jobid> [jobname=<jobname>] [starttime=<starttime>]
[client=<client>] [filesetid=<filesetid>]
[jobtype=<jobtype>]
update stats [days=<days>]
Words without brackets are required, [ ] marks optional parts, a | b alternatives, ... a repeatable argument and [,...] a comma separated list.
Description
Changes catalog records of volumes, pools, slots and jobs; without arguments the Director asks what to update.
Subcommands
update volume
Volume record.
Aliases: media
Changes the catalog properties of one volume: volstatus (Append, Archive, Disabled, Full, Used, Cleaning, Recycle, Read-Only, Error), volretention, voluse, maxvoljobs, maxvolfiles, maxvolbytes, recycle, inchanger, slot, enabled, encrypt, pool, recyclepool, actiononpurge and storage. Several parameters may be given on one line; each is checked and reported on its own. Without parameters a menu opens, without a name the volume is selected first.
allfrompool=<pool> resets the defaults of all volumes of a pool from the Pool resource, fromallpools those of every pool. encrypt=yes|no|rotate sets, removes or renews the hardware encryption key and only applies to volumes with a key.
update volume[=<volume>] [volstatus=<volstatus>] [volretention=<volretention>]
[voluse=<voluse>] [maxvoljobs=<maxvoljobs>]
[maxvolfiles=<maxvolfiles>]
[maxvolbytes=<maxvolbytes>] [recycle=<yes|no>]
[inchanger=<yes|no>] [slot=<slot>] [pool=<pool>]
[recyclepool=<recyclepool>] [fromallpools]
[allfrompool=<allfrompool>] [enabled=<yes|no>]
[actiononpurge=<Truncate|None>] [storage=<storage>]
[encrypt=<yes|no|rotate>]
| Argument | Type | Values / source | Default | Flags | Description |
|---|---|---|---|---|---|
volume= | resource | from .media | value optional | Volume name. | |
volstatus= | enum | Append, Archive, Disabled, Full, Used, Cleaning, Read-Only, Recycle, Purged, Error | Volume status. | ||
volretention= | string | Retention time. | |||
voluse= | string | Use duration. | |||
maxvoljobs= | integer | Most jobs. | |||
maxvolfiles= | integer | Most files. | |||
maxvolbytes= | string | Most bytes. | |||
recycle= | bool | yes, no | Recycle. | ||
inchanger= | bool | yes, no | In changer. | ||
slot= | integer | Slot. | |||
pool= | resource | from .pools | Move to pool. | ||
recyclepool= | resource | from .pools | Recycle pool. | ||
fromallpools | keyword | Pool defaults for every volume. | |||
allfrompool= | resource | from .pools | Pool defaults for the volumes of a pool. | ||
enabled= | bool | yes, no | Enabled. | ||
actiononpurge= | enum | Truncate, None | Action on purge. | ||
storage= | resource | from .storages | Storage name. | ||
encrypt= | enum | yes, no, rotate | Encryption. |
Change several limits at once:
update volume=Full-0001 volretention=30days maxvolbytes=10G recycle=no
Move a volume to another pool:
update volume=Full-0001 pool=Incremental
Reapply the pool defaults to all volumes of Full:
update volume allfrompool=Full
update pool
Pool record from the resource.
Updates the catalog Pool record from the Pool resource of the configuration and shows the record afterwards. Use it after changing a pool in the configuration; without a name the pool is chosen from a list. To create a missing Pool record use create.
update pool[=<pool>] [maxvolbytes=<maxvolbytes>] [maxvolfiles=<maxvolfiles>]
[maxvoljobs=<maxvoljobs>] [enabled=<yes|no>]
[recyclepool=<recyclepool>]
[actiononpurge=<actiononpurge>]
| Argument | Type | Values / source | Default | Flags | Description |
|---|---|---|---|---|---|
pool= | resource | from .pools | value optional | Pool name. | |
maxvolbytes= | string | Most bytes. | |||
maxvolfiles= | integer | Most files. | |||
maxvoljobs= | integer | Most jobs. | |||
enabled= | bool | yes, no | Enabled. | ||
recyclepool= | resource | from .pools | Recycle pool. | ||
actiononpurge= | string | Action on purge. |
Refresh the catalog record of pool Full:
update pool=Full
update slots
Slots from the autochanger.
Aliases: slot
Asks the Storage Daemon for the contents of an autochanger and records slot and InChanger for the volumes found. It is the only form of update that contacts the Storage Daemon. Without storage= only autochanger storages are offered; a slot list restricts the update.
scan loads volumes one by one into the drive given by drive= and reads their labels, for changers without a barcode reader. enabled= sets the Enabled value of the volumes found.
update slots[=<slots>] [storage=<storage>] [sd=<sd>] [<storage-name>] [scan]
[drive=<drive>] [enabled=<yes|no>]
| Argument | Type | Values / source | Default | Flags | Description |
|---|---|---|---|---|---|
slots= | string | value optional | Slots (list or ranges). | ||
storage= | resource | from .storages | Storage name. | ||
sd= | resource | from .storages | Storage name (as storage=). | ||
<storage-name> | resource | from .storages | positional | Storage name without key. | |
scan | keyword | Read the labels. | |||
drive= | integer | Drive number. | |||
enabled= | bool | yes, no | Enable or disable the volumes. |
Refresh all slots of the autochanger:
update slots storage=Autochanger
Read the labels in slots 1 to 3 and 7:
update slots=1-3,7 storage=Autochanger scan drive=0
update jobid
Job record.
Changes fields of one job record without confirmation: jobname, starttime (YYYY-MM-DD hh:mm:ss, quoted because of the blank), client, filesetid and jobtype. Without any field the Director reports that nothing was specified; an unknown JobId is reported by the catalog.
update jobid=<jobid> [jobname=<jobname>] [starttime=<starttime>]
[client=<client>] [filesetid=<filesetid>]
[jobtype=<jobtype>]
| Argument | Type | Values / source | Default | Flags | Description |
|---|---|---|---|---|---|
jobid= | integer | Job ID. | |||
jobname= | string | Job name. | |||
starttime= | string | Start time. | |||
client= | resource | from .clients | Client name. | ||
filesetid= | integer | FileSet ID. | |||
jobtype= | string | Job type letter. |
Rename the job of a record:
update jobid=506 jobname=DocsRenamed
Correct the start time of a job:
update jobid=506 starttime="2026-10-01 10:00:00"
update stats
Job statistics.
Carries the long-term job statistics forward by copying finished jobs into the statistics tables. days= takes only jobs of the last given number of days into account. The Director reports how many jobs were updated.
update stats [days=<days>]
| Argument | Type | Values / source | Default | Flags | Description |
|---|---|---|---|---|---|
days= | integer | Keep this many days. |
Update the statistics with the last 30 days:
update stats days=30
Examples
Choose what to update from the menu:
update
Set the status of one volume:
update volume=Full-0001 volstatus=Used