2022-01-03 16:38:13 +01:00
|
|
|
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
user=jellyfin
|
|
|
|
server=localhost
|
|
|
|
port=2400
|
2022-01-03 20:26:02 +01:00
|
|
|
jumpuser=exu
|
2022-01-03 16:38:13 +01:00
|
|
|
jumphost=nazarick.exu.li
|
|
|
|
serverremote=172.16.53.101
|
|
|
|
sshkeypath=$HOME/.ssh/id_ed25519_non-root
|
|
|
|
|
|
|
|
# set another ssh key here?
|
2022-01-03 20:26:02 +01:00
|
|
|
ssh -NTfL 2400:${serverremote}:22 ${jumpuser}@${jumphost}
|
2022-01-03 16:38:13 +01:00
|
|
|
|
|
|
|
# transfer Movies
|
2022-01-04 13:33:12 +01:00
|
|
|
rsync -uvr --progress --bwlimit=4M --chmod=744 -e "ssh -i $sshkeypath -p $port" /mnt/storage/MediaLibrary/Movies/ ${user}@${server}:/mnt/media/content/Movies/
|
2022-01-03 16:38:13 +01:00
|
|
|
|
|
|
|
# transfer Shows
|
2022-01-04 13:33:12 +01:00
|
|
|
rsync -uvr --progress --bwlimit=4M --chmod=744 -e "ssh -i $sshkeypath -p $port" /mnt/storage/MediaLibrary/Shows/ ${user}@${server}:/mnt/media/content/Shows/
|
2022-01-03 16:38:13 +01:00
|
|
|
|
|
|
|
# transfer Music
|
2022-01-04 13:33:12 +01:00
|
|
|
rsync -uvrL --progress --bwlimit=4M --chmod=744 -e "ssh -i $sshkeypath -p $port" /home/marc/Musik/ ${user}@${server}:/mnt/media/content/Musik/
|