小编Sl3*_*3py的帖子

rsync 人类可读格式的输出文件大小

当你使用

rsync -avzh --stats --out-format="%t %f %b"
Run Code Online (Sandbox Code Playgroud)

它以字节为单位输出手册页说以下内容

In addition, one or more apostrophes may be specified prior to a   
numerical escape to indicate that the numerical value should be made   
more human-readable. The 3 supported levels are the same as for the  
--human-readable command-line option, though the default is for human-  
readability to be off. Each added apostrophe increases the level  
(e.g. "%''l %'b %f").      
Run Code Online (Sandbox Code Playgroud)

我的问题是我必须在 %b 之间放置多少个撇号才能将其从字节更改为兆字节?

一旦我添加撇号,这就是日志中发生的事情

rsync -av  --out-format="%t %f %'b"



2016/10/29 01:00:22 home/data/Clients/P/Power Solutions CC/2017/Sales …
Run Code Online (Sandbox Code Playgroud)

linux rsync

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

标签 统计

linux ×1

rsync ×1