bconsole
Start bconsole
bconsoleJobs
Run job immediately
run job=<JOB-NAME> yesCancel running job
cancel jobid=<JOBID>Show director status
status director
messagesDelete job from history
delete job jobid=<JOBID>Purge all jobs for a client
purge jobs client=<CLIENT-NAME> yesTemporarily disable / enable a job
disable job=<JOB-NAME>
enable job=<JOB-NAME>disable/enable are temporary — for a permanent change set Enabled = no/yes in the job config + reload
Clients
Add client
configure add client name=<CLIENT-NAME>-fd address=<HOST-ADDRESS> password=<PASSWORD>Check client status
status client=<CLIENT-NAME>-fdRemove client
# 1. Delete config file:
rm /etc/bareos/bareos-dir.d/client/<CLIENT-NAME>-fd.conf
# 2. In bconsole:
reloaddelete client does not exist in bconsole — remove config file + reload
Remove orphaned client records from catalog
# Run as bareos user — never as root!
su -s /bin/bash bareos -c "bareos-dbcheck -v -f"
# → Select option 10: Check for orphaned Client recordsbareos-dbcheck must run as bareos user — peer authentication fails as root
Config
Reload director config
reloadCheck config syntax (before reload)
bareos-dir -tVolumes
List all volumes
list volumesPurge all jobs from a volume
purge volume=<VOLUME-NAME> yesTruncate purged volume (free disk space)
truncate volstatus=Purged volume=<VOLUME-NAME> yesDelete volume from catalog
delete volume=<VOLUME-NAME> yesBareos never deletes files from the storage medium automatically — manual cleanup on the storage host is required
Pools
Update pool config in catalog
update pool=<POOL-NAME>List volumes in a pool
list volumes pool=<POOL-NAME>reload alone does not update pool settings in the catalog — always run update pool=<POOL-NAME> after changing pool config
Maximum Volumes must be sized for retention days × jobs per day (e.g. 30 days × 4 jobs = 120+ volumes)
Catalog
Reset catalog
systemctl stop bareos-director
su -s /bin/bash bareos -c /usr/lib/bareos/scripts/drop_bareos_tables
su -s /bin/bash bareos -c /usr/lib/bareos/scripts/make_bareos_tables
su -s /bin/bash bareos -c /usr/lib/bareos/scripts/grant_bareos_privileges
systemctl start bareos-directorRun all commands as bareos user — never as root!
Create pool in catalog
# In bconsole:
create pool=<POOL-NAME>Ports
| Service | Port |
|---|---|
| Director | 9101 |
| File Daemon | 9102 |
| Storage Daemon | 9103 |
| WebUI (HTTPS) | 443 |