@edmondenache said:
I don’t know if works but it might worth a try. Put the PMS database (all the folder) in cloud
Very bad idea. You can’t even use the Plex database over a local area network without the risk of database corruption, let alone an internet connection.
The only way to sync ‘watched’ status between several servers is to use the Trakt.tv plugin.
@edmondenache said:
I don’t know if works but it might worth a try. Put the PMS database (all the folder) in cloud
Very bad idea. You can’t even use the Plex database over a local area network without the risk of database corruption, let alone an internet connection.
Why is that? It’s not like Plex will update the files directly on-line. Plex it’s going to update it locally and the cloud software will upload it to the cloud. The same software will download the synced files on the other side.
If this is used only to sync the DB in locations that are not used at the same time, I don’t see why it would not work. However, if the locations are used at the same time (watching and adding files to the library), than I can see how it can get corrupted.
The library has to be identical though…
I don’t have the possibility to try now. Maybe someone can (for science).
This would be a great idea for a Plex feature. Maybe with own cloud solution. *-
@edmondenache said:
I don’t have the possibility to try now. Maybe someone can (for science).
It has already been tried by several people. Which came here to report various problems with Plex, which eventually got diagnosed as caused by database corruption. Due to using the Plex database over a networked connection.
It is just a fact that SQLite databases don’t work over network connections.
It is just a fact that SQLite databases don’t work over network connections.
I understand that. But the thing with cloud is that that DB will not be on line, over a network connection or anything similar. It’s local.
Let’s say that we have 2 machines in two separate locations. Both have Plex installed and the library has the same structure, same files and same location address - let’s say X:\Media Center.
On both machines we install dropbox and chose the default folder on D:\Dropbox on both.
On first machine we copy the plex Application Data folder in D:\Dropbox\PLEX and change the settings in PMS to match that location . After a rescan and sync of the database to the cloud and also to Machine 2, we do the same thing on Machine 2 without copying the Data from the default location. Just update the settings in PMS.
If the user is at Location One and watches 3 episodes from X Show, the DB will be updated locally and dropbox software will sync it to the cloud. When the user is at Location Two, he starts the computer, Dropbox will start downloading the synced files and after that the user restarts PMS, if it was set to auto start. If the user continues to watch episodes from X Show, everything starts over, this time switching directions.
If you use a personal cloud solution where you can set everything, you can even decide when and what to update, making everything even safer.
I think I’ll try this with a virtual machine at some point. I’m pretty sure if you respect some rules, it can work.
Kind of scary I found this thread as I’m playing with this to see if I can do exactly the same thing your talking about!! https://www.sqlmaestro.com/products/sqlite/datasync/download/
I’m setting up a Synology Plex server and have a Mac Mini as my “base” server. I wold love to sync watched info across the two. I’ve only copied the Media folder over and I don’t have all the posters and season pictures on the Synology as I do on the Mac mini. even in the Info dialog, poster view, it’s blank
@HypKin said:
why are you not using the sync and user features instead?
having multiple plex servers with the same content somehow defeats the purpose of plex…
I disagree. I also want this feature! I have two servers at home, one native on my NAS, another one on my server. I usually stream from NAS but sometimes I need to transcode and the NAS cannot handle it…
@HypKin said:
why are you not using the sync and user features instead?
having multiple plex servers with the same content somehow defeats the purpose of plex…
I disagree. I also want this feature! I have two servers at home, one native on my NAS, another one on my server. I usually stream from NAS but sometimes I need to transcode and the NAS cannot handle it…
+1 on this. I have an external hosted server and a personal home server. Because I live in a small town, I only have an upload speed of 1.5 Mbps available. While this may be available for low quality, I put newer media and movies on my hosted server to allow for a smoother viewing experience. Some of this media is duplicated (some is not). Every so often I plan on removing the files to allow more space, keeping the watch status per show/movie regardless of location would be a great feature.
@edmondenache said:
I don’t have the possibility to try now. Maybe someone can (for science).
It has already been tried by several people. Which came here to report various problems with Plex, which eventually got diagnosed as caused by database corruption. Due to using the Plex database over a networked connection.
It is just a fact that SQLite databases don’t work over network connections.
The thing is, you don’t update directly over the internet. You transfer a file which is the update, if you want to be modern, call it a message. If the message is structurally complete, you perform the update. Until you have the entire message you don’t perform the update.
If you have multiple messages related to the same thing coming from different databases, you either take the time stamp of the latest message and update.
I also encountered this lacking feature, so I threw together a little something for you (read: me). Check it out at github.com/fiLLLip/plex-watched-sync
I think the README is pretty explanatory, but if you have any comments, feel free to create an issue
fiLLLip, your tool looks pretty awesome! I wanted to do something similar on the newly-released Nvidia SHIELD, and unfortunately in that environment, you do not have access to the filesystem or the Plex database.
It reads from two or more remote Plex servers and uses the API to read the library and (more critically) uses the remote API to adjust the watched status. So, just wanted to share on this thread in case anybody else finds it useful.
@jacobwgillespie said:
fiLLLip, your tool looks pretty awesome! I wanted to do something similar on the newly-released Nvidia SHIELD, and unfortunately in that environment, you do not have access to the filesystem or the Plex database.
It reads from two or more remote Plex servers and uses the API to read the library and (more critically) uses the remote API to adjust the watched status. So, just wanted to share on this thread in case anybody else finds it useful.
This is amazing! Have you thought of offering a basic GUI/web interface for things like library selection, etc?
Ideally I’d like a way to run two constantly synced identical servers, metadata, libraries and all. With tick boxes for deciding which elements to sync. This would open the door to using multiple cheaper machines sharing a NAS instead of having to buy one expensive monster machine for transcoding.
+100 Definitely a needed feature for Plex. This should be something that augments their ‘Cloud’ service… even if the files are local, the database should be updating to an online record that can be put out over all Plex servers that an individual has in multiple locations.