I accidentally deleted my freenas jail with plex and somehow cant restore it with snapshots.
The only thing I have left is the database downloaded with Troubleshooting button. Is it any good for restoring metadata? I have all the media, but I had a lot of titles, covers etc set up manualy and would be realy nice if I could avoid doing it again from scrach.
You can use the instructions in this support article to restore your database. Since all your library information is stored in the database, if all your media is still in the same paths everything should sync back up. Server settings are not stored in the database, so you’ll have to set it back up again. Also, the external metadata associated with your library (posters and such) will be re-downloaded. But the stuff you set up manually should still be there.
Unfortunatly this the database in this directory got deleted with jail. Now as I probably learned it the hard way now, I’m going to store it in separate mounted dataset.
I dont have “com.plexapp.plugins.library.db”, but “databaseBackup.db” generated in settings > Troubleshooting > download database. I cant find anywhere whether it is only for diagnosing or custom metadata could be restored from it.
All the media are in the same directory and I already mounted them back.
Just last thing, I’m not sure about the restoring itself in the instruction.
"Duplicate the database backup file into the correct directory and then rename it to com.plexapp.plugins.library.db"
Do I clear the directory where backup is stored and place the old one back there in /usr/local/plexdata/Plex Media Server/Plug-in Support/Databases/
or there is another place for it?
Rename your backup database (the one you downloaded via the Troubleshooting page) to:
com.plexapp.plugins.library.db
Remove the file of the same name from:
/usr/local/plexdata/Plex Media Server/Plug-in Support/Databases
Also remove the associated -shm and -wal files).
Move your backed-up, renamed database file into the directory.
Start PMS.
After doing so, you should see all your old libraries, and the media should be accessible as long as they are in the exact some path as they were before the jail deletion. You may or may not have to perform a “Refresh All Metadata” for your libraries to have them re-download missing metadata that you didn’t manually curate (posters, thumbnails, etc…), but I’m not positive on that part.