plex-dbrepair

plex-dbrepair

Docker 应用程序 from bmartino1's Repository

概述

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.

要求

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

运行时参数

网络
bridge
外壳
bash
特权
false
额外参数
--hostname dbrepair

模板配置

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!

目标
/config
默认值
/mnt/user/appdata/plex_Supply_the_Plex_appdata_folder_here
价值
/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)

默认值
automatic
价值
automatic
ALLOW_PLEX_KILLVariable

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

默认值
true
价值
true
PLEX_CONTAINER_MATCHVariable

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

默认值
plex
价值
plex
RESTART_PLEXVariable

T/F Restart Plex containers after repairs complete.

默认值
true
价值
true
PRUNE_DAYSVariable

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

默认值
30
价值
30
ENABLE_BACKUPSVariable

T/F Create timestamped database backups before any changes.

默认值
true
价值
false
RESTORE_LAST_BACKUPVariable

T/F Restore most recent backup and exit.

默认值
false
价值
false
EXCLUDE_CONTAINER_NAMESVariable

CSV list of containers that should never be stopped.

默认值
dbrepair,plex-dbrepair
价值
dbrepair,plex-dbrepair
EXCLUDE_IMAGE_REGEXVariable

Image regex used to avoid stopping the dbrepair container itself.

默认值
plex-dbrepair
价值
plex-dbrepair
Docker Run SocketPathrw

Required to manage Plex containers from Unraid.

目标
/var/run/docker.sock
默认值
/var/run/docker.sock
价值
/var/run/docker.sock

下载统计数据

3,296
下载总数

详细信息

存储库
bmmbmm01/plex-dbrepair
最后更新2026-01-13
初见2026-01-11

在Unraid 上运行 plex-dbrepair 。

plex-dbrepair 已被列入Unraid OS 的社区应用程序。探索Unraid ,构建灵活的家庭服务器、NAS 或家庭实验室。