You have the same Media Type=File in all your storages, which I think is the
most likely cause of the problem (see the doc for Media Type in
https://www.bacula.org/15.0.x-manuals/en/main/Storage_Daemon_Configuratio.html#SECTION0025300000000000000000).
Bacula uses the Media Type in some situations to decide which storage to use,
so it has to be unique for each storage where the media cannot be
interchanged.
Note that if you change this then you will need to change it in both the
bacula-dir.conf and the bacula-sd.conf and then delete and recreate all of the
media whose Media Type has changed. **THIS WILL LOSE THOSE BACKUPS**
__Martin
>>>>> On Tue, 4 Nov 2025 08:38:02 +0100, Andrea Venturoli said:
>
> Hello.
>
> I've got a system where I have two NAS storages and one HD based virtual
> autochanger.
>
> Clients do nighly backups on either NAS.
> Weekly I copy Fulls and Diffs to HDs (on the third storage).
>
> However, copy jobs from NAS A to HD work, while copy jobs from NAS B to
> HD don't.
> First they output the following warning:
>
> > Warning: Could not find a compatible Storage to read volumes in the
> > TBackupB Job definition (StorageB/File)
>
> then they ask me to mount the volume (which is on NAS B) on NAS A.
>
> I've tried and tried, but I cannot find the reason why the correct
> storage is not picked up.
> I'm pasting below an extract of my config: does anyone see what's wrong
> in it?
>
> bye & Thanks
> av.
>
> -------------------> Storage {
> > Name=StorageA
> > Address=...
> > Password="..."
> > Device=BackupA
> > Media Type=File
> > }
> > Storage {
> > Name=StorageB
> > Address=...
> > Password="..."
> > Device=BackupB
> > Media Type=File
> > }
> > Storage {
> > Name=HDChanger
> > Address=...
> > Password="..."
> > Device=HDChanger
> > Media Type=File
> > Autochanger=yes
> > }
> >
> > Pool {
> > Name=FullA
> > Pool Type=Backup
> > Storage=StorageA
> > Next Pool=ExtHD
> > }
> > Pool {
> > Name=FullB
> > Pool Type=Backup
> > Storage=StorageB
> > Next Pool=ExtHD
> > }
> > Pool {
> > Name=ExtHD
> > Pool Type=Backup
> > Storage=HDChanger
> > }
> >
> > JobDefs {
> > Name="DefaultJob"
> > Type=Backup
> > Level=Incremental
> > Client=...
> > FileSet="Catalog"
> > Schedule="Weekly"
> > Storage=StorageA
> > }
> >
> > Job {
> > Name=DBackupA
> > JobDefs="DefaultJob"
> > Full Backup Pool=FullA
> > }
> > Job {
> > Name=DBackupB
> > JobDefs="DefaultJob"
> > Full Backup Pool=FullB
> > Storage=StorageB
> > }
> > Job {
> > Name=TBackupA
> > JobDefs="DefaultJob"
> > Type=Copy
> > Selection Type=SQLQuery
> > Selection Pattern="SELECT * FROM (SELECT jobid,level,endtime FROM job
> > WHERE name='DBackupA' AND level='F' AND jobstatus='T' AND poolid!=7 ORDER
> > BY endtime DESC LIMIT 1) AS f UNION SELECT * FROM (SELECT
> > jobid,level,endtime FROM job WHERE name='DBackupA' AND level='D' AND
> > jobstatus='T' AND poolid!=7 AND endtime>(SELECT max(endtime) FROM job WHERE
> > name='DBackupA' AND level='F' AND jobstatus='T' AND poolid!=7) ORDER BY
> > endtime DESC LIMIT 1) AS d"
> > }
> > Job {
> > Name=TBackupB
> > JobDefs="DefaultJob"
> > Type=Copy
> > Selection Type=SQLQuery
> > Selection Pattern="SELECT * FROM (SELECT jobid,level,endtime FROM job
> > WHERE name='DBackupB' AND level='F' AND jobstatus='T' AND poolid!=7 ORDER
> > BY endtime DESC LIMIT 1) AS f UNION SELECT * FROM (SELECT
> > jobid,level,endtime FROM job WHERE name='DBackupB' AND level='D' AND
> > jobstatus='T' AND poolid!=7 AND endtime>(SELECT max(endtime) FROM job WHERE
> > name='DBackupB' AND level='F' AND jobstatus='T' AND poolid!=7) ORDER BY
> > endtime DESC LIMIT 1) AS d"
> > }
>
> P.S.
> I also tried adding "Storage=StorageB" to TBackupB job definition, but
> it did not help.
> However it works if I run the job manually and explicitly specify
> (source) pool and storage.
>
>
> _______________________________________________
> Bacula-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users