Files
LVM-Recovery-09.2026/plex-plugin-scan.sh
T

31 lines
650 B
Bash
Executable File

#!/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 \
"$BASE/Plug-in Support/Data" \
"$BASE/Plug-in Support/Metadata Combination" \
"$BASE/Scanners"
do
printf '\n========== %s ==========\n' "$path"
DEBUGFS_PAGER=cat debugfs -c \
-R "ls -l \"$path\"" \
"$LV" 2>&1
done
for inode in 249299786 249299774
do
printf '\n========== INODE %s ==========\n' "$inode"
DEBUGFS_PAGER=cat debugfs -c \
-R "stat <$inode>" \
"$LV" 2>&1
done
} | tee /mnt/recovery/plex-final-inspection.txt