On Tuesday 2021-11-30 04:54:35 Bill Arlofski via Bacula-users wrote:
> Hello Josip,
> 
> I did a little research and found the old Mantis ticket I was referring
> to...
> 
> However, the result from the conversation with the developers was as
> follows:
> 
> 
> The "copies" option is doing only what is described in the manual:
> ----8<----
> If the keyword copies is present on the command line, Bacula
> Enterprise will DISPLAY the list of all copies for selected jobs.
> ----8<----
> 
> So, if you actually you want to restore from the copies, you need to
> cancel the restore at the point where the copy jobids are displayed,
> then run the restore job again but instead of specifying the client and
> fileset you can specify the copy jobids as follows:
> 
> * restore jobid=1,2,3,4,5   (where 1,2,3,4,5 are the jobids of the copy
> jobs)
> 
> It is not the way I would expect or hope the 'copies' option would
> function, but at least it is "functioning as documented"™  :)
> 
> Hope this helps. :)

Thank you Bill, it helped and restore from copy jobs from tape pool
works without issues now when I am properly using it.

I expected the "copies" argument to work exactly as the documentation
stated: "display the list of all copies for selected jobs" but I missed
and completely ignored the "copyjobid" column given in the list.

I was steered in the wrong direction by the part of the documentation
covering restore command line arguments which says:
"- pool=pool-name - specify a Pool name to be used for selection of
   Volumes when specifying option 5 and 6 (restore current system, and
   restore current system before given date). This permits you to have
   several Pools, possibly one offsite, and to select the Pool to be
   used for restoring."

That part with specifying pool (in my case tape1) doesn't work although
I am using separate storage, device and media type for that specific pool.
Maybe there is a bug regarding that because when I specify a pool, after
I select option 5 and then client and its particular job, it immediately
returns this output:
"No Full backup before 2021-11-30 09:42:58 found."


Thanks again, you helped a lot and I can confirm that restoring from
copy jobs is working with Bacula 9.6.7 when jobid= is used with the
values from the "copyjobid" column listed by "copies" argument.


Regards!

-- 
Josip Deanovic


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

Reply via email to