24 lines
584 B
Bash
Executable File
24 lines
584 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 \
|
|
'/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
|