2021-05-15 21:26:22 +02:00
|
|
|
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
|
2022-02-15 17:44:39 +01:00
|
|
|
user=exu
|
|
|
|
server=172.18.50.102
|
|
|
|
port=22
|
|
|
|
sshkeypath=$HOME/.ssh/id_ed25519
|
|
|
|
# don't transfer to the storage box directly, leads to mangled file names
|
|
|
|
# see: https://serverfault.com/a/765951
|
2021-05-15 21:26:22 +02:00
|
|
|
|
2022-02-15 17:44:39 +01:00
|
|
|
# transfer Music
|
|
|
|
rsync -uvrL --progress --bwlimit=4M -e "ssh -i $sshkeypath -p $port" /home/marc/Musik/ ${user}@${server}:/mnt/media/Musik/
|
2021-05-15 21:26:22 +02:00
|
|
|
|
2022-02-15 17:44:39 +01:00
|
|
|
# transfer Shows
|
|
|
|
rsync -uvr --progress --bwlimit=4M -e "ssh -i $sshkeypath -p $port" /mnt/storage/MediaLibrary/Shows/ ${user}@${server}:/mnt/media/Shows/
|
2021-05-15 21:26:22 +02:00
|
|
|
|
2022-02-15 17:44:39 +01:00
|
|
|
# transfer Movies
|
|
|
|
rsync -uvr --progress --bwlimit=4M -e "ssh -i $sshkeypath -p $port" /mnt/storage/MediaLibrary/Movies/ ${user}@${server}:/mnt/media/Movies/
|