Target server directly
This commit is contained in:
parent
2208099804
commit
c841f89fad
@ -1,16 +1,18 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
user=u289320-sub1
|
user=exu
|
||||||
server=u289320-sub1.your-storagebox.de
|
server=172.18.50.102
|
||||||
port=23
|
port=22
|
||||||
sshkeypath=$HOME/.ssh/id_rsa_jellyfin
|
sshkeypath=$HOME/.ssh/id_ed25519
|
||||||
|
# don't transfer to the storage box directly, leads to mangled file names
|
||||||
|
# see: https://serverfault.com/a/765951
|
||||||
|
|
||||||
# transfer Music
|
# transfer Music
|
||||||
rsync -uvrL --progress --bwlimit=4M -e "ssh -i $sshkeypath -p $port" /home/marc/Musik/ ${user}@${server}:Musik/
|
rsync -uvrL --progress --bwlimit=4M -e "ssh -i $sshkeypath -p $port" /home/marc/Musik/ ${user}@${server}:/mnt/media/Musik/
|
||||||
|
|
||||||
# transfer Shows
|
# transfer Shows
|
||||||
rsync -uvr --progress --bwlimit=4M -e "ssh -i $sshkeypath -p $port" /mnt/storage/MediaLibrary/Shows/ ${user}@${server}:Shows/
|
rsync -uvr --progress --bwlimit=4M -e "ssh -i $sshkeypath -p $port" /mnt/storage/MediaLibrary/Shows/ ${user}@${server}:/mnt/media/Shows/
|
||||||
|
|
||||||
# transfer Movies
|
# transfer Movies
|
||||||
rsync -uvr --progress --bwlimit=4M -e "ssh -i $sshkeypath -p $port" /mnt/storage/MediaLibrary/Movies/ ${user}@${server}:Movies/
|
rsync -uvr --progress --bwlimit=4M -e "ssh -i $sshkeypath -p $port" /mnt/storage/MediaLibrary/Movies/ ${user}@${server}:/mnt/media/Movies/
|
||||||
|
Loading…
Reference in New Issue
Block a user