Hello Josip,

I think this may be a bug.

I seem to recall noticing this a long time ago, and feel like I opened a Mantis 
about it.

I was going to recommend that you upgrade from the quite old 9.x version to the 
11.0.5 version currently available... But
when I checked my environment, I noticed something interesting which may 
trigger me to open a bug report.

So, I have this job called "Speedy" that gets written to removable disks, and 
is then copied via Bacula copy jobs to a remote
Synology NFS share.

I tried the following:

* restore copies client=speedy-fd fileset=SpeedyFullFileSet  (notice 'copies' 
is specified)

[...snip...]

To select the JobIds, you have the following choices:
1: List last 20 Jobs run
2: List Jobs where a given File is saved
3: Enter list of comma separated JobIds to select
4: Enter SQL list command
5: Select the most recent backup for a client
6: Select backup for a client before a specified time
7: Enter a list of files to restore
8: Enter a list of files to restore before a specified time
9: Find the JobIds of the most recent backup for a client
10: Find the JobIds for a backup for a client before a specified time
11: Enter a list of directories to restore for found JobIds
12: Select full restore to a specified Job date
13: Cancel
Select item:  (1-13): 5   <- I choose the latest backup for this client/fileset 
pair

Then I get a list of jobids and volumes of this most recent set of backups to 
restore this client:
+--------+-------+----------+-----------------+---------------------+--------------+
| jobid  | level | jobfiles | jobbytes        | starttime           | 
volumename   |
+--------+-------+----------+-----------------+---------------------+--------------+
| 43,699 | F     |  611,720 | 309,778,083,926 | 2021-11-24 23:00:01 | 
c0_0011_0030 |
| 43,699 | F     |  611,720 | 309,778,083,926 | 2021-11-24 23:00:01 | 
c0_0011_0036 |
| 43,699 | F     |  611,720 | 309,778,083,926 | 2021-11-24 23:00:01 | 
c0_0011_0040 |
| 43,699 | F     |  611,720 | 309,778,083,926 | 2021-11-24 23:00:01 | 
c0_0011_0021 |
| 43,699 | F     |  611,720 | 309,778,083,926 | 2021-11-24 23:00:01 | 
c0_0011_0034 |
| 43,699 | F     |  611,720 | 309,778,083,926 | 2021-11-24 23:00:01 | 
c0_0011_0032 |
| 43,699 | F     |  611,720 | 309,778,083,926 | 2021-11-24 23:00:01 | 
c0_0011_0035 |
| 43,699 | F     |  611,720 | 309,778,083,926 | 2021-11-24 23:00:01 | 
c0_0011_0028 |
| 43,699 | F     |  611,720 | 309,778,083,926 | 2021-11-24 23:00:01 | 
c0_0011_0038 |
| 43,699 | F     |  611,720 | 309,778,083,926 | 2021-11-24 23:00:01 | 
c0_0011_0017 |
| 43,699 | F     |  611,720 | 309,778,083,926 | 2021-11-24 23:00:01 | 
c0_0011_0043 |
| 43,699 | F     |  611,720 | 309,778,083,926 | 2021-11-24 23:00:01 | 
c0_0011_0031 |
| 43,699 | F     |  611,720 | 309,778,083,926 | 2021-11-24 23:00:01 | 
c0_0011_0039 |
| 43,699 | F     |  611,720 | 309,778,083,926 | 2021-11-24 23:00:01 | 
c0_0011_0019 |
| 43,699 | F     |  611,720 | 309,778,083,926 | 2021-11-24 23:00:01 | 
c0_0011_0025 |
| 43,699 | F     |  611,720 | 309,778,083,926 | 2021-11-24 23:00:01 | 
c0_0011_0027 |
| 43,699 | F     |  611,720 | 309,778,083,926 | 2021-11-24 23:00:01 | 
c0_0011_0020 |
| 43,699 | F     |  611,720 | 309,778,083,926 | 2021-11-24 23:00:01 | 
c0_0011_0024 |
| 43,699 | F     |  611,720 | 309,778,083,926 | 2021-11-24 23:00:01 | 
c0_0011_0023 |
| 43,699 | F     |  611,720 | 309,778,083,926 | 2021-11-24 23:00:01 | 
c0_0011_0016 |
| 43,699 | F     |  611,720 | 309,778,083,926 | 2021-11-24 23:00:01 | 
c0_0011_0037 |
| 43,699 | F     |  611,720 | 309,778,083,926 | 2021-11-24 23:00:01 | 
c0_0011_0041 |
| 43,699 | F     |  611,720 | 309,778,083,926 | 2021-11-24 23:00:01 | 
c0_0011_0011 |
| 43,699 | F     |  611,720 | 309,778,083,926 | 2021-11-24 23:00:01 | 
c0_0011_0042 |
| 43,699 | F     |  611,720 | 309,778,083,926 | 2021-11-24 23:00:01 | 
c0_0011_0015 |
| 43,699 | F     |  611,720 | 309,778,083,926 | 2021-11-24 23:00:01 | 
c0_0011_0022 |
| 43,699 | F     |  611,720 | 309,778,083,926 | 2021-11-24 23:00:01 | 
c0_0011_0029 |
| 43,699 | F     |  611,720 | 309,778,083,926 | 2021-11-24 23:00:01 | 
c0_0011_0033 |
| 43,699 | F     |  611,720 | 309,778,083,926 | 2021-11-24 23:00:01 | 
c0_0011_0026 |
| 43,699 | F     |  611,720 | 309,778,083,926 | 2021-11-24 23:00:01 | 
c0_0011_0018 |
| 43,725 | I     |   35,240 |   9,123,309,128 | 2021-11-25 23:00:01 | 
c0_0011_0014 |
| 43,751 | I     |   11,708 |  15,299,958,833 | 2021-11-26 23:00:01 | 
c0_0011_0010 |
| 43,751 | I     |   11,708 |  15,299,958,833 | 2021-11-26 23:00:01 | 
c0_0011_0014 |
| 43,751 | I     |   11,708 |  15,299,958,833 | 2021-11-26 23:00:01 | 
c0_0011_0046 |
| 43,751 | I     |   11,708 |  15,299,958,833 | 2021-11-26 23:00:01 | 
c0_0011_0045 |
| 43,777 | I     |    4,165 |   9,470,437,163 | 2021-11-27 23:00:00 | 
c0_0011_0046 |
| 43,803 | I     |    2,541 |   4,543,895,178 | 2021-11-28 23:00:00 | 
c0_0011_0048 |
+--------+-------+----------+-----------------+---------------------+--------------+


So far, so good... BUT it gets better because Bacula notices that I have copies 
of these five jobs! Excellent!

So it prints:

These JobIds have copies as follows:
+--------+-------------------------------+-----------+---------------+
| jobid  | job                           | copyjobid | mediatype     |
+--------+-------------------------------+-----------+---------------+
| 43,803 | Speedy.2021-11-29_03.15.00_39 |    43,813 | Synology-File |
| 43,777 | Speedy.2021-11-28_03.15.00_39 |    43,788 | Synology-File |
| 43,751 | Speedy.2021-11-27_03.15.00_39 |    43,762 | Synology-File |
| 43,725 | Speedy.2021-11-26_03.15.00_39 |    43,736 | Synology-File |
| 43,699 | Speedy.2021-11-25_03.15.00_08 |    43,710 | Synology-File |
+--------+-------------------------------+-----------+---------------+

But then this is where the breakdown is...

Bacula ignores those five copy jobids, and reports that it is building the 
restore tree from the original backups jobids:

You have selected the following JobIds: 43699,43725,43751,43777,43803

Building directory tree for JobId(s) 43699,43725,43751,43777,43803 ...  
+++++++++++++++++++++++++++++++++++++++++++++
554,180 files inserted into the tree.


So, I think I need to report this. (or amend the Mantis if one exists :)


Best regards,
Bill

--
Bill Arlofski
w...@protonmail.com



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

Reply via email to