Created
January 23, 2025 00:25
-
-
Save lpenaud/2bcdca30f4876d37cdf71893110ccf80 to your computer and use it in GitHub Desktop.
Jellyfin backup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Usage: ./backup-jellyfin.sh | |
declare -r tar_name="${HOME}/jellyfin.tar" | |
sudo systemctl stop jellyfin.service | |
echo "tar -cf "${tar_name}" /var/lib/jellyfin" | |
sudo tar -cf "${tar_name}" /var/lib/jellyfin | |
sudo chown -v "${USER}:${USER}" "${tar_name}" | |
sudo systemctl start jellyfin.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment