- 论坛徽章:
- 0
|
[root@amanda1 script]# rsync -a -z -v --progress --delete weihu@192.168.10.231::test /OA/
receiving file list ...
14 files to consider
./ files...
1.txt
0 100% 0.00kB/s 463:13:24 (1, 14.3% of 14)
2001-06-27.1.3.9999.8888.rar
393724 100% 4.37MB/s 0:00:00 (2, 21.4% of 14)
data.sql
139656 100% 1.43MB/s 0:00:00 (3, 28.6% of 14)
db.sql
7019 100% 72.92kB/s 0:00:00 (4, 35.7% of 14)
f.txt
0 100% 0.00kB/s 463:13:25 (5, 42.9% of 14)
f1.rar
1315517 100% 3.23MB/s 0:00:00 (6, 50.0% of 14)
a.doc
14680064 100% 3.74MB/s 0:00:03 (13, 100.0% of 14)
sent 289 bytes received 16215823 bytes 831595.49 bytes/sec
total size is 17294983 speedup is 1.07
以上是rsync的输出结果。
如何从以上信息中得到以下结构的信息列表
1.txt 0
2001-06-27.1.3.9999.8888.rar 393724
data.sql 139656
db.sql 7019
f.txt 0
f1.rar 1315517
a.doc 14680064
即列表得到 同步的 文件名 和文件 大小 , 感觉该信息输出还是有一定规律,应该可以截取 , 但不知道怎么来获得 ,期待大家的帮忙。。。 |
|