this post was submitted on 22 Jun 2023
1 points (66.7% liked)

Selfhosted

39937 readers
514 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

I have an Intel NUC running plex media server on ubuntu headless server. It's running beautifully, and barely uses the nuc's resources. The videos are stored on a synology ds923+ NAS.

I'm thinking of adding a couple of new services to the NUC and would like to move to a dockerised setup. This would involve moving the plexmediaserver into a docker.

Is there a good way to do this without having to recreate and rescan all the plex video libraries?

top 3 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 1 year ago

You can just copy over the Library folder, that should do it. Then set up the plex Docker to use bind mounts instead of volumes and place your old library into that bind mount.

I usually do ~/docker/plex/Library and have the Docker compose file in the ~/docker/plex folder

[–] [email protected] 1 points 1 year ago

I think this should work? I used this method when migrating my plex server to a lxc container.

[–] [email protected] 1 points 1 year ago

I accomplished this and found it was pretty easy. Like everyone else said, just point the volumes to the right directories. Backup your Plex data (not the media) a few times in case you screw up and it starts to index existing files as if it were old files.

Probably the hardest part for me was 'claiming' the server using their startup token. And even then that was fairly easy.

You're hosting on Ubuntu so this isn't a problem, but PMS basically requires its own IP on your intranet (not the Docker internal subnet) so Mac's Docker implementation fails to provide this capability.