bscan Cannot find device in config file <NULL>

116 views
Skip to first unread message

Andrea Palazzi

unread,
Jan 8, 2021, 11:40:21 AM1/8/21
to bareos-users
Hi,

I'm trying to restore the bareos database from the backup files with bscan, however, while it worked until some days ago, it doesn't work now and I don't understand what's the cause.


Here is the my bscan command:
root@atlante:/srv/casa/bareos-recover# bscan -c/etc/bareos/ -d 999 -B postgresql -n bareos -u bareos -P '{password}' -v -m -s -b bootstrap-full-recover.bsr /srv/casa/bareos-recover/data/
bscan: butil.c:267-0 Could not find device "/srv/casa/bareos-recover/data/" in config file /etc/bareos/.
08-gen 17:31 bscan JobId 0: Fatal error: butil.c:141 Cannot find device "/srv/casa/bareos-recover/data/" in config file /etc/bareos/.

The file /etc/bareos/bareos-sd.d/storage/FileStorage.conf contains the storage:
Device {
  Name = FileStorage
  Media Type = File
#  Archive Device = /var/lib/bareos/storage
 Archive Device = /srv/casa/bareos-recover/data
  LabelMedia = yes;                   # lets Bareos label unlabeled media
  Random Access = yes;
  AutomaticMount = yes;               # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = no;
  Description = "File device. A connecting Director must have the same Name and MediaType."
}

Attached to the email is the full log with debug info.

Any clue on what I'm doing wrong? Maybe a permission issue, eve though I'm running the command as root?

Thanks,
Andrea
log

Oleg Volkov

unread,
Jan 9, 2021, 5:33:28 AM1/9/21
to bareos-users
I did bareos recover (for older version) this way. ( http://www.voleg.info/bareos-disaster-recovery.html )
Reply all
Reply to author
Forward
0 new messages