Jellyfin Forum
How to backup Jellyfin on Ubuntu Server? - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: General Questions (https://forum.jellyfin.org/f-general-questions)
+--- Thread: How to backup Jellyfin on Ubuntu Server? (/t-how-to-backup-jellyfin-on-ubuntu-server)



How to backup Jellyfin on Ubuntu Server? - WeHaveDebris - 2023-10-28

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/administration/configuration, and https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.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


RE: How to backup Jellyfin on Ubuntu Server? - TheDreadPirate - 2023-10-28

Bare metal Ubuntu installs put all your data in /var/lib/jellyfin and all your configs in /etc/jellyfin.


RE: How to backup Jellyfin on Ubuntu Server? - WeHaveDebris - 2023-10-28

I've found them! That's just what I needed... many thanks for taking the time to help me out!