plex-dbrepair

plex-dbrepair

Docker-Anwendung from bmartino1's Repository

Übersicht

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.

Anforderungen

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

Laufzeit-Argumente

Netzwerk
bridge
Shell
bash
Privilegiert
false
Extra Params
--hostname dbrepair

Konfiguration der Vorlage

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!

Ziel
/config
Standard
/mnt/user/appdata/plex_Supply_the_Plex_appdata_folder_here
Wert
/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)

Standard
automatic
Wert
automatic
ALLOW_PLEX_KILLVariable

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

Standard
true
Wert
true
PLEX_CONTAINER_MATCHVariable

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

Standard
plex
Wert
plex
RESTART_PLEXVariable

T/F Restart Plex containers after repairs complete.

Standard
true
Wert
true
PRUNE_DAYSVariable

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

Standard
30
Wert
30
ENABLE_BACKUPSVariable

T/F Create timestamped database backups before any changes.

Standard
true
Wert
false
RESTORE_LAST_BACKUPVariable

T/F Restore most recent backup and exit.

Standard
false
Wert
false
EXCLUDE_CONTAINER_NAMESVariable

CSV list of containers that should never be stopped.

Standard
dbrepair,plex-dbrepair
Wert
dbrepair,plex-dbrepair
EXCLUDE_IMAGE_REGEXVariable

Image regex used to avoid stopping the dbrepair container itself.

Standard
plex-dbrepair
Wert
plex-dbrepair
Docker Run SocketPathrw

Required to manage Plex containers from Unraid.

Ziel
/var/run/docker.sock
Standard
/var/run/docker.sock
Wert
/var/run/docker.sock

Statistik herunterladen

3,296
Downloads insgesamt

Einzelheiten

Repository
bmmbmm01/plex-dbrepair
Zuletzt aktualisiert2026-01-13
Erstmals gesehen2026-01-11

Führen Sie plex-dbrepair auf Unraid aus.

plex-dbrepair ist gelistet in Community Apps für Unraid OS. Erkunden Sie Unraid, um einen flexiblen Heimserver, ein NAS oder ein Heimlabor aufzubauen.