Hi Rui (@Plural)
OK, I see your need. Thanks. So, you need to archive data from the one Bacula client for long term use, right?
In this settings I think you are doing it correctly with one missing compoment. The most important point is to have two Bacularis API:
1) one already existing for main Bacula Catalog
2) one new for the external Bacula Catalog
This 1) you already have. This 2) is something to create. Using Bacularis installation with binary packages this can be hard to create one more Bacularis API on the same host but different port. This second Bacularis API could be installed in another way if you want to do that. After the newly created API host connection in web interface will connect directly to this new API host.
At the moment I tried this environment with two Catalogs and two APIs. This looks to be quite fine with the Restore wizard exception. Jobs for the external client are listed connectly in Restore wizard, but there is a problem with listing content of the jobs in the restore file browser. This is because if we have multiple catalogs in one Director, then some Bacula bconsole commands, which require Catalog access, ask question about which Catalog should be used.
In case the restore wizard there are couple of commands (ex. Bvfs commands) which asks question - which catalog should be used. The Catalog settings in bconsole is done by use command. The only problem with this command is that Bacularis does not support it.
*.bvfs_update jobid="1"
You must specify a "use <catalog-name>" command before continuing.
Could not find a Catalog resource
I tried to use Console ACLs to limit Catalogs for this second API host to only one Catalog. This way the bconsole should not ask questions about multiple catalogs because it will have access to only one. But as I experienced at the moment, this does not work even if we give access to only one Catalog. Probably creating bconsole wrapper for this external Bacularis API could work where this wrapper opens bconsole and executes use command to select the Catalog for all this bconsole session. But I didn't try this wrapper.
In Bacularis we could think about adding this Catalog selection support. This might be not bad feature. But for now I am thinking about the original problem that we are trying to solve and I am wondering if using one Catalog and setting enough big job/file retention time for this external client would be sufficient? Did you take into account the retention values settings for that?
Best regards,
Marcin Haba (gani)