# Transfer Jellyfin data from Bookworm to a new install of Trixie

**URL:** <https://dietpi.com/forum/t/transfer-jellyfin-data-from-bookworm-to-a-new-install-of-trixie/24507>\
**Category:** General Discussion\
**Created:** [8 October 2025 09:46 UTC](https://dietpi.com/forum/t/transfer-jellyfin-data-from-bookworm-to-a-new-install-of-trixie/24507 "2025-10-08T09:46:41Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![mydogteddy](https://dietpi.com/forum/user_avatar/dietpi.com/mydogteddy/32/7352_2.png) [@mydogteddy](https://dietpi.com/forum/u/mydogteddy)\
**Post date:** [8 October 2025 09:46 UTC](https://dietpi.com/forum/t/transfer-jellyfin-data-from-bookworm-to-a-new-install-of-trixie/24507/1 "2025-10-08T09:46:41Z")

</div>

Hi, I have a large collection of music and TV programs etc installed in Jellyfin on Bookworm.

Is there a way to transfer my Jellyfin data to a new install of trixie?

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [8 October 2025 10:09 UTC](https://dietpi.com/forum/t/transfer-jellyfin-data-from-bookworm-to-a-new-install-of-trixie/24507/2 "2025-10-08T10:09:25Z")

</div>

why not doing an inplace upgrade from Bookworm to Trixie?

---

<div class="post-metadata">

**Author:** ![mydogteddy](https://dietpi.com/forum/user_avatar/dietpi.com/mydogteddy/32/7352_2.png) [@mydogteddy](https://dietpi.com/forum/u/mydogteddy)\
**Post date:** [8 October 2025 11:34 UTC](https://dietpi.com/forum/t/transfer-jellyfin-data-from-bookworm-to-a-new-install-of-trixie/24507/3 "2025-10-08T11:34:26Z")

</div>

HI Joulinar, thanks for your reply.

In answer to your question there are 2 main reasons, firstly I did try updating using the supplied script but I experienced some problems but the main reason for wishing transfer the Jellyfin data was that I wanted to start from a new install because the current Bookworm installation has a problem with the hot-spot not allowing connections. It takes me many hours to start again inputting the Jellyfin data from scratch.

The location of the Jellyfin data has changed in the last couple of years.

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [9 October 2025 20:12 UTC](https://dietpi.com/forum/t/transfer-jellyfin-data-from-bookworm-to-a-new-install-of-trixie/24507/4 "2025-10-09T20:12:45Z")

</div>

Database and such are stored in `/mnt/dietpi_userdata/jellyfin`, respectively the `JELLYFIN_DATA_DIR` given in `/etc/default/jellyfin`. Configs are stored in `/etc/jellyfin`. Those those 3 paths should be transferred (including `/etc/default/jellyfin`).

Checking the install code, best is to install Jellyfin freshly first, then stop the service, and copy/overwrite with the old data/configs afterwards. Otherwise, if `/mnt/dietpi_userdata/jellyfin` exists already, a bunch of setup steps are skipped and would need to be done manually. Room for enhancement our end.

---

<div class="post-metadata">

**Author:** ![mydogteddy](https://dietpi.com/forum/user_avatar/dietpi.com/mydogteddy/32/7352_2.png) [@mydogteddy](https://dietpi.com/forum/u/mydogteddy)\
**Post date:** [10 October 2025 13:35 UTC](https://dietpi.com/forum/t/transfer-jellyfin-data-from-bookworm-to-a-new-install-of-trixie/24507/5 "2025-10-10T13:35:43Z")

</div>

Thank you Michaing,

I am not sure I have understood your information.

I have 2 PI5’s 192.168.123.111 and 192.168.123.112

192.168.123.111 has a working jellyfin on it, and I want to copy it to 192.168.123.112

I have installed a new jellyfin on 192.168.123.112 and ran it so it completed the first run.

Then I stopped the service ‘service jellyfin stop’

I deleted recursively on 192.168.123.112 the following folders

`/mnt/dietpi_userdata/jellyfin`

`/etc/default/jellyfin`

`/etc/jellyfin`

I then copied from 192.168.123.111 to 192.168.123.112 the following folders  
`/mnt/dietpi_userdata/jellyfin`

`/etc/default/jellyfin`

`/etc/default/jellyfin`

The rebooted 192.168.123.112 but jellyfin does not start anymore.

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [10 October 2025 13:39 UTC](https://dietpi.com/forum/t/transfer-jellyfin-data-from-bookworm-to-a-new-install-of-trixie/24507/6 "2025-10-10T13:39:22Z")

</div>

can you provide the service log?

---

<div class="post-metadata">

**Author:** ![mydogteddy](https://dietpi.com/forum/user_avatar/dietpi.com/mydogteddy/32/7352_2.png) [@mydogteddy](https://dietpi.com/forum/u/mydogteddy)\
**Post date:** [10 October 2025 14:51 UTC](https://dietpi.com/forum/t/transfer-jellyfin-data-from-bookworm-to-a-new-install-of-trixie/24507/7 "2025-10-10T14:51:46Z")

</div>

see below

```auto
Oct 10 13:23:10 DietPi (jellyfin)\[1018\]: jellyfin.service: Changing to the requested working directory failed: Permission denied
Oct 10 13:23:10 DietPi (jellyfin)\[1018\]: jellyfin.service: Failed at step CHDIR spawning /usr/bin/jellyfin: Permission denied
Oct 10 13:23:10 DietPi systemd\[1\]: jellyfin.service: Main process exited, code=exited, status=200/CHDIR
Oct 10 13:23:10 DietPi systemd\[1\]: jellyfin.service: Failed with result ‘exit-code’.
Oct 10 13:23:11 DietPi systemd\[1\]: jellyfin.service: Scheduled restart job, restart counter is at 4.
Oct 10 13:23:11 DietPi systemd\[1\]: Started jellyfin.service - Jellyfin Media Server.
Oct 10 13:23:11 DietPi (jellyfin)\[1020\]: jellyfin.service: Changing to the requested working directory failed: Permission denied
Oct 10 13:23:11 DietPi (jellyfin)\[1020\]: jellyfin.service: Failed at step CHDIR spawning /usr/bin/jellyfin: Permission denied
Oct 10 13:23:11 DietPi systemd\[1\]: jellyfin.service: Main process exited, code=exited, status=200/CHDIR
Oct 10 13:23:11 DietPi systemd\[1\]: jellyfin.service: Failed with result ‘exit-code’.
Oct 10 13:23:11 DietPi systemd\[1\]: jellyfin.service: Scheduled restart job, restart counter is at 5.
Oct 10 13:23:11 DietPi systemd\[1\]: jellyfin.service: Start request repeated too quickly.
Oct 10 13:23:11 DietPi systemd\[1\]: jellyfin.service: Failed with result ‘exit-code’.
Oct 10 13:23:11 DietPi systemd\[1\]: Failed to start jellyfin.service - Jellyfin Media Server.

```

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [10 October 2025 15:07 UTC](https://dietpi.com/forum/t/transfer-jellyfin-data-from-bookworm-to-a-new-install-of-trixie/24507/8 "2025-10-10T15:07:10Z")

</div>

> [@mydogteddy](#):
>
> `/usr/bin/jellyfin: Permission denied`

how did you copied the files? Which commands do you used?

---

<div class="post-metadata">

**Author:** ![mydogteddy](https://dietpi.com/forum/user_avatar/dietpi.com/mydogteddy/32/7352_2.png) [@mydogteddy](https://dietpi.com/forum/u/mydogteddy)\
**Post date:** [10 October 2025 15:09 UTC](https://dietpi.com/forum/t/transfer-jellyfin-data-from-bookworm-to-a-new-install-of-trixie/24507/9 "2025-10-10T15:09:13Z")

</div>

I used midnight commander

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [10 October 2025 15:22 UTC](https://dietpi.com/forum/t/transfer-jellyfin-data-from-bookworm-to-a-new-install-of-trixie/24507/10 "2025-10-10T15:22:55Z")

</div>

not sure how MC is working but you would need to preserve permissions while doing the file copy. As well have a look if user ID for `jellyfin` user is different between systems

---

<div class="post-metadata">

**Author:** ![mydogteddy](https://dietpi.com/forum/user_avatar/dietpi.com/mydogteddy/32/7352_2.png) [@mydogteddy](https://dietpi.com/forum/u/mydogteddy)\
**Post date:** [10 October 2025 15:51 UTC](https://dietpi.com/forum/t/transfer-jellyfin-data-from-bookworm-to-a-new-install-of-trixie/24507/11 "2025-10-10T15:51:56Z")

</div>

This is from the working jellyfin on 192.168.123.111

```auto
root@DietPi:\~# id jellyfin
uid=101(jellyfin) gid=108(jellyfin) groups=108(jellyfin),44(video),105(render),1000(dietpi)
root@DietPi:\~#

```

This is from the non working jellyfin 192.168.123.112

```auto
root@DietPi:\~# id jellyfin
uid=100(jellyfin) gid=102(jellyfin) groups=102(jellyfin),44(video),991(render),1000(dietpi)
root@DietPi:\~#

```

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [10 October 2025 16:38 UTC](https://dietpi.com/forum/t/transfer-jellyfin-data-from-bookworm-to-a-new-install-of-trixie/24507/12 "2025-10-10T16:38:24Z")

</div>

> [@mydogteddy](#):
>
> uid=101(jellyfin) gid=108(jellyfin)

> [@mydogteddy](#):
>
> uid=100(jellyfin) gid=102(jellyfin)

ok both don’t match. You would need to reset permissions if needed.

---

<div class="post-metadata">

**Author:** ![mydogteddy](https://dietpi.com/forum/user_avatar/dietpi.com/mydogteddy/32/7352_2.png) [@mydogteddy](https://dietpi.com/forum/u/mydogteddy)\
**Post date:** [11 October 2025 11:46 UTC](https://dietpi.com/forum/t/transfer-jellyfin-data-from-bookworm-to-a-new-install-of-trixie/24507/13 "2025-10-11T11:46:25Z")

</div>

THE OBJECTIVE IS TO COPY A WORKING JELLYFIN FROM 192.168.123.111 TO 192.168.123.112 TO A NEW PENDRIVE WHICH HAS TRIXIE INSTALLED ON IT

192.168.123.111 has a working jellyfin on it, and I want to copy it to 192.168.123.112

I have installed a new jellyfin on 192.168.123.112 which has just been flashed with Trixie and ran it so it completed the first run.

Then I stopped the service ‘service jellyfin stop’

DON’T FORGET TO DO ‘service jellyfin stop’ FIRST BEFORE PROCEEDING.

systemctl stop jellyfin.service

I deleted recursively on 192.168.123.112 the following folders

`/mnt/dietpi_userdata/jellyfin`

`/etc/default/jellyfin`

`/etc/jellyfin`

I then copied from 192.168.123.111 to 192.168.123.112 the following folders using Midnight Commander  
`/mnt/dietpi_userdata/jellyfin`

`/etc/default/jellyfin`

`/etc/default/jellyfin`

chown -R jellyfin:adm /etc/jellyfin  
chown -R root:root /etc/default/jellyfin  
chown root:root /mnt/dietpi\_userdata  
chown -R jellyfin:jellyfin /mnt/dietpi\_userdata/jellyfin/

REBOOT

Hopefully success IT WORKED FOR ME

---

<div class="post-metadata">

**Author:** ![mydogteddy](https://dietpi.com/forum/user_avatar/dietpi.com/mydogteddy/32/7352_2.png) [@mydogteddy](https://dietpi.com/forum/u/mydogteddy)\
**Post date:** [11 October 2025 11:58 UTC](https://dietpi.com/forum/t/transfer-jellyfin-data-from-bookworm-to-a-new-install-of-trixie/24507/14 "2025-10-11T11:58:05Z")

</div>

It would be very nice if someone who is very kind could make a script to automate this process.

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [11 October 2025 15:48 UTC](https://dietpi.com/forum/t/transfer-jellyfin-data-from-bookworm-to-a-new-install-of-trixie/24507/15 "2025-10-11T15:48:50Z")

</div>

Regarding permissions, this should do. No need to change the GID of `jellyfin`, and there might be another group with the same GID already.

```sh
chown -R jellyfin: /etc/jellyfin /mnt/dietpi_userdata/jellyfin

```

_The `:` assigns the primary group of the user, i.e. practically the same as `jellyfin:jellyfin`._ An alternative would be `jellyfin:root` make it slightly more secure and and ignore the group, which is relevant only if you actually require other users/processes to access the data and add them to the group. `root` has always the same UID/GID “0”, so no need to `chown` e.g. `/etc/default/jellyfin`.

> [@mydogteddy](#):
>
> It would be very nice if someone who is very kind could make a script to automate this process.

Just copy&paste the commands you used from your console history (`~/.bash_history`) into a file, and prefix with `#!/bin/bash` shebang.

---

<div class="post-metadata">

**Author:** ![system](https://dietpi.com/forum/uploads/default/original/1X/7e1021de2213860bce185915ce2c1786e56490ec.png) [@system](https://dietpi.com/forum/u/system)\
**Post date:** [9 January 2026 15:49 UTC](https://dietpi.com/forum/t/transfer-jellyfin-data-from-bookworm-to-a-new-install-of-trixie/24507/16 "2026-01-09T15:49:12Z")

</div>

Closed on 9 January 2026 15:49 UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
