mirror of
https://github.com/acedanger/shell.git
synced 2025-12-06 06:40:13 -08:00
- Introduced `recover-plex-database.sh` for comprehensive database recovery with multiple strategies, logging, and rollback capabilities. - Added `restore-plex.sh` for safe restoration of Plex backups, including validation and dry-run options. - Created `plex-db-manager.sh` to consolidate database management functionalities, including integrity checks and service management. - Enhanced logging and error handling across all scripts for better user feedback and troubleshooting. - Implemented safety measures to prevent running scripts as root and ensure proper service management during operations.
Deprecated Scripts
These scripts have been moved to this folder because their functionality has been consolidated into the main Plex management tools.
Scripts Moved (June 21, 2025)
plex-database-repair.sh
- Reason: Functionality consolidated into
plex-db-manager.sh - Replacement: Use
plex-db-manager.sh checkandplex-db-manager.sh repair
recover-plex-database.sh
- Reason: Advanced recovery methods rarely worked effectively
- Replacement: Use
nuclear-plex-recovery.shfor emergency situations
restore-plex.sh
- Reason: Basic restoration functionality covered by other scripts
- Replacement: Use
nuclear-plex-recovery.shfor backup restoration
icu-aware-recovery.sh
- Reason: ICU collation issues addressed in main repair logic
- Replacement: Built into
plex-db-manager.shandnuclear-plex-recovery.sh
Why These Were Retired
The original issue causing database corruption was identified as the aggressive 30-minute auto-repair cron schedule. With this fixed:
- Repair operations are now rarely needed
- Simpler tools are more reliable than complex multi-strategy repair scripts
- Manual intervention is preferred over automated repair attempts
- Nuclear recovery provides a clean last-resort option
Access If Needed
These scripts are preserved for emergency use but are no longer maintained. If you need emergency access to advanced repair functionality:
# Emergency use only
./deprecated/plex-database-repair.sh repair /path/to/database.db
./deprecated/recover-plex-database.sh --auto
⚠️ Note: These scripts are no longer tested or supported. Use at your own risk.