Bug 3772 - --compare-dest не работает в некоторых случаях
Summary: --compare-dest не работает в некоторых случаях
Status: CLOSED NOTABUG
Alias: None
Product: Sisyphus
Classification: Development
Component: rsync (show other bugs)
Version: unstable
Hardware: all Linux
: P2 normal
Assignee: placeholder@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-02 13:31 MSK by Sergey V Kovalyov
Modified: 2006-06-30 20:30 MSD (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 работает у меня каждый день.