小编Gia*_*aus的帖子

如何通过网关 ssh 进行 rsync?

我想将我的本地文件与我在服务器上的备份进行 rsync,该备份允许仅通过网关从我现在所在的位置进行访问。所以我想出了以下内容

rsync -avz -r --stats --progress -e "ssh gateway.dot.com ssh server.dot.com:/home/myname/documents/" /home/myname/documents 
Run Code Online (Sandbox Code Playgroud)

并且在列出所有文件时正在进行一些通信,但在最后的摘要中显示实际上根本没有文件传输。

Number of files: 270889
Number of files transferred: 0
Total file size: 70343212868 bytes
Total transferred file size: 0 bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 7596005
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 7613770
Total bytes received: 17764

sent 7613770 bytes  received 17764 bytes  50707.87 bytes/sec
total size is 70343212868  speedup is …
Run Code Online (Sandbox Code Playgroud)

ssh rsync

4
推荐指数
1
解决办法
3106
查看次数

标签 统计

rsync ×1

ssh ×1