Restore catalog from bootstrap

115 views
Skip to first unread message

wizh...@gmail.com

unread,
Sep 22, 2023, 4:20:10 PM9/22/23
to bareos-users
I have followed the documentation and cannot get past the restore command requiring a jobid

The docs state

" After re-initializing the database, you should be able to run Bareos. If you now try to use the restore command, it will not work because the database will be empty. However, you can manually run a restore job and specify your bootstrap file. You do so by entering the run command in the console and selecting the restore job. If you are using the default Bareos Director configuration, this Job will be named RestoreFiles. Most likely it will prompt you with something such as:"

So o run in bconsole

run

then selec 14 for RestoreFiles

It then requires a jobid to continue but there are non yet in the database as I am trying to get the catalog using a bootstrap file.

What am I missing?





Oleg Volkov

unread,
Sep 26, 2023, 2:18:10 AM9/26/23
to bareos-users
Quite old, but still work in principal.

Bruno Friedmann (bruno-at-bareos)

unread,
Sep 27, 2023, 9:40:40 AM9/27/23
to bareos-users
Thank you to discover one part of the documentation that need to be rewritten.
Oleg todo is quite right in the term of using bextract with the bsr is the easiest way to have your catalog back, and maybe also you want to extract the previous configuration.

Please don't be shy and propose a PR to update the documentation.

Michael Kurz

unread,
Mar 4, 2024, 11:17:24 AM3/4/24
to bareos-users
So i tried this using the linked guide on my setup which has the director and the storage daemon on different machines, but got stuck at the bextract step, with bextract not finding the given device:

director-server:~# bextract -b /tmp/bs01-bootstrap BD01-BackupDisk /tmp/back
bextract: stored/butil.cc:299-0 Could not find device "BD01-BackupDisk" in config file <NULL>.
04-Mar 15:18 bextract JobId 0: Fatal error: stored/butil.cc:173 Cannot find device "BD01-BackupDisk" in config file <NULL>.

Specifying any configuration file form the director (bareos-dir.conf or stroage.conf where the storage is defined) complains about an incompatible configuration file. 

Do i understand it correctly that bextract can only work on the storage daemon server and not on the director server if these are different machines?
The link implies that it would work on the director server to, but maybe i understood it wrong.

So my question is can bextract be used from a director with the storage daemon on another machine? And if so, how would i do this?

Thanks in advance

Oleg Volkov

unread,
Mar 4, 2024, 12:44:42 PM3/4/24
to Michael Kurz, bareos-users
Very interesting question. Had not tried this in a distributed environment.
I could assume that bextract work without a director on storage itself.

Oleg Volkov
T: +972-50-7601914
Skype: voleg4u , WhatsApp.


--
You received this message because you are subscribed to a topic in the Google Groups "bareos-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/bareos-users/Yno-Z1DOOTY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to bareos-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bareos-users/880ef1e8-bf7a-4f5a-a52a-3dc2dacd948dn%40googlegroups.com.

Bruno Friedmann (bruno-at-bareos)

unread,
Mar 5, 2024, 4:19:09 AM3/5/24
to bareos-users
bextract is used directly with volume, so of course it is used on storage, so if yours is a remote, you have to use bextract there.

Leon Bartle

unread,
Jul 2, 2024, 9:51:53 AM7/2/24
to bareos-users
Slightly improved docs in https://github.com/bareos/bareos/pull/1878

Bruno Friedmann (bruno-at-bareos)

unread,
Jul 4, 2024, 7:11:55 AM7/4/24
to bareos-users
Thanks for the proposed Pr, don't forget to follow its state.
Reply all
Reply to author
Forward
0 new messages