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"
|
ssh-add -q "$sshkeypath"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# transfer to nas
|
# NAS: video files
|
||||||
rsync -uvr --progress --delete /mnt/storage/MediaLibrary/{Movies,other,Patreon,Shows} /mnt/lan1nas1/
|
rsync -uvr --progress --delete /mnt/storage/MediaLibrary/{Movies,other,Patreon,Shows} /mnt/lan1nas1/ &
|
||||||
|
|
||||||
# Music to NAS. Leading source is main PC
|
# NAS: music
|
||||||
rsync -uvrL --progress --delete /home/exu/Musik /mnt/lan1nas1/
|
rsync -uvrL --progress --delete /home/exu/Musik /mnt/lan1nas1/ &
|
||||||
|
|
||||||
# transfer Music
|
# Server: music
|
||||||
rsync -uvr --progress --delete -e "ssh -i $sshkeypath -p $port" /mnt/lan1nas1/Musik/ ${user}@${server}:/mnt/media/Musik/
|
rsync -uvrL --progress --delete -e "ssh -i $sshkeypath -p $port" /home/exu/Musik/ ${user}@${server}:/mnt/media/Musik/
|
||||||
|
|
||||||
# transfer Shows
|
# Server: video files
|
||||||
rsync -uvr --progress --delete --bwlimit=2M -e "ssh -i $sshkeypath -p $port" /mnt/lan1nas1/Shows/ ${user}@${server}:/mnt/media/Shows/
|
rsync -uvr --progress --delete -e "ssh -i $sshkeypath -p $port" /mnt/storage/MediaLibrary/{Movies,Shows,other} ${user}@${server}:/mnt/media/
|
||||||
|
|
||||||
# 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/
|
|
||||||
|
|
||||||
echo "Finished transfering data"
|
echo "Finished transfering data"
|
||||||
|
Loading…
Reference in New Issue
Block a user