Generate a bootstrap file for copied jobs ?

16 views
Skip to first unread message

Peter Van Biesen

unread,
Dec 5, 2019, 9:17:09 AM12/5/19
to bareos-users
Hi,

In my setup, every month, the first jobs of the month are copied out of the standard pools into a separate pool. The problem is, restoring from that pool takes long so I'd like to generate bootstrap files for every copied job in the pool. For standard jobs, one can run restore to let bconsole generate an optimized bootstrap file but for copied jobs, this is not possible.

I could create the files from the output of bls -j but I'd rather have a bareos program do this.

Anybody have any idea how I could do this ? For reference, this is an example output of bls :

Begin Job Session Record: File:blk=0:272279373 SessId=3 SessTime=1575302951 JobId=84
   Job=vbxl136-files.2019-12-02_17.09.43_28 Date=02-Dec-2019 17:09:51 Level=F Type=B
End Job Session Record: File:blk=3:3441583216 SessId=3 SessTime=1575302951 JobId=84
   Date=02-Dec-2019 17:11:38 Level=F Type=B Files=3,267 Bytes=16,036,871,891 Errors=0 Status=T

Thanks in advance,

Peter.
Reply all
Reply to author
Forward
0 new messages