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
Regular → Executable
+3
@@ -1,3 +1,6 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -uo pipefail
|
||||||
|
|
||||||
DB_DIR="/mnt/recovery/plexmediaserver/Library/Application Support/Plex Media Server/Plug-in Support/Databases"
|
DB_DIR="/mnt/recovery/plexmediaserver/Library/Application Support/Plex Media Server/Plug-in Support/Databases"
|
||||||
SQLITE="/usr/lib/plexmediaserver/Plex SQLite"
|
SQLITE="/usr/lib/plexmediaserver/Plex SQLite"
|
||||||
|
|
||||||
Regular → Executable
+3
@@ -1,3 +1,6 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -uo pipefail
|
||||||
|
|
||||||
LV='/dev/mapper/plex--new-plex--new'
|
LV='/dev/mapper/plex--new-plex--new'
|
||||||
BASE='/plexmediaserver/Library/Application Support/Plex Media Server'
|
BASE='/plexmediaserver/Library/Application Support/Plex Media Server'
|
||||||
|
|
||||||
Regular → Executable
+3
@@ -1,3 +1,6 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -uo pipefail
|
||||||
|
|
||||||
LV='/dev/mapper/plex--new-plex--new'
|
LV='/dev/mapper/plex--new-plex--new'
|
||||||
BASE='/plexmediaserver/Library/Application Support/Plex Media Server'
|
BASE='/plexmediaserver/Library/Application Support/Plex Media Server'
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -Eeuo pipefail
|
set -Eeuo pipefail
|
||||||
|
|
||||||
SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
|
SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
exec python3 "$SCRIPT_DIR/plex-state.py" recover "${1:-core}"
|
exec python3 "$SCRIPT_DIR/plex-state.py" recover "${1:-core}"
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -Eeuo pipefail
|
set -Eeuo pipefail
|
||||||
|
|
||||||
SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
|
SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
exec python3 "$SCRIPT_DIR/plex-state.py" scan "${1:-core}"
|
exec python3 "$SCRIPT_DIR/plex-state.py" scan "${1:-core}"
|
||||||
+2
-1
@@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
"""Strict, selective, read-only Plex state salvage from Banshee's damaged ext4 LV."""
|
|
||||||
|
"""Strict, selective, read-only Plex state salvage from a damaged ext4 LV."""
|
||||||
import argparse
|
import argparse
|
||||||
import datetime as dt
|
import datetime as dt
|
||||||
import hashlib
|
import hashlib
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -Eeuo pipefail
|
set -Eeuo pipefail
|
||||||
|
|
||||||
if [[ $# -ne 1 ]]; then
|
if [[ $# -ne 1 ]]; then
|
||||||
echo "Usage: $0 '/absolute/source/path'" >&2
|
echo "Usage: $0 '/absolute/source/path'" >&2
|
||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
|
SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
exec python3 "$SCRIPT_DIR/salvage.py" recover "$1"
|
exec python3 "$SCRIPT_DIR/salvage.py" recover "$1"
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
"""Dry-run or rebuild empty folder tree on an explicitly mounted new filesystem."""
|
"""Dry-run or rebuild empty folder tree on an explicitly mounted new filesystem."""
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import hashlib
|
import hashlib
|
||||||
import json
|
import json
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -Eeuo pipefail
|
set -Eeuo pipefail
|
||||||
|
|
||||||
if [[ $# -ne 1 ]]; then
|
if [[ $# -ne 1 ]]; then
|
||||||
echo "Usage: $0 '/absolute/source/path'" >&2
|
echo "Usage: $0 '/absolute/source/path'" >&2
|
||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
|
SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
exec python3 "$SCRIPT_DIR/salvage.py" scan "$1"
|
exec python3 "$SCRIPT_DIR/salvage.py" scan "$1"
|
||||||
Reference in new issue
Block a user