plex-dbrepair

plex-dbrepair

Application Docker from bmartino1's Repository

Vue d'ensemble

You must mount your Plex container's appdata folder into this container. Example: /mnt/user/appdata/plex Inside this folder you should see the directory structure: Library/Application Support/Plex Media Server Do NOT mount the Library folder itself. Mount the parent Plex appdata directory. The script runs once automatically and repairs the Plex database, then the container exits. No Plex container or Plex process should be running during repair. Check container logs to monitor progress. You may also open the console and run "top" to verify activity.

Exigences

YOU ARE ULTIMATELY RESPONSIBLE FOR YOUR DATA. PLEX MUST BE STOPPED BEFORE RUNNING THIS TOOL. Mount your Plex appdata folder into this container.

Arguments d'exécution

Réseau
bridge
Coquille
bash
Privilégié
false
Paramètres supplémentaires
--hostname dbrepair

Configuration du modèle

Plex Appdata FolderPathrw

THE OTHER CONTAINERS APPDATA FOLDER!!! The Path to your Plex container appdata folder (the folder that CONTAINS the 'Other Plex Containers Library' directory). Example: /mnt/user/appdata/plex. Inside this folder, you should see 'Library'. Do NOT mount the Library folder itself!

Cible
/config
Défaut
/mnt/user/appdata/plex_Supply_the_Plex_appdata_folder_here
Valeur
/mnt/user/appdata/plex_Supply_the_Plex_appdata_folder_here
DBREPAIR_MODEVariable

automatic (check, vacuum, reindex) · check (integrity check only) · vacuum (optimize database) · repair (alias for vacuum) · reindex (rebuild indexes) · deflate (VACUUM INTO rewrite) · prune (clear PhotoTranscoder cache)

Défaut
automatic
Valeur
automatic
ALLOW_PLEX_KILLVariable

T/F If enabled, the container will stop running Plex containers before database operations begin. Requires /var/run/docker.sock.

Défaut
true
Valeur
true
PLEX_CONTAINER_MATCHVariable

Pattern used to identify Plex containers to stop by name or image.

Défaut
plex
Valeur
plex
RESTART_PLEXVariable

T/F Restart Plex containers after repairs complete.

Défaut
true
Valeur
true
PRUNE_DAYSVariable

Files older than this number of days will be removed from the PhotoTranscoder cache when using DBREPAIR_MODE=prune.

Défaut
30
Valeur
30
ENABLE_BACKUPSVariable

T/F Create timestamped database backups before any changes.

Défaut
true
Valeur
false
RESTORE_LAST_BACKUPVariable

T/F Restore most recent backup and exit.

Défaut
false
Valeur
false
EXCLUDE_CONTAINER_NAMESVariable

CSV list of containers that should never be stopped.

Défaut
dbrepair,plex-dbrepair
Valeur
dbrepair,plex-dbrepair
EXCLUDE_IMAGE_REGEXVariable

Image regex used to avoid stopping the dbrepair container itself.

Défaut
plex-dbrepair
Valeur
plex-dbrepair
Docker Run SocketPathrw

Required to manage Plex containers from Unraid.

Cible
/var/run/docker.sock
Défaut
/var/run/docker.sock
Valeur
/var/run/docker.sock

Télécharger les statistiques

3,296
Total des téléchargements

Détails

Référentiel
bmmbmm01/plex-dbrepair
Dernière mise à jour2026-01-13
Première vue2026-01-11

Exécutez plex-dbrepair sur Unraid.

plex-dbrepair est listé dans Community Apps pour Unraid OS. Explorez Unraid pour créer un serveur domestique flexible, un NAS ou un laboratoire domestique.