# ChuckPa/DBRepair

Database repair utility for Plex Media Server databases

Repository: https://github.com/ChuckPa/DBRepair
Canonical: https://ross.abutalabs.com/products/dbrepair
Language: Shell
License: NOASSERTION
License Family: other
Last push: 2026-08-12T00:44:44+00:00

## Health v2 (maintenance only)
Score: 76/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 35, longevity 100
- inputs: {"age_days": 1462, "days_push": 22, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1734, forks 72 (observed 2026-08-28T04:05:28.995536+00:00)

## What it is
A shell-based command-line utility for repairing, optimizing, and maintaining Plex Media Server SQLite databases. It runs from a terminal or SSH session with sufficient privileges to read and write the Plex database files.

## Use cases
- repair a corrupted Plex Media Server database
- vacuum and optimize the Plex database to reclaim space
- fix 'database is malformed' errors in Plex
- rebuild indexes in the Plex library database
- back up the Plex database before making changes
- check Plex database integrity from the command line

## When to choose
- your Plex Media Server database is corrupted or showing integrity errors
- you want to optimize or vacuum a large Plex database
- you manage Plex on Linux, macOS, or NAS from a terminal or SSH session
- you need a safe, scripted way to back up and repair the Plex DB

## When to avoid
- you run Plex Media Server 1.43.0 or newer, where the tool is currently incompatible (FTS repair disabled)
- you need a graphical tool for database maintenance
- you want to repair databases other than Plex Media Server's

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: database, developer-tools, cli
- domain: databases, developer-tools, self-hosted
- platform: cli
- tags: plex-media-server, sqlite, database-repair, database-maintenance, shell-script, command-line, linux, macos, shell

## Member repositories
- ChuckPa/DBRepair (main) score 76

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:28.995536+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:30:51.498550+00:00, confidence not recorded.
  - readme: https://github.com/ChuckPa/DBRepair (fetched 2026-08-28T04:05:28.995536+00:00, sha e02426c8f9ce)
- Data as of 2026-08-30T08:39:29.467469+00:00.
