On 31.01.2018 at 10:56 wrote Jens Köhler: > Thanks for your quick response, > > on our regular Bareos server, we defined a remote Storage Daemon, which runs > on a NAS. This Storage Daemon stores all backups and volumes. > So, in case of disaster recovery, we want to use this remote Storage Daemon > to bscan volumes from. > > Is this possible? It seems that bscan will only work with local Storage > Daemons somehow.
I've to admit, the documentation needs an update there. First of all: bscan is powerful, but only meant as a last resort. Use it only, if everything else has failed. The normal approach would be to restore your last catalog backup. Therefore the bootstrap of the backup and the backup volumes itself must be available. As a bonus, the catalog backup job also backups the configuration files. Replace the bareos-director: * setup a new director * extract the database backup and configuration files using the bootstrap file and bextract on the bareos-sd. * copy the configuration files onto the new server * restore the database using normal database tools * start the director http://doc.bareos.org/master/html/bareos-manual-main-reference.html#RestoringABareosServer > > > -----Ursprüngliche Nachricht----- > Von: [email protected] [mailto:[email protected]] Im > Auftrag von Jörg Steffens > Gesendet: Dienstag, 30. Januar 2018 21:16 > An: [email protected] > Betreff: [bareos-users] Re: Using bscan to disaster recover from bootstrap or > volume > > On 30.01.2018 at 18:08 wrote Jens Köhler: >> Hello guys, >> >> we want to simulate a disaster recovery in case our Bareos server gets >> destroyed. So we setup a new virtual machine running Bareos 17.2.4. When >> we try to start bscan to either recover the database with a bootstrap >> file or to scan a volume from tape, bscan just exits with different errors: >> >> bscan -B mysql -V AI-Consolidated-0001 -c >> /etc/bareos/bareos-dir.d/storage/backup.conf FileStorage1 -s -S > > With -c you specify the Storage Daemon configuration, not a Director > configuration. If it is located at the default location, there is no > need to specify them at all. > However, you have to specify the database settings. > > >> bscan: ERROR TERMINATION at parse_conf.c:292 >> >> *Config error: Keyword "Address" not permitted in this resource.* >> >> Perhaps you left the trailing brace off of the previous resource. >> >> : line 3, col 10 of file >> /etc/bareos/bareos-dir.d/storage/backup.conf >> >> Address = backup # N.B. Use a fully qualified name here >> (do not use "localhost" here). >> >> According to an old Bacula manual, they keyword „Address“ should be >> „SDAddress“. >> >> After changing that, bscan shows the same error message for Config >> error: „*Keyword "Password" not permitted in this resource.*“ >> >> What is the correct way to recover volumes/database/catalog from a >> remote storage daemon on a fresh Bareos install (using bscan)? >> >> >> Thanks in advance >> >> -- >> 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] >> <mailto:[email protected]>. >> To post to this group, send email to [email protected] >> <mailto:[email protected]>. >> For more options, visit https://groups.google.com/d/optout. > > -- Jörg Steffens [email protected] Bareos GmbH & Co. KG Phone: +49 221 630693-91 http://www.bareos.com Fax: +49 221 630693-10 Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646 Komplementär: Bareos Verwaltungs-GmbH Geschäftsführer: S. Dühr, M. Außendorf, Jörg Steffens, P. 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 post to this group, send email to [email protected]. For more options, visit https://groups.google.com/d/optout.
