Download Plex Database Via CLI

doesn’t doing an sqlite3 dump accomplish this while plex is running?

sqlite3 com.plexapp.plugins.library.db .dump > backup.sql

Only works with PMS shut down.

Yeah that’s not how I got it to work. My method is stated above, I just messed it up so it didn’t work the first time.

so youre saying sqlite3 cant handle concurrent connections, or plex wont wait its turn?

And it’s simply what @TeknoJunky already said…

Issue a GET towards https://PMS_IP:32400/diagnostics/databases?X-Plex-Token=YOUR_TOKEN

It’s not a special call in anyway, and the protection is done via the Token

The other part of this is the endpoint is provided by PMS which ensures the data returned is valid. SQLite3 has write-ahead log . Data will be lost if not taken into consideration.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.