Always transfer from pc
This commit is contained in:
parent
8a19efaff2
commit
a7edb2c2ce
@ -13,22 +13,16 @@ if ! ssh-add -T "${sshkeypath}.pub" &>/dev/null; then
|
||||
ssh-add -q "$sshkeypath"
|
||||
fi
|
||||
|
||||
# transfer to nas
|
||||
rsync -uvr --progress --delete /mnt/storage/MediaLibrary/{Movies,other,Patreon,Shows} /mnt/lan1nas1/
|
||||
# NAS: video files
|
||||
rsync -uvr --progress --delete /mnt/storage/MediaLibrary/{Movies,other,Patreon,Shows} /mnt/lan1nas1/ &
|
||||
|
||||
# Music to NAS. Leading source is main PC
|
||||
rsync -uvrL --progress --delete /home/exu/Musik /mnt/lan1nas1/
|
||||
# NAS: music
|
||||
rsync -uvrL --progress --delete /home/exu/Musik /mnt/lan1nas1/ &
|
||||
|
||||
# transfer Music
|
||||
rsync -uvr --progress --delete -e "ssh -i $sshkeypath -p $port" /mnt/lan1nas1/Musik/ ${user}@${server}:/mnt/media/Musik/
|
||||
# Server: music
|
||||
rsync -uvrL --progress --delete -e "ssh -i $sshkeypath -p $port" /home/exu/Musik/ ${user}@${server}:/mnt/media/Musik/
|
||||
|
||||
# transfer Shows
|
||||
rsync -uvr --progress --delete --bwlimit=2M -e "ssh -i $sshkeypath -p $port" /mnt/lan1nas1/Shows/ ${user}@${server}:/mnt/media/Shows/
|
||||
|
||||
# transfer Movies
|
||||
rsync -uvr --progress --delete --bwlimit=2M -e "ssh -i $sshkeypath -p $port" /mnt/lan1nas1/Movies/ ${user}@${server}:/mnt/media/Movies/
|
||||
|
||||
# transfer other
|
||||
rsync -uvr --progress --delete --bwlimit=2M -e "ssh -i $sshkeypath -p $port" /mnt/lan1nas1/other/ ${user}@${server}:/mnt/media/other/
|
||||
# Server: video files
|
||||
rsync -uvr --progress --delete -e "ssh -i $sshkeypath -p $port" /mnt/storage/MediaLibrary/{Movies,Shows,other} ${user}@${server}:/mnt/media/
|
||||
|
||||
echo "Finished transfering data"
|
||||
|
Loading…
Reference in New Issue
Block a user