Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save GitterDoneScott/9dcab4e33600d2860890258b7b397267 to your computer and use it in GitHub Desktop.
Save GitterDoneScott/9dcab4e33600d2860890258b7b397267 to your computer and use it in GitHub Desktop.
Repairing/restoring a plex database using a SQLite3 docker image
# 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