Jump to content

Sync 2 emby servers across VPN


robrhedrick
 Share

Recommended Posts

robrhedrick

We are moving soon and will have gigabit internet. I have an emby server and so does my buddy. We have a vpn connection between our houses so our connections appear "local". I'd like to find a way to sync or media libraries so we can be "fail-overs" for each other to our friends and family. I know there isn't an official supported method to do this, but I wanted to ask the minds in this forum for suggestions. We both run emby server on Ubuntu server 18.04 with similar storage capacities.

Link to comment
Share on other sites

mastrmind11

Do you currently share the same libraries?  If so, and you're talking about something other than a mirrored file system outside of what emby can see, you'll have to break the shared libraries or you'll end up duping everything in emby.  Which protocol are you using to mount your friend's media locally?  Seems like this would be a pretty simple task using rsync.  If you don't want to use rsync, here are some alternative approaches https://stackoverflow.com/questions/11301289/linux-file-synchronization-between-computers

Link to comment
Share on other sites

robrhedrick

No, two separate servers/storage... so tv.mydomain.com and tv2.mydomain.com. 

 

I wasn't sure if there were any "application-aware" options out there. There are one or two indexers that he subscribes to, and vice versa on my side, that might pick up a wanted show or movie. Rsync was my first though, just wondering on how to keep sonarr/radarr/sabnzbd happy.

Link to comment
Share on other sites

mastrmind11

No, two separate servers/storage... so tv.mydomain.com and tv2.mydomain.com. 

 

I wasn't sure if there were any "application-aware" options out there. There are one or two indexers that he subscribes to, and vice versa on my side, that might pick up a wanted show or movie. Rsync was my first though, just wondering on how to keep sonarr/radarr/sabnzbd happy.

I guess I'm confused why you don't just add eachother's libraries to each emby instance.  Unless there's a reason you want 1:1 mirroring of content on both servers?

 

Your second point is that there are 2 instances of sonarr/radarr/etc and you want to keep them in sync so that they aren't downloading the same things?  

Link to comment
Share on other sites

robrhedrick

If his internet goes does (which it has many times) I want to friends and family to be able to switch servers over to me or vice versa. ATT service in his area is terrible at night as they over-subscribe their networks.

Link to comment
Share on other sites

mastrmind11

If his internet goes does (which it has many times) I want to friends and family to be able to switch servers over to me or vice versa. ATT service in his area is terrible at night as they over-subscribe their networks.

Ok, so assuming I'm following, you want a 1:1 mirror of everything that's on your buddie's server and vice versa.  So the simplest solution would be to pick one of your servers as the primary, set up sonarr/etc on that master and share access to it with your buddy.  Stuff gets downloaded and then moved to the slave via rsync, and you're both mirrored.  That's the only way you're going to get sonarr/etc to index what's previously been downloaded.  

 

If you insist of having separate sonarr, in theory you could probably get creative with Docker on each server with a shared /config directory to keep the db/metadata in sync.

 

There are a few ways to go about this, we can go as deep as you need to, just need some more actual use cases and info.

 

gl

Link to comment
Share on other sites

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
 Share

×
×
  • Create New...