this post was submitted on 11 May 2024
324 points (99.4% liked)

Jellyfin: The Free Software Media System

5324 readers
4 users here now

Current stable release: 10.9.7

Community Standards

Website

Forum

GitHub

Documentation

Feature Requests

Matrix (General Information & Help)

Matrix (Announcements)

Matrix (General Development)

Matrix (Off-Topic) - Come get to know the team and blow off steam!

Matrix Space - List of all the available rooms on Matrix.

Discord - Bridged to our Matrix rooms

founded 4 years ago
MODERATORS
324
submitted 2 months ago* (last edited 2 months ago) by 1hitsong@lemmy.ml to c/jellyfin@lemmy.ml
 

As always, please ensure you stop your Jellyfin server and take a full backup before upgrading!

you are viewing a single comment's thread
view the rest of the comments
[–] all4one@lemmy.zip 5 points 2 months ago* (last edited 2 months ago) (3 children)

When I first set up my jf docker image I left the config and data directories in the docker container instead of pointing them outside. Now when I try to update I lose all my metadata. Is there a way to move those folders before I upgrade? Edit-typos

[–] Passerby6497@lemmy.world 5 points 2 months ago* (last edited 2 months ago) (1 children)

You're just running in docker, so you'd want to make sure you map a local folder into your container (at a different location than they are already!), then get into the container and copy your files to the host's mapped folder. Once that's complete, update your docker to point your local folder to the proper config location and it should keep everything local after you upgrade.

Edit: In my compose, I have this line

/jellyfin/jellyfin-data:/config

so you could map it to :/backup on your first boot, copy /config to /backup, then update your compose to map it to /config and you're good to go!

[–] all4one@lemmy.zip 2 points 2 months ago (1 children)

Thanks. This explanation plus the docker cp link helped get this done.

[–] Passerby6497@lemmy.world 2 points 2 months ago

Glad to hear it. I'll be honest, I wasn't aware of that command, I've just always done it the hard way and logged into the console of the container. I have this line in my .bashrc on all my docker hosts:

alias docker-console='docker exec -it "${PWD##*/}" bash'

[–] jlow@beehaw.org 2 points 2 months ago

I feel like there is a way to copy stuff from docker-volumes to disk and then point docker to the folders on the disk as external volumes, I think I've done that at some point years back, but not sure how to do it exactly.