Repository navigation
Typical Usage
DBRepair works on the databases only while Plex Media Server is stopped. Automatic stops and restarts Plex Media Server for you where the host allows it. For every other command, stop Plex Media Server first.
Use Automatic (2). It checks both databases first. If they're healthy it does nothing. If either needs work, both are rebuilt together and verified before Plex Media Server is restarted.
Example: ./DBRepair auto exit
- (2) Automatic - Does the job.
- (9) Replace - If Automatic can't, this is next. Each backup is checked first.
- (99) Exit
- (3) Check - Confirm which database is damaged.
- (5) Repair - Salvage as much as possible into new databases.
- (99) Exit
If Repair reports unrecoverable damage, the only option left is Replace with a Plex backup. Restoring a database from anywhere else is your responsibility.
(23) Deflate is available on its own if you only want that step, but slower.
- (3) Check - Confirm there is no damage.
- (5) Repair - Force a full rebuild. You're rebuilding the database in perfect sorted order.
- (99) Exit
Standard integrity checks pass but the FTS (Full-Text Search) indexes are damaged.
- (3) Check - Reports the FTS indexes as damaged.
- (5) Repair - Rebuilds the databases, including FTS.
- (99) Exit
(2) Automatic finds and repairs this too.
- (12) History - Lists every step this session.
[0]is your original databases. - (13) Revert - Enter the number to go back to. Everything after it is discarded.
Example: If Replace left you worse off than before, use History to find the index where Replace occurred, then Revert to that index. When it's complete, it's as if the Replace never happened.
- (99) Exit - Normal exit. Cleans up all temporary files.
- (98) Quit - Aborts and keeps all the temporary files. Use it when you need help.
Documentation for DBRepair v26.10.00
DBRepair is proprietary software. Copyright: @ChuckPA 2022-2026 All Rights Reserved.
Use at own risk! This tool is not associated with Plex Inc.