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
| Command | Description | Origin |
|---|---|---|
add | Add media to a pool. | Bareos |
autodisplay | Autodisplay console messages. | Bareos |
automount | Automount after label. | Bareos |
cancel | Cancel a job. | Bareos |
configure | Configure director resources. | Bareos, with Onesimus extensions |
create | Create DB Pool from resource. | Bareos |
delete | Delete volume, pool or job. | Bareos |
disable | Disable a job/client/schedule. | Bareos |
enable | Enable a job/client/schedule. | Bareos |
estimate | Performs FileSet estimate, listing gives full listing. | Bareos |
export | Export volumes from normal slots to import/export slots. | Bareos |
gui | Switch between interactive (gui off) and non-interactive (gui on) mode. | Bareos |
help | Print help on specific command. | Bareos |
import | Import volumes from import/export slots to normal slots. | Bareos |
label | Label a tape. | Bareos |
list | List objects from catalog. | Bareos |
memory | Print current memory usage. | Bareos |
messages | Display pending messages. | Bareos |
mount | Mount storage. | Bareos |
move | Move slots in an autochanger. | Bareos |
prune | Prune records from catalog. | Bareos |
purge | Purge records from catalog. | Bareos |
query | Query catalog. | Bareos |
quit | Terminate Bconsole session. | Bareos |
relabel | Relabel a tape. | Bareos |
release | Release storage. | Bareos |
reload | Reload conf file. | Bareos |
rerun | Rerun a job. | Bareos |
resolve | Resolve a hostname. | Bareos |
restore | Restore files. | Bareos |
run | Run a job. | Bareos |
setbandwidth | Sets bandwidth. | Bareos |
setdebug | Sets debug level. | Bareos |
setdevice | Sets device parameter. | Bareos |
setip | Sets new client address – if authorized. | Bareos |
show | Show resource records. | Bareos |
sqlquery | Use SQL to query catalog. | Bareos |
status | Report status. | Bareos |
time | Print current time. | Bareos |
trace | Turn on/off trace to file. | Bareos |
truncate | Truncate purged volumes. | Bareos |
unmount | Unmount storage. | Bareos |
update | Update volume, pool, slots, job or statistics. | Bareos |
use | Use specific catalog. | Bareos |
var | Does variable expansion. | Bareos |
version | Print Director version. | Bareos |
wait | Wait until no jobs are running. | Bareos |
whoami | Print the user name associated with this console. | Bareos |
Dot commands
| Command | Description | Origin |
|---|---|---|
. | No op. | Bareos |
.acl | Manage console ACLs (Onesimus). | Onesimus extension |
.actiononpurge | List possible actions on purge. | Bareos |
.api | Switch between different api modes. | Bareos |
.authorized | Check for authorization. | Bareos |
.bvfs_cleanup | Cleanup BVFS cache for a certain handle. | Bareos |
.bvfs_clear_cache | Clear BVFS cache. | Bareos |
.bvfs_get_jobids | Get jobids required for a restore. | Bareos |
.bvfs_lsdirs | List directories using BVFS. | Bareos |
.bvfs_lsfiles | List files using BVFS. | Bareos |
.bvfs_restore | Mark BVFS files/directories for restore. Stored in handle. | Bareos |
.bvfs_update | Update BVFS cache. | Bareos |
.bvfs_versions | List versions of a file. | Bareos |
.catalogs | List all catalog resources. | Bareos |
.clients | List all client resources. | Bareos |
.config | Read, create, change, delete configuration resources as raw text (Onesimus). | Onesimus extension |
.consoles | List all console resources. | Bareos |
.defaults | Get default settings. | Bareos |
.filesets | List all filesets. | Bareos |
.grammar | Print the console grammar (Onesimus). | Onesimus extension |
.grpc | Toggle gRPC mode. | Onesimus extension |
.help | Print parsable information about a command. | Bareos |
.jobdefs | List all job defaults resources. | Bareos |
.jobs | List all job resources. | Bareos |
.jobstatus | List jobstatus information. | Bareos |
.levels | List all backup levels. | Bareos |
.locations | List location names. | Bareos |
.media | List all medias. | Bareos |
.mediatypes | List all media types. | Bareos |
.messages | Display pending messages. | Bareos |
.msgs | List all message resources. | Bareos |
.ovfs_latest | Job chain of a client’s latest state (restore option 5). | Onesimus extension |
.ovfs_ls | Direct children of one directory of a job chain (OVFS). | Onesimus extension |
.ovfs_status | Show whether restore trees use the ovfs extension or the Director fallback. | Onesimus extension |
.ovfs_tree | Restore tree of a job chain as JSON (OVFS). | Onesimus extension |
.ovfs_versions | All versions of one file of a client (OVFS). | Onesimus extension |
.pools | List all pool resources. | Bareos |
.profiles | List all profile resources. | Bareos |
.quit | Close connection. | Bareos |
.schedule | List all schedule resources. | Bareos |
.sql | Send an arbitrary SQL command. | Bareos |
.sqlcount | Count catalog records. | Onesimus extension |
.sqlschema | Show catalog schema. | Onesimus extension |
.sqltables | List catalog tables. | Onesimus extension |
.status | Report status. | Bareos |
.storage | List all storage resources. | Bareos |
.types | List all job types. | Bareos |
.users | List all user resources. | Bareos |
.volstatus | List 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.