Update information
This commit is contained in:
parent
ad2fa79070
commit
38b519dc04
@ -2,9 +2,9 @@
|
||||
set -euo pipefail
|
||||
|
||||
user=exu
|
||||
server=172.18.50.102
|
||||
server="he1app3.xpn.ch"
|
||||
port=22
|
||||
sshkeypath=$HOME/.ssh/id_ed25519
|
||||
sshkeypath="$HOME/.ssh/id_ed25519"
|
||||
# NOTE don't transfer to the storage box directly, leads to mangled file names
|
||||
# see: https://serverfault.com/a/765951
|
||||
|
||||
@ -14,16 +14,16 @@ if ! ssh-add -T "${sshkeypath}.pub" &>/dev/null; then
|
||||
fi
|
||||
|
||||
# NAS: video files
|
||||
rsync -uvr --progress --delete /mnt/storage/MediaLibrary/{Movies,Patreon,Shows} /mnt/lan1nas1/ &
|
||||
rsync -uvr --progress --delete "/mnt/storage/MediaLibrary/"{Movies,Patreon,Shows} "/mnt/CH-OF-NAS01/"
|
||||
|
||||
# NAS: music
|
||||
rsync -uvrL --progress --delete /home/exu/Musik /mnt/lan1nas1/ &
|
||||
rsync -uvrL --progress --delete "/home/exu/Musik" "/mnt/CH-OF-NAS01/"
|
||||
|
||||
# Server: music
|
||||
rsync -uvrL --progress --delete -e "ssh -i $sshkeypath -p $port" /home/exu/Musik/ ${user}@${server}:/mnt/media/Musik/
|
||||
rsync -uvrL --progress --delete -e "ssh -i $sshkeypath -p $port" "/home/exu/Musik/" "${user}@${server}:/mnt/media/Musik/"
|
||||
|
||||
# Server: video files
|
||||
rsync -uvr --progress --delete -e "ssh -i $sshkeypath -p $port" /mnt/storage/MediaLibrary/{Movies,Shows} ${user}@${server}:/mnt/media/
|
||||
rsync -uvr --progress --delete -e "ssh -i $sshkeypath -p $port" "/mnt/storage/MediaLibrary/"{Movies,Shows} "${user}@${server}:/mnt/media/"
|
||||
|
||||
# wait for background jobs
|
||||
wait
|
||||
|
Loading…
Reference in New Issue
Block a user