• 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 Troubleshooting Backup/Restore

     
    • 0 Vote(s) - 0 Average

    Backup/Restore

    Backing up database
    enesha
    Offline

    Junior Member

    Posts: 49
    Threads: 12
    Joined: 2023 Nov
    Reputation: 1
    Country:United Kingdom
    #1
    2024-09-18, 05:27 AM
    Morning.

    So just a question I couldn't readily find an answer to, so I thought I would ask Smiling-face

    I have an ubuntu box running my server.  I (mistakenly ) made the upgtade from 22LTS to 24 LTS.  Seemed like a good deal.  Other are having super problems.  Well mine failed, it's up and limping but he needs wiped and reinstalled.  grrr.  So I need to see if I can backup the database.  I checking on the website and it suggested jellyfin-migrator.  Seems like a nice tool, but it is too specific.  Backing up from windows and restoring into a docker (I will not use docker/flatpack/snap)  So that script is of little or no use to me.  Even if I booted into windows, my drives are all using nfs, and i don't want to deal with the pain in the dick that THAT is.

    So does anyone have thoughts on backing up from linux, reinstalling, then restoring all back to the newly reformatted server HD.  If I missed a post i'm sorry.  there are a lot about how you should back up, and migrating from one platform to another, but I missed a clear migration.
    ;
    ThanksSmiling-face
    Intel Core i7-7800X CPU @ 4.00GHz
    64G RAM
    MultiDrive UnRaid server (JF in VM)
    ~100TB Total, approx 50%
    BookWorm
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-09-18, 01:22 PM
    Backup these directories

    /var/lib/jellyfin
    /etc/jellyfin
    /var/cache/jellyfin #optional, but I've found helps make the restoration experience more seamless

    Once you reinstall your OS and reinstall jellyfin you will restore those directories and make reset the ownership

    Code:
    sudo chown -R jellyfin: /var/lib/jellyfin /etc/jellyfin /var/cache/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]
    enesha
    Offline

    Junior Member

    Posts: 49
    Threads: 12
    Joined: 2023 Nov
    Reputation: 1
    Country:United Kingdom
    #3
    2024-11-22, 08:56 PM
    Hiya again DRP Smiling-face It's been a kooky amount of time since the previous exchange, but I thought I would check in Smiling-face

    Thank you for the tips on backup. Quite on point, so oh why didn't it work for me.

    Well I messed up. Chugging redbull doesn't keep you alert enough lol. Hours of work, playing with my shit and smoking and I have to say, whoops

    Pro tip. Even sudo can't fully save you. Make 100% sure what directory you are in, and make triple sure that you want to cp and end up with a rm -rf. So I wiped out my entire config dir, and ext4 undelete is a function based entirely on unfounded optimism. Oh and entirely not backed up. SO I got to do a transition from ubuntu server to one level up and just get pure debian. During all of this and recent storms scrambled my pfsense hd. So I used that as an excuse to install opnsense and HAproxy, as I just used jf as it's own server.

    So I Transitioned to Debian in clean install
    OPNsense - HAproxy - acme with LE cert
    Bought tmm and slowly did a full scan/scrape/rename on everything
    Full backup of opnsense and / of server.

    So anyway, Thanks for the help you gave me with the backup location and commands. You are super helpful Smiling-face

    OH - And EVERYONE - Learn from me Smiling-face
    Please don't be arrogant enough to think you can rm -rf without double checking
    sudo won't save you, only ask if you are sure you're that stupid//
    And backup backup backup! You can't restore the OS with that backup you thought about last year and never did. This and the ancillary hardware and software and reconfig everything 1 backup COULD have saved me Many days of combined annoyance.

    Ugh
    Intel Core i7-7800X CPU @ 4.00GHz
    64G RAM
    MultiDrive UnRaid server (JF in VM)
    ~100TB Total, approx 50%
    BookWorm
    « 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