小编chr*_*san的帖子

为什么 rsync 跳过主目录?

我正在尝试在本地(在 Windows 机器上)使用 rync 到远程服务器(我的 osx 机器)以测试远程部署构建脚本。我之前在 2 个 linux 服务器之间做过 rsync 就好了,但我现在遇到了问题。这是输出:

$ rsync -v -e ssh myuser@10.86.83.11:/Library/WebServer/sites/staging/app1/ ./export

skipping directory /Library/WebServer/sites/staging/app1/.

sent 8 bytes  received 13 bytes  3.82 bytes/sec
total size is 0  speedup is 0.00

$ 
Run Code Online (Sandbox Code Playgroud)

或者

$ rsync -avz -e ssh myuser@10.86.83.11:/Library/WebServer/sites/staging/app1/ ./export

receiving file list ... done
./

sent 26 bytes  received 68 bytes  17.09 bytes/sec
total size is 0  speedup is 0.00


$ 
Run Code Online (Sandbox Code Playgroud)

远程 app1 目录为空,而本地导出目录有 4 个子目录,然后每个目录中有一堆文件

rsync mac-osx

71
推荐指数
1
解决办法
9万
查看次数

标签 统计

mac-osx ×1

rsync ×1