plex-dbrepair

plex-dbrepair

Aplicación Docker from bmartino1's Repository

Visión general

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.

Requisitos

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

Argumentos en tiempo de ejecución

Red
bridge
Concha
bash
Privilegiado
false
Parámetros adicionales
--hostname dbrepair

Configuración de plantillas

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!

Objetivo
/config
Por defecto
/mnt/user/appdata/plex_Supply_the_Plex_appdata_folder_here
Valor
/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)

Por defecto
automatic
Valor
automatic
ALLOW_PLEX_KILLVariable

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

Por defecto
true
Valor
true
PLEX_CONTAINER_MATCHVariable

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

Por defecto
plex
Valor
plex
RESTART_PLEXVariable

T/F Restart Plex containers after repairs complete.

Por defecto
true
Valor
true
PRUNE_DAYSVariable

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

Por defecto
30
Valor
30
ENABLE_BACKUPSVariable

T/F Create timestamped database backups before any changes.

Por defecto
true
Valor
false
RESTORE_LAST_BACKUPVariable

T/F Restore most recent backup and exit.

Por defecto
false
Valor
false
EXCLUDE_CONTAINER_NAMESVariable

CSV list of containers that should never be stopped.

Por defecto
dbrepair,plex-dbrepair
Valor
dbrepair,plex-dbrepair
EXCLUDE_IMAGE_REGEXVariable

Image regex used to avoid stopping the dbrepair container itself.

Por defecto
plex-dbrepair
Valor
plex-dbrepair
Docker Run SocketPathrw

Required to manage Plex containers from Unraid.

Objetivo
/var/run/docker.sock
Por defecto
/var/run/docker.sock
Valor
/var/run/docker.sock

Descargar estadísticas

3,296
Descargas totales

Detalles

Repositorio
bmmbmm01/plex-dbrepair
Última actualización2026-01-13
Visto por primera vez2026-01-11

Ejecute plex-dbrepair en Unraid.

plex-dbrepair se encuentra en Community Apps para Unraid OS. Explore Unraid para crear un servidor doméstico flexible, un NAS o un laboratorio doméstico.