Created
March 1, 2021 18:16
-
-
Save GitterDoneScott/9dcab4e33600d2860890258b7b397267 to your computer and use it in GitHub Desktop.
Repairing/restoring a plex database using a SQLite3 docker image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ensure permissions on /opt/plex_config_local are correct | |
docker run --rm -it --entrypoint /bin/sh --mount src=/opt/plex_config_local,target=/opt/plex_config_local,type=bind keinos/sqlite3:latest | |
cd /opt/plex_config_local/Library/Application\ Support/Plex\ Media\ Server/Plug-in\ Support/Databases/ | |
# Follow these steps https://support.plex.tv/articles/201100678-repair-a-corrupt-database/ | |
# If the database is corrupt, change the last line of the export (dump.SQL) to 'COMMIT;' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment