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.
And to restore, after installing jellyfin via apt.
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.
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