• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support General Questions Jellyfin cloning

     
    • 0 Vote(s) - 0 Average

    Jellyfin cloning

    Suggestions on how to clone one instance into other
    Arson3532
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2024 May
    Reputation: 0
    Country:Spain
    #1
    2025-03-23, 10:40 AM
    Let's say we have Jellyfin A on server A, and Jellyfin B in server B.

    Jellyfin A is my main jellyfin instance, where all the films are in maximum quality, and I have Jellyfin B, a clone of Jellyfin A with the difference that all the films & shows are encoded so that the size is small (max 720p, etc) (the audiobooks, books and pdfs I have are just a hardlink to server A, it seems working). Please I don't want to spark a discussion on how I ended up in something like this, simply let's accept it that's the way I want things.

    Is there any way I can manage only Jellyfin A and copy during the night everything over to Jellyfin B via rsync?
    I tried copying config and cache folders as a starter, but it seems something is wrong, because everytime after I run the script to copy over the contents, Jellyfin B is like starting anew (with the wizard - but not always this appears, so this is a bit strange - perhaps it's cache). The good thing is that somehow the name of the instance is not copied (?) so Jellyfin B keeps its name somehow, but I don't know why.
    The config/logs folder I think it's not needed, so I ditched it.
    I have the films with the exact same locations and names, so I believe trickplay and everything should work. The problem is with .iso files, which they get transformed to mkv in my av1 encoder. Perhaps I should convert them again to iso, so that it's better for the instance. I will check as well.
    I want to have plugins as well, but the Notifier should have some modifications. I guess this should be included in the script I run at nights, but I presume this is going to be difficult to change, I don't know where the config is saved at all.

    Does anybody have done something like this already? Any suggestions? Is the cache folder needed at all?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2025-03-23, 05:49 PM
    Can you share the docker config for Jellyfin A?
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    Arson3532
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2024 May
    Reputation: 0
    Country:Spain
    #3
    2025-03-24, 02:26 PM (This post was last modified: 2025-03-24, 02:28 PM by Arson3532. Edited 3 times in total.)
    Sure:

    Code:
      jellyfin:
        image: jellyfin/jellyfin:10.10.6
        container_name: jellyfin
        group_add:
          - "video"
        ports:
          - "8096:8096"
        restart: 'always'
        environment:
          - JELLYFIN_PublishedServerUrl=https://xxx
          - TZ=...
        volumes:
          - /mnt/user/appdata/arr/jellyfin/config:/config:rw
          - /mnt/user/appdata/arr/jellyfin/cache:/cache:rw
          - /mnt/user/ShareMedia:/media:rw # Where all the videos and series are. I have more volumes for the rest of the places
        devices:
          - /dev/dri
        networks:
          - media-network
        healthcheck:
          test: ["CMD", "curl", "-fsS", "http://localhost:8096/health"]
          interval: 1m
          timeout: 10s
          retries: 3
          start_period: 10m
        labels:
          autoheal-app: true
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2025-03-24, 03:22 PM
    As long as your are copying /config and /cache in their entirety, and that BOTH A and B STOPPED when you sync the two instances, it should migrate no problem.  As long as the media is in the same location from the container's context.  Also, clear your browser cache when you access B to ensure you aren't viewing a cached instance.

    Circling back to your opening post.  Avoid ISOs.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode