Jump to content

Migrate DB from PC Server to new Synology DSM 7 server


JcTcom
 Share

Recommended Posts

Hello.

I have been using Emby as a Premiere user for some time now with the server installed on a Windows 10 PC as my previous Synology NAS did not support the Emby Server Package.

I now have a shiny new DS1821+ and would like to move my Emby server over to that.  Is there any way to migrate the database over?  I have used all UNC paths in the existing server so the paths should be the same.

I also have another issue though which I might need to resolve first?  For some reason I can access the new Emby Server on the DS1821+ using https://IP address:8096  but I have a proper domain configured and have redirected the port 8096 in my router to point to the new IP address of the NAS.  But for some reason I cannot connect using the actual https://Domain.ca:8096.  The page just times out eventually saying it cannot be found?  It does seem to take quite some time before it times out though.

Prior to setting up the new DS1821+ I was able to connect to my PC Emby server with my    domain.ca:8096  but I had the 8096 port forwarded to my PC instead of the NAS.

Any help on either of these 2 issues much appreciated.

Edit:  I just tried to connect using "https://my external IP address:8096".   It would not work if I preceded it with "https" but seems to work fine once I removed the "https". Though it comes up as "Not Secure".  I am sure this is related to why I cannot connect using my "domain.ca:8096" 

Thanks.

Carl

 

 

Link to comment
Share on other sites

Thank you for your reply.

I have installed the Backup plugin on the PC Server.  I guess I just have to wait for it to do a backup?  It would be nice if they included a simple "Backup now" button in that plugin.

 

As far as the https I am not sure where to change this for Emby Server? It does not seem to show up in Web Station in order for me to adjust the ports. It is set to "8920" in Emby though and that port is forwarded to my Synology Nas along with the other.

Carl.

Link to comment
Share on other sites

Just now, JcTcom said:

Thank you for your reply.

I have installed the Backup plugin on the PC Server.  I guess I just have to wait for it to do a backup?  It would be nice if they included a simple "Backup now" button in that plugin.

You can manually trigger a backup from the 'Scheduled Tasks' page.

Link to comment
Share on other sites

Happy2Play

I would assume you need to manually back as the plugin is only for configurations no database or linked metadata will be backed up.

Link to comment
Share on other sites

25 minutes ago, Happy2Play said:

I would assume you need to manually back as the plugin is only for configurations no database or linked metadata will be backed up.

?

I just used the server backup plugin for a migration and all my user's play data and favorites came over. There were several db files in the backup directory.

Link to comment
Share on other sites

Happy2Play
1 minute ago, roaku said:

?

I just used the server backup plugin for a migration and all my user's play data and favorites came over. There were several db files in the backup directory.

There is userdata that is extracted from databases but what does the OP want as you are migrating database with plugin you are repopulating table to new databases.  But has absolutely nothing to do with library.db item population and images not saved with media.  So all that info/imags are lost without manually copy of Emby programdata folder.

But then you have to worry about things that will change going from Windows to Synology so somewhat starting over may be required.

Link to comment
Share on other sites

3 minutes ago, Happy2Play said:

There is userdata that is extracted from databases but what does the OP want as you are migrating database with plugin you are repopulating table to new databases.  But has absolutely nothing to do with library.db item population and images not saved with media.  So all that info/imags are lost without manually copy of Emby programdata folder.

But then you have to worry about things that will change going from Windows to Synology so somewhat starting over may be required.

Yes, I save nfo and images with media and updated the library paths through the UI after migration.

But I think it's fairer to say that *not all* database data gets backed up, versus *no* db data.

Some very important db data is backed up and re-imported when using the plugin's restore function on an entirely new server.

Link to comment
Share on other sites

Can't seem to get this working properly.

I set up the backup and performed the restore.  It restored all the folders but they are all empty and do not seem to be populating.

 

10 minutes ago, roaku said:

?

I just used the server backup plugin for a migration and all my user's play data and favorites came over. There were several db files in the backup directory.

I wonder if it works properly across disparate devices (PC to NAS etc...)?  I did successfully perform the backup and the restore.  it restored all my collections / folders but they are all empty and will not repopulate.

I am also not hopeful about a manual backup / restore as the paths are so completely different and I do not even see them available on the NAS in order to copy the data over.

 

I am also still having issues with connecting via my Domain.ca and https.  I have used the Reverse Proxy method I found here:  

and have added the extra port 8921 to my router forwarded to the NAS but still no joy.  I can access via external IP address but not with https.

 

Carl

Link to comment
Share on other sites

2 minutes ago, JcTcom said:

Can't seem to get this working properly.

I set up the backup and performed the restore.  It restored all the folders but they are all empty and do not seem to be populating.

 

I wonder if it works properly across disparate devices (PC to NAS etc...)?  I did successfully perform the backup and the restore.  it restored all my collections / folders but they are all empty and will not repopulate.

I am also not hopeful about a manual backup / restore as the paths are so completely different and I do not even see them available on the NAS in order to copy the data over.

Well, it's definitely not going to migrate the media itself.

I migrated from Synology to Linux.

I mounted the shared folders from the Synology using fstab in Linux. From there, I just had to update the paths for each Library through the Emby UI.

Link to comment
Share on other sites

It shouldn't need to migrate the media.  It is all located on the exact same paths which are all UNC.  (Well at least the main ones.  I still have to attach and configure the external drives).

I guess I will have to try to remount the library folders and maybe then perform a restore of just that?

Carl.

Link to comment
Share on other sites

9 minutes ago, JcTcom said:

It shouldn't need to migrate the media.  It is all located on the exact same paths which are all UNC.  (Well at least the main ones.  I still have to attach and configure the external drives).

I guess I will have to try to remount the library folders and maybe then perform a restore of just that?

Carl.

Then I don't understand what 'restored all the folders' meant.

Link to comment
Share on other sites

Happy2Play
9 minutes ago, JcTcom said:

It shouldn't need to migrate the media.  It is all located on the exact same paths which are all UNC.  (Well at least the main ones.  I still have to attach and configure the external drives).

I guess I will have to try to remount the library folders and maybe then perform a restore of just that?

Carl.

If the library paths are the same then we need to see a server log, and possibly paths used to setup the libraries.

Link to comment
Share on other sites

I have figured out why the library data can't be backed up from server on PC and restored to server on NAS.

The library paths on the PC are \\server\share where as it seems the library paths on the NAS have to be /Volume1/Folder.

It does not see my original \\server\ paths.

Carl.

  • Like 1
Link to comment
Share on other sites

Happy2Play

Yes that is the primary reason cross platforms restores have issue from a config standpoint.  

Link to comment
Share on other sites

Still need to figure out why I can't connect via my Domain.ca though.  Because I can't get "emby Connect" to work till I get that working.  Well I guess I might be able to use the external IP address to connect it but it would be a pain.  my domain.ca works for everything else on the NAS.

Carl.

Link to comment
Share on other sites

10 minutes ago, JcTcom said:

I have figured out why the library data can't be backed up from server on PC and restored to server on NAS.

The library paths on the PC are \\server\share where as it seems the library paths on the NAS have to be /Volume1/Folder.

It does not see my original \\server\ paths.

Carl.

Yes, the actual local path on the Synology is different than the shared paths it generates for network access.

That's what I was describing when I said I updated the Library paths through the Emby UI.

Link to comment
Share on other sites

8 minutes ago, JcTcom said:

Still need to figure out why I can't connect via my Domain.ca though.  Because I can't get "emby Connect" to work till I get that working.  Well I guess I might be able to use the external IP address to connect it but it would be a pain.  my domain.ca works for everything else on the NAS.

Carl.

I don't have my Synology or Emby opened up to the world, but I believe you have to explicitly open up the Emby ports through the Synology UI.

Link to comment
Share on other sites

Happy2Play
11 hours ago, JcTcom said:

Edit:  I just tried to connect using "https://my external IP address:8096".   It would not work if I preceded it with "https" but seems to work fine once I removed the "https". Though it comes up as "Not Secure".  I am sure this is related to why I cannot connect using my "domain.ca:8096" 

https and 8096 will not work unless you have changed Network configs.  I see your port 8096 and 443 are open but not Emby port 8920.

So you will have to go over your Emby Network setup and better describe the issue.

Does "http://WANIP:8096" work? or "http://domain.ca:8096"?

 

Link to comment
Share on other sites

3 hours ago, Happy2Play said:

https and 8096 will not work unless you have changed Network configs.  I see your port 8096 and 443 are open but not Emby port 8920.

So you will have to go over your Emby Network setup and better describe the issue.

Does "http://WANIP:8096" work? or "http://domain.ca:8096"?

 

http://WANIP:8096 works, HTTPS://WANIP:8921 works, nothing with "domain.ca:xxxx" works with http or https.

Strangely (I think?) http://WANIP:8096 does not redirect to https://WANIP:8921 (or any other https address).

Network in Emby settings is configured as follows:

Public http port number:  8096

Public https port number: 8921

External Domain: MyDomain.ca

Secure Connection mode:  Handled by reverse Proxy  (See earlier message above on settings related to reverse proxy)

Max Simultaneous video streams:  3

All other entries are blank

Everything else is blank.  apparently, I had to use port 8921 instead of 8920 due to the fact that when setting up reverse proxy it said 8920 was already in use. (Also mentioned in the reverse proxy settings indicated above)

Ports 8096, 8920 and 8921 all forwarded to my NAS via my router.

When I go to my dashboard it shows as follows:

Running on HTTP port 8096, and HTTPS port 8920.

In-Home (LAN) access: http://192.168.0.133:8096

Remote (WAN) access: https://MyDomain.ca:8921

Which all seems correct to me?

 

Carl

Link to comment
Share on other sites

I would also like to note that all of my other https://MyDomain.ca/application links are working fine.  I.E. Note, File, Download, Audio, Video etc. etc...

and if I enter simply "MyDomain.ca" or "MyDomain.ca/application" in the browser address bar I am correctly redirected to the https secure site.

But all of those applications have entries in the WebStation application.  I can find no way to add Emby there especially since I don't actually know where it's web page resides.

Carl.

Link to comment
Share on other sites

Actually upon retesting all of my application links mentioned above are working.  But I have some sub domains such as "dvd.mydomain.ca" etc which are not working properly.  They work with "http://WANIP/dvd" but not with http (or https) ://dvd.Mydomain.ca for some reason.

I use Cloudflare and their encryption certificate which I exported from the old NAS and then imported to the new NAS.  it is set as the default certificate (As it was on the original NAS).  It is listed in the Certificates section as working properly but is there a possibility that something is broken in it and it is only partially working?

@pir8radio

Carl

Link to comment
Share on other sites

4 hours ago, JcTcom said:

Actually upon retesting all of my application links mentioned above are working.  But I have some sub domains such as "dvd.mydomain.ca" etc which are not working properly.  They work with "http://WANIP/dvd" but not with http (or https) ://dvd.Mydomain.ca for some reason.

I use Cloudflare and their encryption certificate which I exported from the old NAS and then imported to the new NAS.  it is set as the default certificate (As it was on the original NAS).  It is listed in the Certificates section as working properly but is there a possibility that something is broken in it and it is only partially working?

 

Carl

What exactly do you mean by not working properly?

Link to comment
Share on other sites

1 hour ago, Luke said:

What exactly do you mean by not working properly?

I used to be able to go to https://dvd.mydomain.ca  or cd.mydomain.ca

which are web pages that hold my DVD and CD catalogues.  These and others like them used to automatically go to https://SubPage.MyDomain.ca  (SubPage being cd or dvd etc...), even if I did not type in the "Https" or anything at all before the address.  Now I can only reach them via http://MYWANIP/dvd or http://MyWanIP/cd.  I can no longer reach the encrypted and / or proper address.  The entries in the Web Station / Virtual host are the same as before and not showing any errors. But they still don't work.  My CNAME entries have not changed so I am not sure what is going on now.

In any case late here now.  Off to bed.  Will continue working on this tomorrow.

Carl

  • Thanks 1
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...