feat: Add new recovery and scanning scripts for Plex Media Server
This commit is contained in:
1 parent
c1eea4ebd4
commit
a299cee9bb
10 files changed
+19
-1
No files matched your search
Executable
+30
@@ -0,0 +1,30 @@
|
||||
#!/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
|
||||
|
||||
Reference in new issue
Block a user