Hello,

On 11/30/21 22:31, Phil Stracchino wrote:
On 11/30/21 14:54, Josip Deanovic wrote:
On Tuesday 2021-11-30 12:07:37 Phil Stracchino wrote:

The question then ceases to be "I have twenty possible volumes from
which your restore could be performed, which five of the twenty volumes
do you want to use?", and instead becomes, "I have four possible SOURCES
to perform this restore from, please pick *one restore source*."

The restore command of the bconsole tool already has the "pool" command
line argument which could be used for volume selection.

In my case with Bacula 9.6.7 it didn't work with copy jobs. It would be
nice to make it work with newer Bacula versions (e.g. 11.x).

Eric mentioned that MediaType might potentially be used in the selection
algorithm. I am not sure if this is necessary if we get a working "pool="
argument.


Indeed, and Pool is probably a better discriminator in this case than MediaType.  In my case, the two relevant pools for Full backups are Full-Disk and Full-Archive, and both are Media Type = File.  In any random hypothetical environment with copy jobs, I would expect it to be far more likely that Copy jobs will be in a different Pool than that they will have a different media type.

I don't know, personally, I'm using different pools to have different retention,
so, we have a simple case where all jobs are in one pool (from Full to the last Incr), but it's a corner case as well.

We can add a pool= or a mediatype= kind of keyword in the restore command line,
however, it's far from being very friendly as what we can find in Baculum for example. I will think about it and your ideas are welcome.

Thanks,
Best Regards,
Eric



_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to