2022-11-27 13:01:55 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
user=exu
|
|
|
|
server=37.187.76.126
|
|
|
|
sshkeypath=$HOME/.ssh/id_ed25519
|
|
|
|
|
|
|
|
# unlock ssh key
|
|
|
|
if ! ssh-add -T "${sshkeypath}.pub" &>/dev/null; then
|
|
|
|
ssh-add -q "$sshkeypath"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# transfer from local storage to input
|
2022-11-29 17:51:52 +01:00
|
|
|
rsync -uvr --progress --bwlimit=2M "/mnt/storage/MediaLibrary/tdarrready/" ${user}@${server}:/mnt/Media/input/
|
2022-11-27 13:01:55 +01:00
|
|
|
|
|
|
|
echo "Finished transfering data"
|