Bug 7663 - --compare-dest hangs
Summary: --compare-dest hangs
Status: RESOLVED INVALID
Alias: None
Product: rsync
Classification: Unclassified
Component: core (show other bugs)
Version: 3.0.7
Hardware: Other Linux
: P3 major (vote)
Target Milestone: ---
Assignee: Wayne Davison
QA Contact: Rsync QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-05 08:39 UTC by Francois Scheurer
Modified: 2010-09-05 08:45 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Francois Scheurer 2010-09-05 08:39:54 UTC
hi !

First of all cangratulation for rsync, which I use as our main backup tool in our banking company (ACM).

I am trying to also use rsync to deduplicate files.

example:

cd /
cp -a /bin /bin3
rm -v /bin3/z* /bin/bas*

#now we will use rsync to build a folder with all files from /bin that are missing or different in /bin3, using --compare-dest

rm -r /bin.tmp -r; rsync --recursive --links --group --owner --devices --numeric-ids --delete --delete-excluded --one-file-system --compare-dest="../bin3" --hard-links --perms --times --size-only "/bin/." "/bin.tmp" -vv --stats | less

#this hangs!


1) on version 2.6.9 it worked more or less: missing files in bin3 were copied from bin to bin.tmp except 'zcat' because it was a hardlink to 'gunzip', which is not missing in bin3.

on version 3.0.3 and 3.0.7 it just hangs

2) secondly and unfortunately, removing the --hard-links option is also making trouble in 3.0.3 and 3.0.7: it does not hang anymore but it sadly copy all symlinks, even those that are present in bin3.
on 2.6.9, removing --hard-links option was working correctly and copying ONLY the missing symlinks.

Thank you for your time.



Francois Scheurer
francois@ac-markets.com
Head of Infratructure
Advanced Currency Markets SA
Comment 1 Francois Scheurer 2010-09-05 08:41:18 UTC
sorry i meant 'congratulations'
Comment 2 Francois Scheurer 2010-09-05 08:45:57 UTC
i made errors in typing in my example: (bin3 instead of bin)


cd /
cp -a /bin /bin3
rm -v /bin3/z* /bin3/bas*

Because I cannot edit the bug I will mark it as INVALID and retry