Change to new NAS
This commit is contained in:
parent
38b519dc04
commit
83e61d85f6
@ -2,9 +2,9 @@
|
||||
set -euo pipefail
|
||||
|
||||
user=exu
|
||||
server=he1app14
|
||||
server="he1app14.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,7 +14,7 @@ if ! ssh-add -T "${sshkeypath}.pub" &>/dev/null; then
|
||||
fi
|
||||
|
||||
# NAS: audiobooks
|
||||
rsync -uvr --progress --delete "/mnt/storage/MediaLibrary/Audiobooks" /mnt/lan1nas1/ &
|
||||
rsync -uvr --progress --delete "/mnt/storage/MediaLibrary/Audiobooks" "/mnt/CHOFNAS02/"
|
||||
|
||||
# Server: audiobooks
|
||||
rsync -uvr --progress --delete -e "ssh -i $sshkeypath -p $port" "/mnt/storage/MediaLibrary/Audiobooks" "${user}@${server}:/mnt/media/"
|
||||
|
@ -14,10 +14,10 @@ if ! ssh-add -T "${sshkeypath}.pub" &>/dev/null; then
|
||||
fi
|
||||
|
||||
# NAS: video files
|
||||
rsync -uvr --progress --delete "/mnt/storage/MediaLibrary/"{Movies,Patreon,Shows} "/mnt/CH-OF-NAS01/"
|
||||
rsync -uvr --progress --delete "/mnt/storage/MediaLibrary/"{Movies,Patreon,Shows} "/mnt/CHOFNAS02/"
|
||||
|
||||
# NAS: music
|
||||
rsync -uvrL --progress --delete "/home/exu/Musik" "/mnt/CH-OF-NAS01/"
|
||||
rsync -uvrL --progress --delete "/home/exu/Musik" "/mnt/CHOFNAS02/"
|
||||
|
||||
# Server: music
|
||||
rsync -uvrL --progress --delete -e "ssh -i $sshkeypath -p $port" "/home/exu/Musik/" "${user}@${server}:/mnt/media/Musik/"
|
||||
|
Loading…
Reference in New Issue
Block a user