Rsync through SSH
Refer to scp folder/keep symbolic link etc (by tar or rsync) https://blog.youkuaiyun.com/hushui/article/details/110557000
Example
rsync -r -l -t -e ssh --include="*.cpp" --include="*.c" --include="*.h" --include='*/' --exclude='*' --progress lake@10.0.0.1:/home/lake/live-git/ live-local
rsync -r -l -t -e ssh --include='*/' --exclude='*.obj' --exclude='*.o' --exclude='*.exe' --progress lake@10.0.0.1:/home/lake/live-git/ live-local