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

本文介绍如何通过SSH使用Rsync命令进行文件同步,包括保持符号链接、排除特定文件类型及显示进度的方法。示例展示了如何仅同步指定类型的文件(如C/C++源代码),并排除编译产生的临时文件。
3776

被折叠的 条评论
为什么被折叠?



