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