![]() |
![]()
| ![]() |
![]()
NAMEbareos-dbcheck - Bareos's Catalog Database Check/Clean program SYNOPSISdbcheck [options] working-directory bareos-database user password [dbhost] [dbport] DESCRIPTIONThis manual page documents briefly the bareos-dbcheck command. bareos-dbcheck will not repair your database if it is broken. Please see your vendor's instructions for fixing broken database. bareos-dbcheck is a simple program that will search for logical inconsistencies in the Bareos tables in your database, and optionally fix them. It is a database maintenance routine, in the sense that it can detect and remove unused rows, but it is not a database repair routine. To repair a database, see the tools furnished by the database vendor. Normally dbcheck should never need to be run, but if Bareos has crashed or you have a lot of Clients, Pools, or Jobs that you have removed, it could be useful. OPTIONSA summary of options is included below.
INTERACTIVE MODEIn interactive mode dbcheck will prompt with the following: Hello, this is the database check/correct program. Please select
the function you want to perform.
By entering 1 or 2, you can toggle the modify database flag (-f option) and the verbose flag (-v). It can be helpful and reassuring to turn off the modify database flag, then select one or more of the consistency checks (items 3 through 9) to see what will be done, then toggle the modify flag on and re-run the check. The inconsistencies examined are the following: Duplicate filename records. This can happen if you accidentally
run two
Repair bad Filename records. This checks and corrects filenames
that have
Repair bad Path records. This checks and corrects path names that
do not
Duplicate path records. This can happen if you accidentally run
two copies
Orphaned JobMedia records. This happens when a Job record is
deleted
Orphaned File records. This happens when a Job record is deleted
(perhaps
Orphaned Path records. This condition happens any time a directory
is
Orphaned Filename records. This condition happens any time a file
is
Orphaned Client records. These records can remain in the database
long
Orphaned Job records. If no client is defined for a job or you do
not run
All Admin records. This command will remove all Admin records,
All Restore records. This command will remove all Restore records,
By the way, I personally run dbcheck only where I have messed up my database due to a bug in developing Bareos code, so normally you should never need to run dbcheck inspite of the recommendations given above, which are given so that users don't waste their time running dbcheck too often. SEE ALSObls(1), bextract(1). AUTHORThis manual page was written by Jose Luis Tallon <jltallon@adv-solutions.net>.
|