Add beginnings for new jellyfin update script
This commit is contained in:
parent
4df41359f3
commit
dba3bd23c2
22
arch-config/scripts/in_path/sc-jellyfin-update-new
Normal file
22
arch-config/scripts/in_path/sc-jellyfin-update-new
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
user=jellyfin
|
||||||
|
server=localhost
|
||||||
|
port=2400
|
||||||
|
jumphost=nazarick.exu.li
|
||||||
|
serverremote=172.16.53.101
|
||||||
|
sshkeypath=$HOME/.ssh/id_ed25519_non-root
|
||||||
|
|
||||||
|
# set another ssh key here?
|
||||||
|
ssh -NTfL 2400:${serverremote}:22 ${user}@${jumphost}
|
||||||
|
|
||||||
|
# transfer Movies
|
||||||
|
rsync -uvr --progress --bwlimit=4096 --chmod=744 -e "ssh -i $sshkeypath -p $port" /mnt/storage/MediaLibrary/Movies/ ${user}@${server}:/mnt/jellyfin/content/Movies/
|
||||||
|
|
||||||
|
# transfer Shows
|
||||||
|
rsync -uvr --progress --bwlimit=4096 --chmod=744 -e "ssh -i $sshkeypath -p $port" /mnt/storage/MediaLibrary/Shows/ ${user}@${server}:/mnt/jellyfin/content/Shows/
|
||||||
|
|
||||||
|
# transfer Music
|
||||||
|
rsync -uvrL --progress --bwlimit=4096 --chmod=744 -e "ssh -i $sshkeypath -p $port" /home/marc/Musik/ ${user}@${server}:/mnt/jellyfin/content/Musik/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user