Commit Graph

214 Commits

Author SHA1 Message Date
Peter Wood
563daa51af added the ability to initiate a plex library scan from the CLI. tab completions are supported as well. 2025-06-26 09:07:51 -04:00
Peter Wood
57cd60cdf3 feat: Implement parallel backup execution with result logging 2025-06-25 21:56:10 +00:00
Peter Wood
2e0d843da5 feat: Add daily media backup entry with enhanced logging 2025-06-25 21:34:28 +00:00
Peter Wood
3b284c769c feat: Enhance Jellyseerr backup functionality with specialized methods and verification 2025-06-25 17:27:08 -04:00
Peter Wood
e98594f178 removed shellcheck backups 2025-06-25 16:40:27 -04:00
Peter Wood
b3580f2ce0 feat: Add NAS mount check and setup script for improved backup reliability 2025-06-25 16:35:09 -04:00
Peter Wood
b04c93daf2 clean up log files with ANSI color codes 2025-06-23 06:00:55 -04:00
Peter Wood
70755e5823 added missing racknerd command 2025-06-22 09:16:52 -04:00
Peter Wood
26f8a7a007 updated pathing 2025-06-22 09:07:06 -04:00
Peter Wood
5868947fbd updated europa crontab entries 2025-06-22 08:30:02 -04:00
Peter Wood
255d34eadc feat: Refactor Plex database query script for enhanced functionality and usability 2025-06-21 09:55:44 -04:00
Peter Wood
6dad845fac removed web interface mention and the header text 2025-06-21 08:59:15 -04:00
Peter Wood
cf4b54cf0a feat: Add cleanup script for temporary and corrupted Plex database files 2025-06-21 07:52:16 -04:00
Peter Wood
9b83924597 Add advanced Plex database recovery and restoration scripts
- 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.
2025-06-21 07:23:33 -04:00
Peter Wood
30a252a500 feat: Enhance database repair functionality with recovery options and nuclear recovery script 2025-06-21 06:48:29 -04:00
Peter Wood
1fd92750d8 Merge branch 'main' of github.com:acedanger/shell 2025-06-21 06:30:11 -04:00
Peter Wood
2bc9e91229 Refactor Plex Database Repair Logic
- Created a centralized database repair script (`plex-database-repair.sh`) to handle all database integrity checks and repairs for Plex Media Server.
- Updated the main Plex management script (`plex.sh`) to integrate the new repair functionality and fixed Unicode/ASCII display issues.
- Refactored the backup script (`backup-plex.sh`) to remove duplicate repair functions and ensure it utilizes the new repair script.
- Conducted thorough code validation and functional testing to ensure all scripts operate correctly with the new changes.
- Enhanced documentation for the new repair script, detailing usage, features, and integration points with other scripts.
- Fixed critical bugs related to WAL file handling and corrected typos in script options.
2025-06-21 06:30:07 -04:00
Peter Wood
35cb84432d Merge branch 'main' of github.com:acedanger/shell 2025-06-18 17:19:22 -04:00
Peter Wood
8eddc11c16 fix: Update SSH key used by ssh-agent to id_ed25519 for improved security 2025-06-18 17:18:37 -04:00
Peter Wood
8cd33d4568 feat: Implement comprehensive backup web application with Docker, systemd service, and Gunicorn support 2025-06-18 10:02:07 -04:00
Peter Wood
6d726cb015 feat: Add base HTML template and implement dashboard, logs, and service views
- Created a base HTML template for consistent layout across pages.
- Developed a dashboard page to display backup service metrics and statuses.
- Implemented a log viewer for detailed log file inspection.
- Added error handling page for better user experience during failures.
- Introduced service detail page to show specific service metrics and actions.
- Enhanced log filtering and viewing capabilities.
- Integrated auto-refresh functionality for real-time updates on metrics.
- Created integration and unit test scripts for backup metrics functionality.
2025-06-18 08:06:08 -04:00
Peter Wood
d066f32b10 Enhance PowerShell profile with comprehensive features and error handling
- Added automatic installation and import of essential PowerShell modules (Terminal-Icons, PSReadLine, PSScriptAnalyzer, PSFzf).
- Improved error handling during module installation and import.
- Integrated oh-my-posh for prompt theming with a specified theme.
- Configured PSReadLine options for better user experience.
- Added fzf to PATH if not already present and checked for its installation.
- Implemented functions for network utilities (Get-Ip-Address, Invoke-WslReboot) and application management (Update-Budget, Update-Winget).
- Enhanced file system utilities with functions like ff (file finder), touch (create/update file), and Unix-like commands (grep, which, head, tail).
- Added clipboard utilities (cpy, pst) for easier text management.
- Included Fabric AI integration for dynamic pattern functions and YouTube transcript retrieval.
- Created a sync function for VS Code profile to maintain consistency with the main PowerShell profile.
- Improved overall structure and documentation for better maintainability and usability.
2025-06-18 04:23:28 -04:00
Peter Wood
e60d27b77e feat: Update Plex Recent Additions script to use custom SQLite binary and improve query output 2025-06-14 09:17:02 -04:00
Peter Wood
dfab956d9f feat: Enhance Plex Recent Additions script with dynamic day range and error handling 2025-06-14 08:47:23 -04:00
Peter Wood
1345bbfc62 feat: Add comprehensive backup script for Gitea and PostgreSQL database 2025-06-12 17:19:08 -04:00
Peter Wood
7d45acf6c6 fix: Clean up unnecessary whitespace and improve code readability in backup-plex.sh 2025-06-12 17:18:57 -04:00
Peter Wood
2b979f0950 feat: Add Jellyfin database repair script and documentation 2025-06-12 17:18:37 -04:00
Peter Wood
ed6a1a3d76 backing up my changes because my server is about to get wiped 2025-06-12 10:05:41 -04:00
Peter Wood
af5528f5cd jellyfin restoration info and shell scripts 2025-06-11 17:48:14 -04:00
Peter Wood
02fc6391ef fix: Start SSH agent and add key silently if not already running 2025-06-11 07:11:29 -04:00
Peter Wood
82d8e63ed7 added ssh-agent 2025-06-10 21:36:44 -04:00
Peter Wood
36b4f5c667 Remove obsolete backup and validation scripts for Plex Media Server
- Deleted `restore-plex.sh.sc2162_backup`: This script provided a comprehensive restoration process for Plex Media Server backups, including validation and logging features.
- Deleted `test-plex-backup.sh.sc2086_backup`: This script served as a comprehensive test suite for the Plex backup system, covering unit tests, integration tests, and performance benchmarks.
- Deleted `validate-plex-recovery.sh.sc2086_backup`: This script was responsible for validating the success of Plex database recovery operations, ensuring database integrity and service functionality.
2025-06-09 06:45:43 -04:00
Peter Wood
11c110d729 feat: Enhance documentation and add porcelain mode support for improved automation in plex scripts 2025-06-09 06:44:06 -04:00
Peter Wood
16dd496c31 feat: Add color support toggle for improved output in plex.sh and update.sh 2025-06-08 20:47:23 -04:00
Peter Wood
6b90447b30 fix: Improve sudo privilege check and provide user guidance for password prompts 2025-06-08 20:06:18 -04:00
Peter Wood
c698813d6b refactor: Update output formatting and enhance log retrieval in plex.sh 2025-06-08 19:46:29 -04:00
Peter Wood
9bb5545268 fix: Ensure proper ownership of backup files after copying in backup-plex.sh 2025-06-06 08:24:38 -04:00
Peter Wood
b76a9632c3 fix: Correct variable declaration order and improve output formatting in show_loading function 2025-06-06 07:59:07 -04:00
Peter Wood
58b5dea8b4 Refactor variable assignments and improve script readability in validate-plex-backups.sh and validate-plex-recovery.sh
- Changed inline variable assignments to separate declaration and assignment for clarity.
- Updated condition checks and log messages for better readability and consistency.
- Added a backup of validate-plex-recovery.sh for safety.
- Introduced a new script run-docker-tests.sh for testing setup in Docker containers.
- Enhanced ssh-login.sh to improve condition checks and logging functionality.
2025-06-05 17:14:02 -04:00
Peter Wood
c3f237a321 feat: Revamp system update script with enhanced logging, error handling, and package manager detection 2025-06-05 08:40:20 -04:00
Peter Wood
b9d946bfb5 formatting 2025-06-05 07:53:59 -04:00
Peter Wood
0123fc6007 feat: Add comprehensive Plex recovery validation script
- Introduced `validate-plex-recovery.sh` for validating Plex database recovery.
- Implemented checks for service status, database integrity, web interface accessibility, API functionality, and recent logs.
- Added detailed recovery summary and next steps for users.

fix: Improve Debian patching script for compatibility

- Enhanced `debian-patches.sh` to securely download and execute bootstrap scripts.
- Updated package mapping logic and ensured proper permissions for patched files.

fix: Update Docker test scripts for better permission handling

- Modified `run-docker-tests.sh` to set appropriate permissions on logs directory.
- Ensured log files have correct permissions after test runs.

fix: Enhance setup scripts for secure installations

- Updated `setup.sh` to securely download and execute installation scripts for zoxide and nvm.
- Improved error handling for failed downloads.

fix: Refine startup script for log directory permissions

- Adjusted `startup.sh` to set proper permissions for log directories and files.

chore: Revamp update-containers.sh for better error handling and logging

- Rewrote `update-containers.sh` to include detailed logging and error handling.
- Added validation for Docker image names and improved overall script robustness.
2025-06-05 07:22:28 -04:00
Peter Wood
8b514ac0b2 feat: Implement backup TUI with enhanced refresh functionality and consistent build system 2025-06-04 08:57:09 -04:00
Peter Wood
780e78f132 feat: Update backup script to disable interactive mode by default and add command-line option for enabling it 2025-06-04 08:02:21 -04:00
Peter Wood
f202301529 feat: Implement comprehensive security enhancements in restoration scripts, including path validation, SQL injection prevention, and improved container management 2025-06-03 17:37:30 -04:00
Peter Wood
bc6958b74b feat: Enhance restoration script with disk space validation and improved PostgreSQL readiness checks 2025-06-03 15:19:03 -04:00
Peter Wood
c1479a8b0c feat: Implement comprehensive restore functionality for Immich
- Added `restore-immich.sh` script to handle complete restoration from backups.
- Implemented database restoration with integrity checks and error handling.
- Added uploads restoration with proper ownership and permissions setup.
- Introduced validation script `validate-immich-backups.sh` for backup integrity checks.
- Created test suite `test-immich-restore.sh` to validate restoration functionality with mock data.
- Enhanced logging and notification features for restoration processes.
- Updated README.md with detailed usage instructions for backup and restore workflows.
2025-06-03 14:38:55 -04:00
Peter Wood
48e51fa094 feat: Enhance backup script documentation and workflow for shared storage integration 2025-06-03 12:35:08 -04:00
Peter Wood
4ebf1ca87d removed test file 2025-06-03 11:58:49 -04:00
Peter Wood
94dc0e6c5b feat: Add Plex scripts documentation and enhance monitoring script with detailed checks and recommendations 2025-06-03 08:59:11 -04:00