-
Notifications
You must be signed in to change notification settings - Fork 518
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
mc mirror overwrite currently broken #3060
Comments
With --overwrite and --preserve:
|
@sebschlue this is actually known & expected. mc mirror does not detect changes in a file if its size does not change, like |
@vadmeste What is the limitation that causes this? It seems inconvenient at best. |
No checksum stored in the server's side (ETag is not equal to the md5sum of the object in some cases) |
At Slack channel, some confirmed that it should work when using --preserve |
Ouch. That means for snapshotting certain stuff we'd need to rely on rsync. |
For that use Unless of course we can calculate checksum of entire objects using techniques like blake2b - we need to calculate this before uploading the content, slowing this down significantly which you are going to upload. rsync is meant for local disk to remote disk using delta protocol which reads both ends for checksum this would be unexpected in case of object storage, due to cloud costs. |
Ah, of course, I am just free-shooting since currently not bound by "cloud traffic costs" :) I'll check the rclone. Thanks. Just curious, would it even be possible to add another header like etag but containing hash for minio (on create/modify), without breaking compatibility? |
It is definitely possible @seqizz it is going to be very this can lead to double copy etc like issues, it is left away on purpose as we couldn't figure out cost effective way to do it proprely for all generalized usecases. |
Can this issue be closed, then? |
IMHO this needs to be documented more clearly, preferably in the mirror section of mc documentation directly. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 21 days if no further activity occurs. Thank you for your contributions. |
Expected behavior
mc mirror --overwrite should detect changed files
Actual behavior
It seems, it currently doesn't
Steps to reproduce the behavior
mc --version
mc version RELEASE.2020-01-25T03-02-19Z
System information
Client and Server: Fedora 31 with XFS as filesystem
minio version 2020-01-25T02:50:51Z
The text was updated successfully, but these errors were encountered: