如何获取有关通过远程 rsync 命令复制到我的机器的文件的信息?

use*_*107 2 process ssh remote rsync

我正在将目录从机器B同步到机器Arsync命令在机器B上运行。

在机器A 上,我可以在rsyncssh进入机器B 的情况下获得有关此过程的哪些信息(进度/下载的数据量等)?

X T*_*ian 6

您可以为远程系统指定一个选项以进行记录,例如。

--remote-option=--log-file=/path/to/log/rsync.log
Run Code Online (Sandbox Code Playgroud)

这是一个来自小型 rsync 运行的示例

2015/10/21 10:59:43 [10785] receiving file list
2015/10/21 10:59:43 [10785] created directory stack2
2015/10/21 10:59:43 [10785] cd+++++++++ ./
2015/10/21 10:59:43 [10785] >f+++++++++ Filexxx
2015/10/21 10:59:43 [10785] >f+++++++++ logfile
2015/10/21 10:59:43 [10785] >f+++++++++ logfile.sh
2015/10/21 10:59:43 [10785] cd+++++++++ dir1/
2015/10/21 10:59:43 [10785] >f+++++++++ dir1/FileA
2015/10/21 10:59:43 [10785] >f+++++++++ dir1/FileB
2015/10/21 10:59:43 [10785] >f+++++++++ dir1/FileC
2015/10/21 10:59:43 [10785] >f+++++++++ dir1/filec
2015/10/21 10:59:43 [10785] cd+++++++++ dir2/
2015/10/21 10:59:43 [10785] >f+++++++++ dir2/filea
2015/10/21 10:59:43 [10785] >f+++++++++ dir2/fileb
2015/10/21 10:59:43 [10785] sent 240 bytes  received 1,703 bytes  total size 1,051
Run Code Online (Sandbox Code Playgroud)