rsync -av -e ssh –exclude ‘taint/.git’ taint [email protected]:/root/
参数:
-a : 递归到目录,即复制所有文件和子目录
-v : 详细输出
-e ssh : 使用ssh作为远程shell
–exclude=’taint/.git’’ : 排除匹配模式的文件或者文件夹
rsync -av -e ssh –exclude ‘taint/.git’ taint [email protected]:/root/
参数:
-a : 递归到目录,即复制所有文件和子目录
-v : 详细输出
-e ssh : 使用ssh作为远程shell
–exclude=’taint/.git’’ : 排除匹配模式的文件或者文件夹