Could you post the joblog of that job ? If you cannot find 40548 in the database, then its probably because it got consolidated into a different job (maybe even into 41536).

bscan currently needs access to both the storage configuration as well as the database.  Alternatively you can also use bls instead which just needs access to the sd configuration.

In regards to updating the database: I would suggest that if you do that, that you make sure that you do not consolidate that job at first and instead do a normal restore with the updated entry and check that that 1) the restore works and 2) the files that were restored make sense to you, i.e. compare them with the entries of the job table for that job. Its hard to say why this happened so i cannot comment on how safe it is to keep using that incremental for consolidations.  If possible try creating a new full instead.

Kind Regards
Sebastian Sura

Am 19.06.24 um 09:54 schrieb 'Philippe' via bareos-users:
Hi Sebastian,

that's a good approach :)

The only jobmedia entry for job 41536 is:

$ psql <<<'select * from jobmedia where jobid=41536'
 jobmediaid | jobid | mediaid | firstindex | lastindex | startfile | endfile | startblock | endblock | jobbytes | volindex ------------+-------+---------+------------+-----------+-----------+---------+------------+----------+----------+----------      123840 | 41536 |     525 |          1 |        50 | 0 |       0 |        256 | 16770527 |        0 |        2

Is it safe to "just" update the startblock value to 255?

Job 40548 is somehow gone as I can't find it in the database. Probably it was no longer needed, i.e. from a decommissioned client or the jobs on that client changed.

How do I get bscan to work, what's the right way and what's needed to invoke it? I presume it needs both the database connection and the sd configs, right? Asking because the director (which also hosts the database) has no sd configs and on the other hand the sd has no database access.

Thank you & kind regards,

Philippe



On 6/19/24 08:29, Sebastian Sura wrote:
[snipped]

--
 Sebastian Sura                  [email protected]
 Bareos GmbH & Co. KG            Phone: +49 221 630693-0
 https://www.bareos.com
 Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
 Komplementär: Bareos Verwaltungs-GmbH
 Geschäftsführer: Stephan Dühr, Jörg Steffens, Philipp Storz

--
You received this message because you are subscribed to the Google Groups 
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/11ecff74-4ba7-46f2-9d7b-bae8ac8016b7%40bareos.com.

Reply via email to