Jump to content


Photo

Sync 2 emby servers across VPN

sync vpn

  • Please log in to reply
5 replies to this topic

#1 robrhedrick OFFLINE  

robrhedrick

    Advanced Member

  • Members
  • 164 posts
  • Local time: 09:24 PM
  • LocationKansas

Posted 10 June 2019 - 07:32 PM

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.



#2 mastrmind11 OFFLINE  

mastrmind11

    Advanced Member

  • Members
  • 2777 posts
  • Local time: 10:24 PM
  • LocationLong Island, NY

Posted 11 June 2019 - 07:05 AM

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://stackoverflo...tween-computers



#3 robrhedrick OFFLINE  

robrhedrick

    Advanced Member

  • Members
  • 164 posts
  • Local time: 09:24 PM
  • LocationKansas

Posted 11 June 2019 - 09:24 AM

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.



#4 mastrmind11 OFFLINE  

mastrmind11

    Advanced Member

  • Members
  • 2777 posts
  • Local time: 10:24 PM
  • LocationLong Island, NY

Posted 11 June 2019 - 11:29 AM

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?  



#5 robrhedrick OFFLINE  

robrhedrick

    Advanced Member

  • Members
  • 164 posts
  • Local time: 09:24 PM
  • LocationKansas

Posted 11 June 2019 - 11:32 AM

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.



#6 mastrmind11 OFFLINE  

mastrmind11

    Advanced Member

  • Members
  • 2777 posts
  • Local time: 10:24 PM
  • LocationLong Island, NY

Posted 11 June 2019 - 12:10 PM

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







Also tagged with one or more of these keywords: sync, vpn

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users