Update script
This commit is contained in:
parent
46a7e8663f
commit
2208099804
20
arch-config/scripts/in_path/sc-jellyfin-update-new
Normal file → Executable file
20
arch-config/scripts/in_path/sc-jellyfin-update-new
Normal file → Executable file
@ -1,22 +1,16 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
user=jellyfin
|
user=u289320-sub1
|
||||||
server=localhost
|
server=u289320-sub1.your-storagebox.de
|
||||||
port=2400
|
port=23
|
||||||
jumpuser=exu
|
sshkeypath=$HOME/.ssh/id_rsa_jellyfin
|
||||||
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 ${jumpuser}@${jumphost}
|
|
||||||
|
|
||||||
# transfer Music
|
# transfer Music
|
||||||
rsync -uvrL --progress --bwlimit=4M --chmod=744 -e "ssh -i $sshkeypath -p $port" /home/marc/Musik/ ${user}@${server}:/mnt/media/content/Musik/
|
rsync -uvrL --progress --bwlimit=4M -e "ssh -i $sshkeypath -p $port" /home/marc/Musik/ ${user}@${server}:Musik/
|
||||||
|
|
||||||
# transfer Shows
|
# transfer Shows
|
||||||
rsync -uvr --progress --bwlimit=4M --chmod=744 -e "ssh -i $sshkeypath -p $port" /mnt/storage/MediaLibrary/Shows/ ${user}@${server}:/mnt/media/content/Shows/
|
rsync -uvr --progress --bwlimit=4M -e "ssh -i $sshkeypath -p $port" /mnt/storage/MediaLibrary/Shows/ ${user}@${server}:Shows/
|
||||||
|
|
||||||
# transfer Movies
|
# transfer Movies
|
||||||
rsync -uvr --progress --bwlimit=4M --chmod=744 -e "ssh -i $sshkeypath -p $port" /mnt/storage/MediaLibrary/Movies/ ${user}@${server}:/mnt/media/content/Movies/
|
rsync -uvr --progress --bwlimit=4M -e "ssh -i $sshkeypath -p $port" /mnt/storage/MediaLibrary/Movies/ ${user}@${server}:Movies/
|
||||||
|
Loading…
Reference in New Issue
Block a user