feat: Add new recovery and scanning scripts for Plex Media Server

This commit is contained in:
keith committed 2026-09-29 06:59:18 -05:00
1 parent c1eea4ebd4
commit a299cee9bb
10 files changed
+19 -1

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
#!/usr/bin/env bash
set -uo pipefail
LV='/dev/mapper/plex--new-plex--new'
BASE='/plexmediaserver/Library/Application Support/Plex Media Server'
{
for path in \
'/plexmediaserver/Library' \
'/plexmediaserver/Library/Application Support' \
"$BASE" \
"$BASE/Plug-in Support" \
"$BASE/Plug-in Support/Databases" \
"$BASE/Plug-in Support/Preferences" \
"$BASE/Plug-ins"
do
printf '\n========== %s ==========\n' "$path"
DEBUGFS_PAGER=cat debugfs -c \
-R "ls -l \"$path\"" \
"$LV" 2>&1
done
} | tee /mnt/recovery/plex-deep-layout.txt