update

Bareos

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>]
ArgumentTypeValues / sourceDefaultFlagsDescription
volume=resourcefrom .mediavalue optionalVolume name.
volstatus=enumAppend, Archive, Disabled, Full, Used, Cleaning, Read-Only, Recycle, Purged, ErrorVolume status.
volretention=stringRetention time.
voluse=stringUse duration.
maxvoljobs=integerMost jobs.
maxvolfiles=integerMost files.
maxvolbytes=stringMost bytes.
recycle=boolyes, noRecycle.
inchanger=boolyes, noIn changer.
slot=integerSlot.
pool=resourcefrom .poolsMove to pool.
recyclepool=resourcefrom .poolsRecycle pool.
fromallpoolskeywordPool defaults for every volume.
allfrompool=resourcefrom .poolsPool defaults for the volumes of a pool.
enabled=boolyes, noEnabled.
actiononpurge=enumTruncate, NoneAction on purge.
storage=resourcefrom .storagesStorage name.
encrypt=enumyes, no, rotateEncryption.

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>]
ArgumentTypeValues / sourceDefaultFlagsDescription
pool=resourcefrom .poolsvalue optionalPool name.
maxvolbytes=stringMost bytes.
maxvolfiles=integerMost files.
maxvoljobs=integerMost jobs.
enabled=boolyes, noEnabled.
recyclepool=resourcefrom .poolsRecycle pool.
actiononpurge=stringAction 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>]
ArgumentTypeValues / sourceDefaultFlagsDescription
slots=stringvalue optionalSlots (list or ranges).
storage=resourcefrom .storagesStorage name.
sd=resourcefrom .storagesStorage name (as storage=).
<storage-name>resourcefrom .storagespositionalStorage name without key.
scankeywordRead the labels.
drive=integerDrive number.
enabled=boolyes, noEnable 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>]
ArgumentTypeValues / sourceDefaultFlagsDescription
jobid=integerJob ID.
jobname=stringJob name.
starttime=stringStart time.
client=resourcefrom .clientsClient name.
filesetid=integerFileSet ID.
jobtype=stringJob 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>]
ArgumentTypeValues / sourceDefaultFlagsDescription
days=integerKeep 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

See also

list, label, Command reference