Jump to content

Move collections from linux into docker?


MrWGT13

Recommended Posts

MrWGT13

I've used emby on a lubuntu server installed over dpkg. Now i'm trying to move emby to unraid running docker. So far all is good this way:

  1. Create backup under emby (lubuntu)
  2. Setup docker with paths/ports and so on to match paths from lubuntu
  3. Start docker, restore backup
  4. Scan library

The only things missing are the collections. How to transfer them? I found a "transfer library with windows" page but nothing about collections from linux to docker. I assume that i

  • copy collections directory from linux to folder accessible for docker in unraid (done)
  • copy that copy into /config/metadata collections directory (done)

But the collections won't show up even after a docker restart. Is there a db which must be copied too?

Tnx in advance :)

Link to comment
Share on other sites

GrimReaper
33 minutes ago, MrWGT13 said:
  1. Create backup under emby (lubuntu)

How did you create that backup? Also, do you save NFOs/Artwork with media? 

Link to comment
Share on other sites

MrWGT13
30 minutes ago, GrimReaper said:

How did you create that backup? Also, do you save NFOs/Artwork with media? 

I used the Backup/Restore plugin. Backed up on old server to folder accessible from new docker, Restore in docker from this folder. The libary (media files) is on the same location for docker and linux server (copied files from linux to unraid server, setup docker host path that way that all files are on the right location according to backup)

Link to comment
Share on other sites

GrimReaper
35 minutes ago, GrimReaper said:

Also, do you save NFOs/Artwork with media? 

 

Link to comment
Share on other sites

MrWGT13
4 minutes ago, GrimReaper said:

 

No, i do not save NFO/Artwork with media. Therefore the library must be rebuild with a scan. But the location for media files "seen from docker" should be the same as for linux.

Link to comment
Share on other sites

GrimReaper
1 minute ago, MrWGT13 said:

Therefore the library must be rebuild with a scan. But the location for media files "seen from docker" should be the same as for linux.

Correct, rescan/refresh metadata is required, and all library definitions/configurations should've been kept - does your movie library have "Import collection information..." library setting ticked/enabled? 

Link to comment
Share on other sites

MrWGT13
9 minutes ago, GrimReaper said:

Correct, rescan/refresh metadata is required, and all library definitions/configurations should've been kept - does your movie library have "Import collection information..." library setting ticked/enabled? 

Hm, what is this? Never seen that - at least not recognized. Where to i enable this?

Edit: Do you mean the automatic collection import from metadata providers? No, it's not enabled as all my collections are manually made

Edited by MrWGT13
Link to comment
Share on other sites

GrimReaper

Settings>Library tab>edit library (TMDB meta-provider needs to be enabled). 

Link to comment
Share on other sites

MrWGT13
11 minutes ago, GrimReaper said:

Settings>Library tab>edit library (TMDB meta-provider needs to be enabled). 

Should be enabled

emby001.png

Link to comment
Share on other sites

GrimReaper
28 minutes ago, MrWGT13 said:

No, it's not enabled as all my collections are manually made

In that case you'll have to redo all your collections again as Backup/Restore plugin does not save/restore metadata/custom edits (unless NFOs saved with media or programdata folder manual backup available). 

Quote

Use the Server Configuration Backup Plugin

We recommend using the Server Configuration Backup plugin, which is designed to make this process really painless by doing the work for you. This plugin requires Emby Premiere and can be found in our plugin catalog.

The Server Configuration Backup plugin can help you backup and restore the following:

  • Server configuration
  • Users
  • User data (play-states, favorites, etc).
  • Installed plugins
  • Plugin settings
  • Playlists

This will not backup library contents and metadata. To keep a permanent copy of metadata, we suggest enabling saving of local metadata to media folders.

https://emby.media/support/articles/Backup.html#use-the-server-configuration-backup-plugin

Link to comment
Share on other sites

MrWGT13

I managed to convert my data into docker :)

  1. steps from first post: 1-3
  2. source linux emby: stop emby server. copy complete /var/lib/emby from source linux to folder on unraid array.
  3. unraid: stop emby docker (if started) over web gui
  4. unraid: open shell. I used ssh.
  5. unraid: navigate to /mnt/user/cache/EmbyServerBeta (in my case)
  6. unraid: remove (or make backup first): directories data, metadata, root
  7. unraid: copy above folders data, metadata, root from made copy (2)
  8. unraid: chown -R daemon:daemon *
  9. unraid: start emby docker

Now, after login, all library content including collections are there

  • 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
×
×
  • Create New...