jetsung rsync 文件同步功能 rsync -av --exclude=".git" --exclude="*.gitignore" --exclude="*.gitattributes" "-e ssh -p 2022 -l root" ./ 192.168.1.101:~/test 以上的脚本会将 当前目录 下的文件同步到服务器 192.168.1.101 的 test 目录下。