2022-01-03 16:38:13 +01:00
|
|
|
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
|
2022-02-15 15:30:30 +01:00
|
|
|
user=u289320-sub1
|
|
|
|
server=u289320-sub1.your-storagebox.de
|
|
|
|
port=23
|
|
|
|
sshkeypath=$HOME/.ssh/id_rsa_jellyfin
|
2022-01-03 16:38:13 +01:00
|
|
|
|
2022-01-26 07:32:55 +01:00
|
|
|
# transfer Music
|
2022-02-15 15:30:30 +01:00
|
|
|
rsync -uvrL --progress --bwlimit=4M -e "ssh -i $sshkeypath -p $port" /home/marc/Musik/ ${user}@${server}:Musik/
|
2022-01-03 16:38:13 +01:00
|
|
|
|
|
|
|
# transfer Shows
|
2022-02-15 15:30:30 +01:00
|
|
|
rsync -uvr --progress --bwlimit=4M -e "ssh -i $sshkeypath -p $port" /mnt/storage/MediaLibrary/Shows/ ${user}@${server}:Shows/
|
2022-01-03 16:38:13 +01:00
|
|
|
|
2022-01-26 07:32:55 +01:00
|
|
|
# transfer Movies
|
2022-02-15 15:30:30 +01:00
|
|
|
rsync -uvr --progress --bwlimit=4M -e "ssh -i $sshkeypath -p $port" /mnt/storage/MediaLibrary/Movies/ ${user}@${server}:Movies/
|