Jump to content

Anyone out there successfully synchronized two instances of emby?


Recommended Posts

Posted

My friends have grown accustom to our shared server. But I am moving across the country. I don't want them to deal with latency issues. I happen to have a second server I could leave here, but was hoping to synchronize the data and content between the two servers (double duty as a backup). I'm running emby in docker, so it's unfortunate I have no access to the SQLite DB to attempt to sync them. 

Any guidance or experience would be appreciated here. 

Posted
2 hours ago, Luke said:

Hi, @DarWun may have some tips.

I'll try. This is probably not exactly what you are looking for @rsvg. It is not going to help you with how to share the actual content between two servers in remote locations. Unfortunately I have no experience with that. I do have two Emby servers (primary is a Synology NAS, secondary is my Windows PC) that I regularly sync playback status between, which is why I think @Luketagged me. But the storage location of all my media/data is the same for both. So if I delete content or add content on one Emby server, the changes are automatically picked up on the other when I do a library scan.  The only thing that doesn't get synced is the play back status.

Even though I suspect this is not going to fully answer your question, it might give you one piece of the puzzle. I use Emby on my NAS server to play all content, and once a week I sync the playstates between the NAS and PC servers using the "Backup & Restore" plugin. I'm able to use the plug-in to create a backup on my Synology NAS. I then copy the backup file to my Windows Server. From Emby on the Windows Server, I run the plugin to restore just the playstates.

Screenshot2023-03-21171215.png.fd02402b89a9885f8617b373243aab4d.png

If the User Name is the same on both servers, playstates are updated to reflect those in the backup.

In your case you would have to find a way to shuttle the backup files back and forth between locations. But that should be fairly easy to do.

Hopefully someone will chime in with some suggestions on how to sync the actual data between two remote locations.

Posted

That is helpful. Thank you very much for taking the time to respond!

I’ll give that plug-in a test.

Posted

I was trying to think through a solution that keeps the two servers completely in sync at all times without relying on a time based sync. Something like lsyncd I've used before to synchronize data between servers. But the databases are a little harder. I wonder if anyone has experience with this: https://litesync.io/en/ Although it's probably more work than I'm interested in tbh

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...