• 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 migrate jellyfin

     
    • 0 Vote(s) - 0 Average

    migrate jellyfin

    how to migrate jellyfin from test to "production" system
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-10-09, 09:36 PM
    I have migrated or restored 3 times. One hardware failure induced restoration from backup, one migration when upgrading hardware and clean installing 24.04, one restoration when I borked the OS after not installing a custom kernel incorrectly.

    My backup and restoration method is similar, but I preferred to do it a less consolidated. Here is a summary, but not exactly, how it worked before I switched to docker.

    Code:
    sudo systemctl stop jellyfin
    cd /some/backup/directory
    mkdir etcJellyfin libJellyfin cacheJellyfin
    rsync -a -p --progress /etc/jellyfin etcJellyfin/
    rsync -a -p --progress /var/lib/jellyfin libJellyfin/
    rsync -a -p --progress /var/cache/jellyfin cacheJellyfin/
    tar cfz jellyfinBackup.tgz

    And to restore, after installing jellyfin via apt.

    Code:
    sudo systemctl stop jellyfin
    cd /some/backup/directory
    mv ~/jellyfinBackup.tgz .
    tar xfz jellyfinBackup.tgz
    cd /etc/
    rsync -a -p --progress /some/backup/directory/etcJellyfin .
    cd /var/lib
    rsync -a -p --progress /some/backup/directory/libJellyfin .
    cd /var/cache
    rsync -a -p --progress /some/backup/directory/cacheJellyfin .

    I know you said that both systems have the same UIDs for Jellyfin, but I always ensure that it wasn't changed at some point in the process.

    Code:
    sudo chown -R jellyfin: /var/lib/jellyfin /var/cache/jellyfin /etc/jellyfin
    sudo systemctl start 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]
    1
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    migrate jellyfin - by wimmmy - 2024-10-09, 08:43 PM
    RE: migrate jellyfin - by TheDreadPirate - 2024-10-09, 09:36 PM
    RE: migrate jellyfin - by wimmmy - 2024-10-13, 04:16 PM
    RE: migrate jellyfin - by madsepperl - 2024-10-14, 06:46 PM
    RE: migrate jellyfin - by wimmmy - 2024-10-20, 04:52 PM

    • 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