View Issue Details

IDProjectCategoryView StatusLast Update
0001370bareos-core[All Projects] Generalpublic2021-09-07 10:33
ReporterIntAssigned To 
Status newResolutionopen 
PlatformLinuxOSCentOSOS Version7
Product Version19.2.10 
Fixed in Version 
Summary0001370: btape -c option does not work with storage configuration file
DescriptionI want to run btape on tapes which were written with a non-default blocksize of 1048576
I found out that I have to use option -c to specify this.
But when running $ btape -c /etc/bareos/bareos-dir.d/storage/Tape.conf
it fails with error:

Tape block granularity is 1024 bytes.
btape: ERROR TERMINATION at lib/
Config error: Keyword "Address" not permitted in this resource.
Perhaps you left the trailing brace off of the previous resource.
            : line 3, col 11 of file /etc/bareos/bareos-dir.d/storage/Tape.conf
  Address =

The documentation at
also does not say much about option -c and which configuration should be specified here.
It should be more specific.
TagsNo tags attached.
bareos-master: impact
bareos-master: action
bareos-19.2: impact
bareos-19.2: action
bareos-18.2: impact
bareos-18.2: action
bareos-17.2: impact
bareos-17.2: action
bareos-16.2: impact
bareos-16.2: action
bareos-15.2: impact
bareos-15.2: action
bareos-14.2: impact
bareos-14.2: action
bareos-13.2: impact
bareos-13.2: action
bareos-12.4: impact
bareos-12.4: action




2021-09-07 10:33

developer   ~0004254

To properly launch btape, you have to know that -c is looking for a bundled bareos-sd.conf (aka the old way of doing thing) or a subdir called bareos-sd.d (new configuration globbing) into the path given.
So normally all your SD configuration are located under /etc/bareos/bareos-sd.d location so translated to btape give the following

```btape -c /etc/bareos```

you're welcome to propose a PR with improved text for the documentation :-)

Issue History

Date Modified Username Field Change
2021-07-19 09:22 Int New Issue
2021-09-07 10:33 bruno-at-bareos Note Added: 0004254