Bug 3772

Summary: --compare-dest не работает в некоторых случаях
Product: Sisyphus Reporter: Sergey V Kovalyov <sergey.kovalyov>
Component: rsyncAssignee: placeholder <placeholder>
Status: CLOSED NOTABUG QA Contact: qa-sisyphus
Severity: normal    
Priority: P2 CC: glebfm, ldv, placeholder
Version: unstable   
Hardware: all   
OS: Linux   

Description Sergey V Kovalyov 2004-03-02 13:31:27 MSK
При DEST -- локальная машина, не работает ключ --compare-dest (и, подозреваю, 
что и --link-dest). Эффект повторяется при SRC в любом виде (SRC, [USER@]
HOST::SRC и rsync://[USER@]HOST[:PORT]/SRC )

Steps to Reproduce:
[wise@ipsec ~/tmp/test/1first]$ rsync -a --stats rsync://localhost/backup .

Number of files: 2
Number of files transferred: 1
Total file size: 31 bytes
Total transferred file size: 31 bytes
Literal data: 31 bytes
Matched data: 0 bytes
File list size: 56
Total bytes written: 88
Total bytes read: 167

wrote 88 bytes  read 167 bytes  510.00 bytes/sec
total size is 31  speedup is 0.12
[wise@ipsec ~/tmp/test/1first]$ cd ../2second/
[wise@ipsec ~/tmp/test/2second]$ rsync -a --stats rsync://localhost/backup . --
compare-dest=~/tmp/test/1first/

Number of files: 2
Number of files transferred: 1
Total file size: 31 bytes
Total transferred file size: 31 bytes
Literal data: 31 bytes
Matched data: 0 bytes
File list size: 56
Total bytes written: 88
Total bytes read: 167

wrote 88 bytes  read 167 bytes  510.00 bytes/sec
total size is 31  speedup is 0.12
[wise@ipsec ~/tmp/test/2second]$ rsync -a --stats rsync://localhost/backup . --
compare-dest=~/tmp/test/1first/

Number of files: 2
Number of files transferred: 0
Total file size: 31 bytes
Total transferred file size: 0 bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 56
Total bytes written: 68
Total bytes read: 92

wrote 68 bytes  read 92 bytes  320.00 bytes/sec
total size is 31  speedup is 0.19
[wise@ipsec ~/tmp/test/2second]$ rpm -q rsync
rsync-2.6.0-alt1
Comment 1 Sergey V Kovalyov 2004-04-13 19:11:36 MSD
Забыли про мой баг? Или более подробно написать надо?
Comment 2 Dmitry V. Levin 2004-05-03 01:42:38 MSD
Hint:
$ echo --compare-dest=~/tmp/test/1first/
--compare-dest=~/tmp/test/1first/

А --compare-dest работает у меня каждый день.