How to delete and start over in Bareos 21 with Postgres

417 views
Skip to first unread message

Bob Cousins

unread,
Feb 4, 2022, 2:20:45 PM2/4/22
to bareos-users
I've just installed Bareos 21 and have played with the various configuration files, moved volumes around, etc.  Think of this as a dress rehearsal for going into product.

So, now I want to delete the history, volumes, etc. and start from scratch using the current configuration files. Then I can go into production with a solid, ready to do configuration.

Does anyone have the magic command(s) that will bring me back to the start? (And I'd think this would be something highlighted in the manual, but it isn't.)

Andreas Haase

unread,
Feb 4, 2022, 3:28:46 PM2/4/22
to Bob Cousins, bareos-users
Hello,


Am 04.02.2022 um 20:20 schrieb Bob Cousins <r...@RCousins.com>:

Does anyone have the magic command(s) that will bring me back to the start? (And I'd think this would be something highlighted in the manual, but it isn't.)

The magic commands are mentioned in https://docs.bareos.org/TasksAndConcepts/CatalogMaintenance.html.

There are some scripts shipped in bareos-database-common package. On Debian you’ll find

/usr/lib/bareos/scripts/drop_bareos_database

/usr/lib/bareos/scripts/create_bareos_database
/usr/lib/bareos/scripts/make_bareos_tables
/usr/lib/bareos/scripts/grant_bareos_privileges

Additionally delete the media files and you can start from scratch.

Bye,
Andreas

Bob Cousins

unread,
Feb 4, 2022, 3:30:46 PM2/4/22
to Andreas Haase, bareos-users
Thank you for your (1) fast, (2) simple, and (3) complete answer!

On 2/4/2022 12:28 PM, Andreas Haase wrote:
> Hello,
>
>> Am 04.02.2022 um 20:20 schrieb Bob Cousins <r...@RCousins.com>:
>>
>> Does anyone have the magic command(s) that will bring me back to the start? (And I'd think this would be something highlighted in the manual, but it isn't.)
>
> The magic commands are mentioned in https://docs.bareos.org/TasksAndConcepts/CatalogMaintenance.html <https://docs.bareos.org/TasksAndConcepts/CatalogMaintenance.html>.
Reply all
Reply to author
Forward
0 new messages