Add jellyfin update script

This commit is contained in:
RealStickman 2021-05-15 21:26:22 +02:00
parent 7f01b0d658
commit b75fdb4e95

View File

@ -0,0 +1,16 @@
#!/bin/bash
set -euo pipefail
sshkeypath=$HOME/.ssh/id_ed25519_non-root
user=jellyfin
server=albedo.realstickman.net
# update Movies
rsync -uvr --progress --bwlimit=4096 --chmod=744 -e "ssh -i $sshkeypath" /mnt/storage/MediaLibrary/Movies/ ${user}@${server}:/home/jellyfin/Movies/
# Update Shows
rsync -uvr --progress --bwlimit=4096 --chmod=744 -e "ssh -i $sshkeypath" /mnt/storage/MediaLibrary/Shows/ ${user}@${server}:/home/jellyfin/Shows/
# Update Music
rsync -uvrL --progress --bwlimit=4096 --chmod=744 -e "ssh -i $sshkeypath" /home/marc/Musik/ ${user}@${server}:/home/jellyfin/Musik/