Command reference

Every console command of the Onesimus Director: synopsis, arguments, examples, and which commands extend Bareos.

The Onesimus Director (odir) speaks the console language of the Bareos Director. Its commands follow those of bareos-dir; some behave differently on purpose (see the comparison with Bareos), and each command page shows the state of that command. The Onesimus GUI sends commands through its dialogs. Commands and arguments marked Onesimus extension exist only in the Onesimus Director.

This reference is generated from the console grammar that the Director itself prints with .grammar; the same grammar drives completion and help in the console. Dot commands are meant for programs such as the GUI, but you can type them as well.

Regular commands

CommandDescriptionOrigin
addAdd media to a pool.Bareos
autodisplayAutodisplay console messages.Bareos
automountAutomount after label.Bareos
cancelCancel a job.Bareos
configureConfigure director resources.Bareos, with Onesimus extensions
createCreate DB Pool from resource.Bareos
deleteDelete volume, pool or job.Bareos
disableDisable a job/client/schedule.Bareos
enableEnable a job/client/schedule.Bareos
estimatePerforms FileSet estimate, listing gives full listing.Bareos
exportExport volumes from normal slots to import/export slots.Bareos
guiSwitch between interactive (gui off) and non-interactive (gui on) mode.Bareos
helpPrint help on specific command.Bareos
importImport volumes from import/export slots to normal slots.Bareos
labelLabel a tape.Bareos
listList objects from catalog.Bareos
memoryPrint current memory usage.Bareos
messagesDisplay pending messages.Bareos
mountMount storage.Bareos
moveMove slots in an autochanger.Bareos
prunePrune records from catalog.Bareos
purgePurge records from catalog.Bareos
queryQuery catalog.Bareos
quitTerminate Bconsole session.Bareos
relabelRelabel a tape.Bareos
releaseRelease storage.Bareos
reloadReload conf file.Bareos
rerunRerun a job.Bareos
resolveResolve a hostname.Bareos
restoreRestore files.Bareos
runRun a job.Bareos
setbandwidthSets bandwidth.Bareos
setdebugSets debug level.Bareos
setdeviceSets device parameter.Bareos
setipSets new client address – if authorized.Bareos
showShow resource records.Bareos
sqlqueryUse SQL to query catalog.Bareos
statusReport status.Bareos
timePrint current time.Bareos
traceTurn on/off trace to file.Bareos
truncateTruncate purged volumes.Bareos
unmountUnmount storage.Bareos
updateUpdate volume, pool, slots, job or statistics.Bareos
useUse specific catalog.Bareos
varDoes variable expansion.Bareos
versionPrint Director version.Bareos
waitWait until no jobs are running.Bareos
whoamiPrint the user name associated with this console.Bareos

Dot commands

CommandDescriptionOrigin
.No op.Bareos
.aclManage console ACLs (Onesimus).Onesimus extension
.actiononpurgeList possible actions on purge.Bareos
.apiSwitch between different api modes.Bareos
.authorizedCheck for authorization.Bareos
.bvfs_cleanupCleanup BVFS cache for a certain handle.Bareos
.bvfs_clear_cacheClear BVFS cache.Bareos
.bvfs_get_jobidsGet jobids required for a restore.Bareos
.bvfs_lsdirsList directories using BVFS.Bareos
.bvfs_lsfilesList files using BVFS.Bareos
.bvfs_restoreMark BVFS files/directories for restore. Stored in handle.Bareos
.bvfs_updateUpdate BVFS cache.Bareos
.bvfs_versionsList versions of a file.Bareos
.catalogsList all catalog resources.Bareos
.clientsList all client resources.Bareos
.configRead, create, change, delete configuration resources as raw text (Onesimus).Onesimus extension
.consolesList all console resources.Bareos
.defaultsGet default settings.Bareos
.filesetsList all filesets.Bareos
.grammarPrint the console grammar (Onesimus).Onesimus extension
.grpcToggle gRPC mode.Onesimus extension
.helpPrint parsable information about a command.Bareos
.jobdefsList all job defaults resources.Bareos
.jobsList all job resources.Bareos
.jobstatusList jobstatus information.Bareos
.levelsList all backup levels.Bareos
.locationsList location names.Bareos
.mediaList all medias.Bareos
.mediatypesList all media types.Bareos
.messagesDisplay pending messages.Bareos
.msgsList all message resources.Bareos
.ovfs_latestJob chain of a client’s latest state (restore option 5).Onesimus extension
.ovfs_lsDirect children of one directory of a job chain (OVFS).Onesimus extension
.ovfs_statusShow whether restore trees use the ovfs extension or the Director fallback.Onesimus extension
.ovfs_treeRestore tree of a job chain as JSON (OVFS).Onesimus extension
.ovfs_versionsAll versions of one file of a client (OVFS).Onesimus extension
.poolsList all pool resources.Bareos
.profilesList all profile resources.Bareos
.quitClose connection.Bareos
.scheduleList all schedule resources.Bareos
.sqlSend an arbitrary SQL command.Bareos
.sqlcountCount catalog records.Onesimus extension
.sqlschemaShow catalog schema.Onesimus extension
.sqltablesList catalog tables.Onesimus extension
.statusReport status.Bareos
.storageList all storage resources.Bareos
.typesList all job types.Bareos
.usersList all user resources.Bareos
.volstatusList all volume status.Bareos

add

Add media to a pool.

autodisplay

Autodisplay console messages.

automount

Automount after label.

cancel

Cancel a job.

configure

Configure director resources.

create

Create DB Pool from resource.

delete

Delete volume, pool or job.

disable

Disable a job/client/schedule.

enable

Enable a job/client/schedule.

estimate

Performs FileSet estimate, listing gives full listing.

export

Export volumes from normal slots to import/export slots.

gui

Switch between interactive (gui off) and non-interactive (gui on) mode.

help

Print help on specific command.

import

Import volumes from import/export slots to normal slots.

label

Label a tape.

list

List objects from catalog.

memory

Print current memory usage.

messages

Display pending messages.

mount

Mount storage.

move

Move slots in an autochanger.

prune

Prune records from catalog.

purge

Purge records from catalog.

query

Query catalog.

quit

Terminate Bconsole session.

relabel

Relabel a tape.

release

Release storage.

reload

Reload conf file.

rerun

Rerun a job.

resolve

Resolve a hostname.

restore

Restore files.

run

Run a job.

setbandwidth

Sets bandwidth.

setdebug

Sets debug level.

setdevice

Sets device parameter.

setip

Sets new client address -- if authorized.

show

Show resource records.

sqlquery

Use SQL to query catalog.

status

Report status.

time

Print current time.

trace

Turn on/off trace to file.

truncate

Truncate purged volumes.

unmount

Unmount storage.

update

Update volume, pool, slots, job or statistics.

use

Use specific catalog.

var

Does variable expansion.

version

Print Director version.

wait

Wait until no jobs are running.

whoami

Print the user name associated with this console.

.

No op.

.acl

Manage console ACLs (Onesimus).

.actiononpurge

List possible actions on purge.

.api

Switch between different api modes.

.authorized

Check for authorization.

.bvfs_cleanup

Cleanup BVFS cache for a certain handle.

.bvfs_clear_cache

Clear BVFS cache.

.bvfs_get_jobids

Get jobids required for a restore.

.bvfs_lsdirs

List directories using BVFS.

.bvfs_lsfiles

List files using BVFS.

.bvfs_restore

Mark BVFS files/directories for restore. Stored in handle.

.bvfs_update

Update BVFS cache.

.bvfs_versions

List versions of a file.

.catalogs

List all catalog resources.

.clients

List all client resources.

.config

Read, create, change, delete configuration resources as raw text (Onesimus).

.consoles

List all console resources.

.defaults

Get default settings.

.filesets

List all filesets.

.grammar

Print the console grammar (Onesimus).

.grpc

Toggle gRPC mode.

.help

Print parsable information about a command.

.jobdefs

List all job defaults resources.

.jobs

List all job resources.

.jobstatus

List jobstatus information.

.levels

List all backup levels.

.locations

List location names.

.media

List all medias.

.mediatypes

List all media types.

.messages

Display pending messages.

.msgs

List all message resources.

.ovfs_latest

Job chain of a client's latest state (restore option 5).

.ovfs_ls

Direct children of one directory of a job chain (OVFS).

.ovfs_status

Show whether restore trees use the ovfs extension or the Director fallback.

.ovfs_tree

Restore tree of a job chain as JSON (OVFS).

.ovfs_versions

All versions of one file of a client (OVFS).

.pools

List all pool resources.

.profiles

List all profile resources.

.quit

Close connection.

.schedule

List all schedule resources.

.sql

Send an arbitrary SQL command.

.sqlcount

Count catalog records.

.sqlschema

Show catalog schema.

.sqltables

List catalog tables.

.status

Report status.

.storage

List all storage resources.

.types

List all job types.

.users

List all user resources.

.volstatus

List all volume status.