• 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 How to backup Jellyfin on Ubuntu Server?

     
    • 0 Vote(s) - 0 Average

    How to backup Jellyfin on Ubuntu Server?

    WeHaveDebris
    Offline

    Junior Member

    Posts: 4
    Threads: 2
    Joined: 2023 Oct
    Reputation: 0
    #1
    2023-10-28, 03:06 AM
    Good morning,
    I am running Jellyfin 10.8.11 on Ubuntu Server 22.04.3. I am brand new to Jellyfin but can hold my own in Ubuntu, with enough Googling. 

    However I have found something I've not yet been able to answer, which brings me here. I need to make sure I can backup my Jellyfin configuration, data, anything that might be needed in case I have to restore my Jellyfin environment to a fresh install. (I understand the built-in database goes corrupt when it's windy outside, but in any case it's always prudent to have backups)

    I'm referencing the server paths listed in https://jellyfin.org/docs/general/admini...figuration, and https://specifications.freedesktop.org/b...atest.html for the standards. 

    My intention is to back up data and configuration. I'm not launching using command line options, I don't seem to have Jellyfin environment variables specified (checked with printenv and grep'ped), and I'm not launching in Windows. So that leaves me to option(s) 4 (and 5). 

    $XDG_DATA_HOME/jellyfin, if $XDG_DATA_HOME exists
    $HOME/.local/share/jellyfin

    and

    $XDG_CONFIG_HOME/jellyfin if $XDG_CONFIG_HOME exists
    $HOME/.config/jellyfin


    This is where I get stuck; I don't have any directory .local or .config in my home folder, and the Jellyfin user doesn't have a home dir. 

    Please excuse my ignorance, I feel like it ought to be obvious but I'm really not sure what to look at next. I really appreciate any guidance. I'd like to understand why none of the paths in the documentation match what I'm seeing in practice. I don't yet have my full media library in, but I have the top-level folders configured and most of my personalizations set, so there should be enough there to backup. I need to ensure that my backups work and are tested before I put Jellyfin into production. 

    Thanks,
    Dusty
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2023-10-28, 03:23 AM
    Bare metal Ubuntu installs put all your data in /var/lib/jellyfin and all your configs in /etc/jellyfin.
    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]
    WeHaveDebris
    Offline

    Junior Member

    Posts: 4
    Threads: 2
    Joined: 2023 Oct
    Reputation: 0
    #3
    2023-10-28, 03:10 PM
    I've found them! That's just what I needed... many thanks for taking the time to help me out!
    Soused19
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2024 Jan
    Reputation: 0
    Country:Czech Republic
    #4
    2024-11-25, 02:07 PM
    Hello @TheDreadPirate,

    I would like to move my Jellyfin server (Ubuntu) to new one (probably Debian), with more local space (4x12TB RAID5).

    My idea is to move only the users and their data what they have already seen.
    I would like the libraries and metadata about the files to be generated again. Is there a way to achieve this and what to transfer from the existing Jellyfin server?

    Thanks
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #5
    2024-11-25, 03:00 PM
    You should migrate everything in /etc/jellyfin and only the "data" folder in /var/lib/jellyfin.
    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]
    Soused19
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2024 Jan
    Reputation: 0
    Country:Czech Republic
    #6
    2024-11-25, 03:09 PM
    Super, thx.
    8r7f
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2025 Mar
    Reputation: 0
    #7
    2025-03-08, 04:04 AM
    Does copying /etc/jellyfin and /var/lib/jellyfin to a new computer require that the paths to media folders is the same on the new machine?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #8
    2025-03-09, 06:23 PM
    (2025-03-08, 04:04 AM)8r7f Wrote: Does copying /etc/jellyfin and /var/lib/jellyfin to a new computer require that the paths to media folders is the same on the new machine?

    Yes.  You should ensure that your media paths are setup identically PRIOR to starting your migrated/restored Jellyfin on the new system.  Otherwise Jellyfin will notice that the media isn't present and clear out your metadata.
    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