Bug 4310 - Not correct transferring files
Summary: Not correct transferring files
Status: RESOLVED INVALID
Alias: None
Product: rsync
Classification: Unclassified
Component: core (show other bugs)
Version: 2.6.9
Hardware: x86 Linux
: P3 critical (vote)
Target Milestone: ---
Assignee: Wayne Davison
QA Contact: Rsync QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-24 16:59 UTC by peter.schubnell
Modified: 2006-12-27 09:56 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 peter.schubnell 2006-12-24 16:59:46 UTC
I have a local harddisk (mounted as root /), which i want to copy to another harddisk (mounted as /mnt/root1). If i start e.g.:

rsync -avH --delete --force /usr /mnt/root1

the contents of /usr and /mnt/root1 afterwards are NOT the same. But some other directories ARE the same afterwards.
Comment 1 Wayne Davison 2006-12-25 01:28:09 UTC
The command you cite should be making /mnt/root1/user the same as /usr, not /mnt/root1.  See the manpage about how to use a trailing slash on the source if you wanted to copy the contents of the /usr dir into /mnt/root1 rather than the dir by name, followed by its contents.
Comment 2 peter.schubnell 2006-12-25 04:25:27 UTC
(In reply to comment #0)
> I have a local harddisk (mounted as root /), which i want to copy to another
> harddisk (mounted as /mnt/root1). If i start e.g.:
> 
> rsync -avH --delete --force /usr /mnt/root1
> 
> the contents of /usr and /mnt/root1 afterwards are NOT the same. But some other
> directories ARE the same afterwards.
> 

Sorry, what i mean, is that the contents of /usr and /mnt/root1/usr afterwards are NOT the same.
Comment 3 Matt McCutchen 2006-12-25 09:41:36 UTC
What exactly differs between /usr and /mnt/root1/usr?
Comment 4 peter.schubnell 2006-12-27 09:56:09 UTC
Sorry for the panic. I finally controlled the files being transfered with MD5SUM. All files are being successfully transfered.
What first made me believing there are differences, is that an "du -s" on the directories i've transfered against the original directories showed me different sizes.