Jellyfin Forum
Backup/Restore - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: Backup/Restore (/t-backup-restore)



Backup/Restore - enesha - 2024-09-18

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


RE: Backup/Restore - TheDreadPirate - 2024-09-18

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



RE: Backup/Restore - enesha - 2024-11-22

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