I found the solution ...
First step:
su -s /bin/bash - bareos
...
when I run the command I get errors like this:
bscan: bscan.c:779-0 Could not find Job for SessId=12 SessTime=1536138886
record.
bscan: bscan.c:779-0 Could not find Job for SessId=12 SessTime=1536138886
record.
bscan: bscan.c:779-0 Could not find Job for SessId=12 SessTime=1536138886
record.
bscan: bscan.c:779-0 Could not find Job for SessId=12 SessTime=1536138886
....
When I run the command without the option -s no error ist postst but:
bareos@kvm02:~$ /usr/sbin/bscan -B postgresql -n bareos -u bareos -P 'secret'
-v -m -V Full-0046 /backup/bareos/storage
bscan: butil.c:273-0 Using device: "/backup/bareos/storage" for reading.
20-Okt 19:48 bscan JobId 0: Ready to read from volume "Full-0046" on device
"FileStorage" (/backup/bareos/storage).
bscan: bscan.c:345-0 Using Database: bareos, User: bareos
bscan: bscan.c:537-0 Pool record for Full found in DB.
bscan: bscan.c:551-0 Pool type "Backup" is OK.
bscan: bscan.c:563-0 Media record for Full-0046 found in DB.
bscan: bscan.c:582-0 Media type "File" is OK.
bscan: bscan.c:595-0 VOL_LABEL: OK for Volume: Full-0046
20-Okt 19:52 bscan JobId 0: End of Volume at file 12 on device "FileStorage"
(/backup/bareos/storage), Volume "Full-0046"
bscan (0): bscan.c:382-0 ========== JobId=0 ========
bscan: bscan.c:1166-0 Updated Media record at end of Volume: Full-0046
20-Okt 19:52 bscan JobId 0: End of all volumes.
bscan: bscan.c:1166-0 Updated Media record at end of Volume: Full-0046
bscan: bscan.c:767-0 End of all Volumes. VolFiles=12 VolBlocks=0
VolBytes=53,657,095,658
Records would have been added or updated in the catalog:
1 Media
1 Pool
0 Job
0 File
0 RestoreObject
No job, no file ... why?
--
You received this message because you are subscribed to the Google Groups
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.