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