-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
issue with rsync option --delete #25
Comments
Hello, you're right. You can have a look here: #5 I'm curious, msrsync should have detected the --delete option (https://github.com/jbd/msrsync/blob/master/msrsync#L587). Looks like a bug to me. If that's possible, could you provide the full command line you used ? Thank you. |
Hello, The problem is very clear, I guessed that the reason is the one you outlined The parameter I provided to msrsync is --rsync "--delete" all the others are standard Hopefully in my case the suggestion to first run msrsync without --delete and than a standard rsync with --delete is not so good. I've to syncronize an AWS EFS directory (basically NFS) with hundreds of thousands of small files. In this case there is a huge work with metadata and IO. Only checking the files would take as synking them. I'm not sure that the issue is fixable with msrsync; perhaps you need to pass some ignore flag to avoid that it deletes files not matching the regexp. Just guessing :) |
Thank you for the feedback.
What worries me is that you shouldn't be able to run msrsync with --delete:
Since you were able to run it without problem, this is a bug I'd like to correct. Could you provide the full --rsync options so that I can reproduce ? |
Hello, But now I've realized that a folder copied to a new folder with msrsync has a different size than the same folder copied with rsync -a --delete: [root@utils-node ~]# du -sh /backup/data2/ Do you have any explanation? Thank you |
Weird. Did you spot any error message during the copy ? Are you able to spot where the differences are using something like |
Hi, After some time I was able to find the two directories with different content; are large xtrabackup backup files. BUT... I've noticed that I was checking the directory size with "du". Now I've noticed that taking one of the different files if I see the msrsynced file size with du I get 36K, while if I use ls -al I get 96K (like the file copied with rsync). Any guess. It's the same file of 98304 bytes, but the one copied with rsync reports 96K with du, while the one copied with msrsync reports 36K. If I use the du flag --apparent-size they reports the same size. I think that the file copied with rsync suffers of some fragmentation, while with msrsync not Could this be due to rsync applying incremental changes, so when I rsync to an existing directory it could create some holes in the files on the filesystem? I can guess only this :) |
I don't know.
|
Hi,
Size: 98304 Blocks: 192 IO Block: 4096 regular file stat msrsync Size: 98304 Blocks: 72 IO Block: 4096 regular file
as you can notice files have same size, but different amount of blocks. Probably du without --apparent-size looks at blocks and not at real size. |
it seems that passing the --delete option to rsync produces inconsisten backups when using p >= 2
I used to backup a large nfs directory and the copied directory was 39GB instead of 42.
I think that the --delete option deletes files handled by other rsync processes. Is this the case?
The text was updated successfully, but these errors were encountered: